/* ==========================================================================
   Ciąża - kompendium. Design system.
   Paleta: ciepły kamień + różane drewno + szałwia + glina.
   Typografia: Bodoni Moda (display) + Karla (tekst).
   ========================================================================== */

:root {
  --bg: #F5F0EA;
  --bg-deep: #EDE5DC;
  --surface: #FFFCF8;
  --ink: #221C19;
  --ink-soft: #4A403A;
  --muted: #5F554E;
  --line: #E0D5CA;
  --line-strong: #CDBFB2;

  --primary: #7A3B4A;
  --primary-strong: #5C2A36;
  --primary-soft: #F0DFE2;

  --sage: #5C7462;
  --sage-soft: #E4EBE1;
  --clay: #C2704B;
  --clay-soft: #F6E3D8;
  --blush: #F1DDD4;

  --ok-soft: #E2EDE0;
  --warn-soft: #F8E7CF;
  --danger-soft: #F6DEDA;

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --sidebar-w: 292px;
  --header-h: 70px;
  --content-max: 1120px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110F;
    --bg-deep: #1D1714;
    --surface: #201917;
    --ink: #F2EAE3;
    --ink-soft: #D6C9BF;
    --muted: #B4A59A;
    --line: #3B2F2A;
    --line-strong: #4A3D37;

    --primary: #D894A3;
    --primary-strong: #EFB3C0;
    --primary-soft: #35222A;

    --sage: #9DB8A3;
    --sage-soft: #1F2A22;
    --clay: #E39B74;
    --clay-soft: #33231B;
    --blush: #2C1F1C;

    --ok-soft: #1D2A1F;
    --warn-soft: #302417;
    --danger-soft: #331E1B;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius);
  font-size: .9rem; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(16px, 3vw, 30px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.brand-tag {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.search-box {
  position: relative; margin-left: auto;
  width: min(360px, 42vw);
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 12px; width: 17px; height: 17px;
  color: var(--muted); pointer-events: none;
}
#searchInput {
  width: 100%; height: 40px;
  padding: 0 14px 0 36px;
  font-family: var(--font-body); font-size: .92rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .18s ease, background .18s ease;
}
#searchInput::placeholder { color: var(--muted); opacity: .85; }
#searchInput:focus { border-color: var(--primary); background: var(--surface); outline: none; }

.search-results {
  position: absolute; top: 48px; left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(34, 28, 25, .14);
  max-height: 60vh; overflow-y: auto;
  z-index: 120;
}
.search-results a {
  display: block; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: .9rem; line-height: 1.45;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-deep); text-decoration: none; }
.search-results .sr-sec { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.search-results .sr-empty { padding: 14px; color: var(--muted); font-size: .9rem; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  padding-top: var(--header-h);
  min-height: 100dvh;
}

.sidebar {
  position: sticky; top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 26px 18px 48px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 70%, color-mix(in srgb, var(--bg) 60%, var(--bg-deep)) 100%);
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

.nav-group { margin-bottom: 6px; border-bottom: 1px solid transparent; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  border-radius: 3px;
  transition: color .16s ease, background .16s ease;
}
.nav-group-title:hover { color: var(--ink); background: var(--bg-deep); }
.nav-group-title > span:first-child { flex: 1 1 auto; }
.nav-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.nav-count { font-size: .7rem; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-chev { width: 14px; height: 14px; transition: transform .2s var(--ease-out); opacity: .6; }
.nav-group.is-open .nav-chev { transform: rotate(180deg); }
.nav-group.is-open .nav-group-title { color: var(--ink); }
.nav-list[hidden] { display: none; }
.nav-link {
  display: block;
  padding: 6px 10px 6px 14px;
  font-size: .9rem; line-height: 1.4;
  color: var(--ink-soft);
  border-radius: 3px;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-deep); text-decoration: none; }
.nav-link.is-active {
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-weight: 600;
}

.soft-overlay {
  position: fixed; inset: 0; z-index: 89;
  background: rgba(22, 17, 15, .45);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.soft-overlay.is-open { opacity: 1; }

.main { min-width: 0; }

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  min-height: min(560px, calc(100dvh - var(--header-h)));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-text {
  padding: clamp(34px, 5vw, 74px) clamp(24px, 4.6vw, 62px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6.2vw, 5.1rem);
  line-height: .98;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
}
.hero p {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 30px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  padding: 14px 24px;
  background: var(--clay);
  color: #221C19;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border-radius: 3px;
  transition: transform .18s var(--ease-out), background .18s ease;
}
.hero-cta svg { width: 19px; height: 19px; transition: transform .22s var(--ease-out); }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-cta:hover { background: #D2835C; text-decoration: none; transform: translateY(-1px); }
.hero-cta:active { transform: translateY(0) scale(.99); }

.hero-media { position: relative; overflow: hidden; background: var(--bg-deep); }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(122, 59, 74, .05) 0%, rgba(34, 28, 25, .12) 100%);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.82) contrast(1.04);
  animation: heroIn .8s var(--ease-out) both;
}
@keyframes heroIn { from { transform: scale(1.04); opacity: .6; } to { transform: scale(1); opacity: 1; } }

/* ---------- Trimester calendar (signature) ---------- */

.trimesters {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4.6vw, 62px) 0;
  border-bottom: 1px solid var(--line);
}
.trimesters-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.trimesters h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 500; letter-spacing: -0.01em;
  margin: 0;
}
.trimesters-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 46ch; }

