/* PrasisIT blog — restrained technical layout
   Navy #0b1f33, accent #0f6cbd, off-white background */

:root {
  --navy: #0b1f33;
  --navy-mid: #16324d;
  --accent: #0f6cbd;
  --accent-dark: #0c5aa0;
  --bg: #f4f6f8;
  --paper: #ffffff;
  --text: #1c2430;
  --muted: #5c6770;
  --line: #d5dde5;
  --soon: #eef2f6;
  --why: #f3f8fc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 24px rgba(11, 31, 51, 0.06);
  --max: 1100px;
  --prose: 46rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: #eef1f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  word-break: break-word;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand:hover {
  color: #fff;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.75rem;
  color: #c5d0da;
  font-weight: 400;
  line-height: 1.35;
  max-width: 38rem;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 42px;
}

.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  content: "";
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  align-items: center;
}

.site-nav a {
  color: #e8eef4;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-current {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-nav a.resume {
  background: var(--accent);
  color: #fff;
  margin-left: 0.25rem;
}

.site-nav a.resume:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Layout */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.page-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  color: var(--navy-mid);
  margin: 1.2rem 0 0.4rem;
}

p {
  margin: 0 0 0.85rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Cards */
.post-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .post-list {
    grid-template-columns: 1fr 1fr;
  }

  .post-list .span-2 {
    grid-column: 1 / -1;
  }
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

a.post-card:hover {
  border-color: #b7cce0;
  box-shadow: 0 2px 8px rgba(15, 108, 189, 0.12);
  color: inherit;
}

.post-card.soon {
  background: var(--soon);
  box-shadow: none;
  border-style: dashed;
  cursor: default;
}

.post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--navy);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  background: #e8f1fa;
  color: var(--accent-dark);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.tag:hover {
  background: #d7e8f6;
  color: var(--navy);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.badge.soon {
  background: #6b7784;
}

/* Topics */
.topic-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.topic-block h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.topic-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.topic-block li {
  margin: 0.35rem 0;
}

.empty-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Files */
.file-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

.file-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-mid);
}

/* About */
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 42rem;
}

.cert-list {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.cert-list li {
  margin: 0.25rem 0;
}

/* Article */
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem 2rem;
  max-width: var(--prose);
  margin: 0 auto;
}

.article-header {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.article-header h1 {
  margin-bottom: 0.65rem;
}

.article p,
.article li {
  max-width: 100%;
}

.article ul,
.article ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.article li {
  margin: 0.28rem 0;
}

.article h2 {
  color: var(--accent);
  font-size: 1.18rem;
  margin-top: 1.6rem;
  page-break-after: avoid;
}

.why {
  background: var(--why);
  border-left: 4px solid var(--accent);
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.9rem;
  color: var(--navy-mid);
}

.why p:last-child {
  margin-bottom: 0;
}

.figure {
  margin: 0.75rem 0 1rem;
}

.figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.download-box {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--why);
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.download-box p {
  margin: 0;
  color: var(--navy-mid);
}

.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
}

.toc h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c5d0da;
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
}

.site-footer a {
  color: #d7e4f0;
}

/* Mobile */
@media (max-width: 720px) {
  .brand-tag {
    display: none;
  }

  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.55rem;
  }

  .site-nav a.resume {
    margin-left: 0;
    text-align: center;
  }

  .article {
    padding: 1.1rem 0.9rem 1.6rem;
  }

  .site-main {
    padding: 1.25rem 0.9rem 2.25rem;
  }
}

@media (min-width: 900px) {
  .article {
    padding: 1.75rem 2rem 2.25rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle-label,
  .download-box .btn {
    position: static;
  }

  body {
    background: #fff;
  }

  .article {
    box-shadow: none;
    border: 0;
  }
}

.topic-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}
.topic-jump a {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  box-shadow: var(--shadow);
}
.topic-jump a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.topic-block {
  margin: 0 0 2.25rem;
}
.topic-block h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
@media (min-width: 800px) {
  .featured-card {
    grid-template-columns: 1.15fr 1fr;
    min-height: 280px;
  }
}
.featured-card:hover {
  border-color: #b7cce0;
  box-shadow: 0 2px 8px rgba(15, 108, 189, 0.12);
  color: inherit;
}
.featured-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top left;
  background: #0b1f33;
  display: block;
}
@media (min-width: 800px) {
  .featured-img {
    height: 100%;
    min-height: 280px;
  }
}
.featured-body {
  padding: 1.25rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.featured-body h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--navy);
  line-height: 1.25;
}
.featured-body p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.read-more {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.featured-card:hover .read-more {
  color: var(--accent-dark);
}