.trimester-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.trimester {
  display: block;
  padding: 22px 26px 26px 0;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background .2s ease;
}
.trimester:last-child { border-right: 0; }
.trimester + .trimester { padding-left: 26px; }
.trimester:hover { text-decoration: none; background: var(--bg-deep); }
.trimester-num {
  font-family: var(--font-display);
  font-size: 2.1rem; line-height: 1;
  color: var(--primary);
  display: block; margin-bottom: 6px;
}
.trimester-range { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trimester h3 {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 500; margin: 8px 0 6px;
  letter-spacing: -0.01em;
}
.trimester p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

.week-ruler {
  display: grid; grid-template-columns: repeat(40, 1fr);
  align-items: end;
  height: 34px;
  margin-top: 18px;
  gap: 2px;
}
.week-ruler span { display: block; background: var(--line-strong); border-radius: 1px; height: 10px; }
.week-ruler span.t1 { background: var(--primary); opacity: .55; }
.week-ruler span.t2 { background: var(--sage); opacity: .65; }
.week-ruler span.t3 { background: var(--clay); opacity: .6; }
.week-ruler span.mark { height: 22px; }
.ruler-labels {
  display: flex; justify-content: space-between;
  font-size: .7rem; letter-spacing: .08em; color: var(--muted);
  margin: 6px 0 30px;
}

/* ---------- Home: index ---------- */

.index-wrap { padding: 0 clamp(24px, 4.6vw, 62px) 64px; }

.index-section { padding-top: clamp(34px, 4vw, 52px); }
.index-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}
.index-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 500; letter-spacing: -0.01em;
  margin: 0;
}
.index-count { font-size: .78rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }

.index-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
}
.index-item {
  display: block;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.index-item h3 {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 500; line-height: 1.32;
  margin: 0 0 5px;
  letter-spacing: -0.005em;
  transition: color .16s ease;
}
.index-item p { margin: 0; font-size: .87rem; line-height: 1.5; color: var(--muted); }
.index-item:hover { text-decoration: none; }
.index-item:hover h3 { color: var(--primary); }

@media (hover: hover) and (pointer: fine) {
  .index-item h3 { transition: color .16s ease, transform .18s var(--ease-out); }
  .index-item:hover h3 { transform: translateX(3px); }
}

/* ---------- Article ---------- */

.article { padding: clamp(30px, 4vw, 54px) clamp(22px, 4.6vw, 62px) 20px; }
.article-wrap { max-width: 760px; margin: 0 auto; }

.breadcrumbs {
  font-size: .78rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span.sep { opacity: .5; }

.article-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.article-lead {
  font-size: 1.1rem; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 62ch;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: .84rem; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 30px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span + span::before {
  content: ""; width: 14px; height: 1px; background: var(--line-strong); display: inline-block;
}
.article-meta .meta-section { color: var(--primary); font-weight: 600; }

.toc {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 14px;
  margin: 0 0 36px;
}
.toc-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 36px;
}
.toc li { break-inside: avoid; margin-bottom: 8px; }
.toc a { font-size: .92rem; color: var(--ink-soft); }
.toc a:hover { color: var(--primary); }
.toc a.is-reading { color: var(--primary-strong); font-weight: 600; }

.article-body { font-size: 17.5px; line-height: 1.75; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.35em;
  line-height: .84;
  padding: 6px 10px 0 0;
  color: var(--primary);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.012em;
  margin: 2.1em 0 .55em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body h3 {
  font-size: 1.12rem; font-weight: 700; line-height: 1.35;
  margin: 1.8em 0 .45em;
  letter-spacing: -0.005em;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--primary); }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 22px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft); font-style: italic;
}

.table-wrap { overflow-x: auto; margin: 1.5em 0 1.7em; }
.article-body table, .cmp-table {
  width: 100%; border-collapse: collapse;
  font-size: .93rem; line-height: 1.5;
  min-width: 520px;
}
.article-body th, .cmp-table th {
  text-align: left; font-weight: 700; font-size: .82rem;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink);
  background: var(--sage-soft);
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}
.article-body td, .cmp-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-deep) 55%, transparent); }

.info-box, .tip-box, .warning-box, .takeaways, .error-table {
  margin: 1.7em 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--sage-soft);
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.65;
}
.info-box p:last-child, .tip-box p:last-child, .warning-box p:last-child,
.takeaways p:last-child { margin-bottom: 0; }
.info-box strong:first-child, .tip-box strong:first-child {
  display: block; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 6px;
}
.tip-box { background: var(--clay-soft); }
.tip-box strong:first-child { color: var(--clay); }
.warning-box { background: var(--danger-soft); }
.warning-box strong:first-child { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #A33A2E; margin-bottom: 6px; }
@media (prefers-color-scheme: dark) {
  .warning-box strong:first-child { color: #F0A79B; }
}
.takeaways { background: var(--primary-soft); }
.takeaways ul { margin: .5em 0 0; padding-left: 1.2em; }
.takeaways li::marker { color: var(--primary); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 16px;
}
.faq-item h3 { margin: 0 0 7px; font-size: 1.06rem; font-family: var(--font-display); font-weight: 500; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.glossary { margin: 1.4em 0; }
.glossary dt {
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 500; color: var(--primary-strong);
  margin-top: 18px;
}
.glossary dd { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; }

.article-foot {
  margin-top: 42px; padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: .88rem; color: var(--muted);
}
.article-foot p { margin: 0 0 12px; }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 34px 0 0;
}
.pager a {
  display: block; padding: 14px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.pager a:hover { text-decoration: none; border-color: var(--primary); background: var(--surface); }
.pager .p-label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .p-title { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.pager .next { text-align: right; }
.pager .next .p-title { text-align: right; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 38px clamp(24px, 4.6vw, 62px) 46px;
  margin-left: var(--sidebar-w);
}
.footer-inner { max-width: 760px; }
.footer-brand {
  font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 10px;
  color: var(--ink);
}
.footer-brand span { font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.footer-note { font-size: .86rem; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0 0 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; margin: 0 0 14px; }
.footer-credit { font-size: .74rem; color: var(--muted); opacity: .85; margin: 0; }

/* ---------- Motion: page enter ---------- */

.main > * { animation: rise .26s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main > *, .hero-media img { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  :root { --sidebar-w: 262px; }
  .index-grid { column-gap: 32px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .brand { margin-right: auto; }
  .search-box { width: min(300px, 46vw); }
  .shell { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 90;
    width: min(320px, 86vw);
    height: auto;
    background: var(--bg);
    transform: translateX(-102%);
    transition: transform .28s var(--ease-in-out);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding-top: 20px;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar .nav-link { padding: 11px 12px; font-size: .95rem; }

  .site-footer { margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { max-width: none; padding: 36px 24px 30px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 3.8rem); }
  .hero-media { height: 300px; }
  .trimester-grid { grid-template-columns: 1fr; border-top: 0; }
  .trimester { border-right: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .trimester + .trimester { padding-left: 0; }
  .index-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand-name { font-size: 1.5rem; }
  .brand-tag { display: none; }
  .site-header { gap: 12px; }
  .search-box { width: 44px; }
  #searchInput { padding-left: 36px; color: transparent; }
  #searchInput::placeholder { color: transparent; }
  #searchInput:focus { position: absolute; right: 0; width: min(78vw, 320px); color: var(--ink); background: var(--surface); z-index: 5; }
  #searchInput:focus::placeholder { color: var(--muted); }
  .search-box:focus-within .search-icon { z-index: 6; }
  .article { padding-inline: 20px; }
  .index-wrap { padding-inline: 20px; }
  .trimesters { padding-inline: 20px; }
  .hero-text { padding-inline: 20px; }
  .article-body { font-size: 17px; }
  .article-body > p:first-of-type::first-letter { font-size: 3em; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .pager .next .p-title { text-align: left; }
  .site-footer { padding-inline: 20px; }
}
