/* Neonatal Nutrition Research — site styles
   Palette is taken from the logo (slate + sand). Fonts are self-hosted. */

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-normal-latin.woff2") format("woff2");
}

:root {
  --slate: #34454c;
  --slate-700: #263338;
  --slate-100: #e8edee;
  --sand: #d9c3b0;
  --sand-200: #efe5db;
  --sand-100: #f8f4ef;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --line: #e6e1dc;
  --bg: #ffffff;
  --panel: #f5f5f5;
  --green: #276245;
  --green-bg: #e3f1e9;
  --focus: #b4551b;

  --radius: 6px;
  --wrap: 1120px;
  --measure: 68ch;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Quicksand", "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--slate-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand); color: var(--slate-700); }

h1, h2, h3, h4 { font-family: var(--font-body); color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); font-weight: 300; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.15rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--slate); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 800px); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tint { background: var(--sand-100); }
.section--panel { background: var(--panel); }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 2px; background: var(--slate); margin: 1rem auto 0;
}
.eyebrow {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 4px; }
.brand span { font-weight: 700; font-size: 0.98rem; line-height: 1.2; letter-spacing: 0.01em; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink); place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: block; padding: 0.55rem 0; text-decoration: none; color: var(--ink);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase;
}
.site-nav a::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--slate); transition: width 0.2s;
}
.site-nav a:hover::before, .site-nav a[aria-current="page"]::before { width: 100%; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem; display: none; box-shadow: 0 14px 24px rgba(0, 0, 0, 0.06);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .site-nav a::before { display: none; }
  .site-nav a[aria-current="page"] { color: var(--slate); box-shadow: inset 3px 0 0 var(--slate); padding-left: 0.85rem; }
}
@media (min-width: 861px) { .page-home .brand { display: none; } .page-home .header-inner { justify-content: flex-start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--slate); color: #fff; border: 2px solid var(--slate);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.9rem 1.7rem; border-radius: 3px; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--slate-700); border-color: var(--slate-700); color: #fff; text-decoration: none; }
.btn--outline { background: transparent; color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.more-link {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--sand); padding-bottom: 2px; color: var(--slate);
}
.more-link:hover { border-bottom-color: var(--slate); text-decoration: none; }

/* ---------- Home hero ---------- */
.home-hero { display: grid; grid-template-columns: 5fr 7fr; min-height: clamp(320px, 42vw, 520px); }
.home-hero__brand { background: var(--panel); display: grid; place-items: center; padding: 2rem; }
.home-hero__brand img { width: clamp(150px, 20vw, 260px); height: auto; }
.home-hero__photo { position: relative; overflow: hidden; }
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__brand { padding: 1.5rem; }
  .home-hero__brand img { width: 130px; }
  .home-hero__photo { aspect-ratio: 4 / 3; }
}
.lead-block { text-align: center; }
.lead-block p.lead { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); font-weight: 300; line-height: 1.6; max-width: 46ch; margin: 0 auto 1.75rem; }
.lead-block .btn-row { justify-content: center; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.news-item { display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem; padding: 1.75rem 0; border-top: 1px solid var(--line); align-items: start; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-item__media:hover img { transform: scale(1.04); }
.news-item h3 { font-weight: 400; font-size: 1.4rem; margin-bottom: 0.4em; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--slate); text-decoration: underline; }
.news-item p { color: var(--muted); }
.news-item .meta, .post .meta { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.35rem; text-transform: uppercase; }
.news-item p:last-child { margin-bottom: 0; }
.show-more { text-align: center; margin-top: 2rem; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Page headers ---------- */
.page-title { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.page-title h1 { margin-bottom: 0; }
.page-title h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--slate); margin: 1.1rem auto 0; }
.page-title p { color: var(--muted); max-width: 60ch; margin: 1.4rem auto 0; }

.hero-band {
  position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden;
  padding-block: clamp(4rem, 12vw, 8.5rem); background: var(--slate-700);
}
.hero-band > img.hero-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-band::before { content: ""; position: absolute; inset: 0; background: rgba(38, 51, 56, 0.7); z-index: -1; }
.hero-band h1, .hero-band h2 { color: #fff; margin-bottom: 0; }
.hero-band .eyebrow { color: #fff; opacity: 0.92; }
.hero-band p { max-width: 56ch; margin: 1rem auto 0; color: #f1ece6; }

/* ---------- Utilities used by page fragments ---------- */
.col-title { font-size: 1.3rem; font-weight: 700; }
.centered-lead { text-align: center; max-width: 60ch; margin: -1rem auto 2.25rem; color: var(--muted); font-size: 1.1rem; }
.hero-band--content { text-align: left; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-band--content .section-title { color: #fff; }
.hero-band--content .section-title::after { background: var(--sand); }
.hero-band--content .card { color: var(--ink); }

/* ---------- Cards / grids ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; font-weight: 700; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); background: #fff; margin-inline: auto; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }
.prose a { text-decoration-color: var(--sand); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--slate); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.two-col--top { align-items: start; }
.two-col figure img { border-radius: var(--radius); width: 100%; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.qa h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.qa h3:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sand); border: 2px solid var(--slate); }

/* ---------- Studies ---------- */
.study-list { display: grid; gap: 1.25rem; }
.study { display: grid; gap: 0.3rem; }
.study__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; }
.study__title { margin: 0; font-size: 1.3rem; font-weight: 700; max-width: 40ch; }
.study__eligible { font-size: 0.95rem; color: var(--muted); margin: 0.35rem 0 0.7rem; }
.study__eligible strong { color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-ui); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; white-space: nowrap;
  background: var(--green-bg); color: var(--green);
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.study .more-link { justify-self: start; margin-top: 0.4rem; }
.completed-list { display: grid; gap: 2.25rem; }
.completed-list h3 { font-weight: 700; }
.completed-list .cite { font-size: 0.95rem; }

/* ---------- Team ---------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 1rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__photo--initials { display: grid; place-items: center; background: var(--slate); color: var(--sand); font-size: 3.2rem; font-weight: 300; letter-spacing: 0.06em; }
.person h3 { margin-bottom: 0.15em; font-size: 1.15rem; }
.person .role { font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.person p { font-size: 0.97rem; color: #3c3c3c; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-grid .card { background: rgba(255, 255, 255, 0.96); }
.spec-grid h3 { font-size: 1.15rem; }
.spec-grid p { margin: 0; color: #3c3c3c; font-size: 0.98rem; }

/* ---------- Resources ---------- */
.res-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.res-card img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; }
.res-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.res-card h3 { font-size: 1.1rem; margin: 0; }
.res-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.res-card .more-link { margin-top: auto; align-self: flex-start; }
.res-card__body > p + .more-link { margin-top: 0.6rem; }
.res-card--text { border-left: 4px solid var(--sand); }
.res-card--text .res-card__body { padding-top: 1.5rem; }

/* ---------- Publications ---------- */
.pub-tools { background: #fff; border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.25rem; }
.pub-tools[hidden] { display: none; }
.pub-search { width: 100%; max-width: 460px; font: inherit; padding: 0.7rem 1rem; border: 1px solid #c9c2bb; border-radius: var(--radius); background: #fff; }
.pub-search:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.chip {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; cursor: pointer;
  background: #fff; color: var(--slate); border: 1.5px solid var(--slate); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.chip span { opacity: 0.65; margin-left: 0.3rem; font-weight: 600; }
.chip:hover { background: var(--slate-100); }
.chip[aria-pressed="true"] { background: var(--slate); color: #fff; }
.pub-count { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--muted); }
.pub-group { padding-top: 3rem; }
.pub-group h2 { font-size: 1.5rem; font-weight: 700; padding-bottom: 0.6rem; border-bottom: 2px solid var(--sand); margin-bottom: 0.5rem; }
.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub__authors { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.25rem; line-height: 1.55; }
.pub__title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0 0 0.35rem; }
.pub__title a { color: var(--ink); text-decoration-color: var(--sand); text-decoration-thickness: 2px; }
.pub__title a:hover { color: var(--slate); text-decoration-color: var(--slate); }
.pub__source { font-size: 0.95rem; margin: 0 0 0.6rem; font-style: italic; }
.badge {
  display: inline-block; font-style: normal; font-family: var(--font-ui); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 3px; margin-left: 0.4rem; background: var(--green-bg); color: var(--green); vertical-align: 1px; text-decoration: none;
}
.badge--video { background: var(--sand-200); color: var(--slate-700); }
.pub__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pub__tags li { font-family: var(--font-ui); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; background: var(--slate-100); color: var(--slate); border-radius: 3px; }
.pub-empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h3 { font-size: 1.05rem; }
.contact-card address { font-style: normal; line-height: 1.7; margin-bottom: 1.25rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--font-ui); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 1.1rem; }
.contact-card dd { margin: 0.15rem 0 0; }
.contact-card .phone { font-size: 1.5rem; font-weight: 300; text-decoration: none; letter-spacing: 0.02em; }
.contact-card .phone:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.form input, .form textarea { font: inherit; font-weight: 400; letter-spacing: 0; padding: 0.75rem 0.95rem; border: 1px solid #c9c2bb; border-radius: var(--radius); background: #fff; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: #9b2c1f; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; justify-content: center; }
.inline-form label { flex: 1 1 260px; max-width: 380px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; max-width: 900px; margin-inline: auto; }
.gallery figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery figure img { width: auto; max-width: 100%; margin-inline: auto; background: #fff; }
.gallery figcaption { padding: 1rem 1.25rem 1.25rem; font-size: 0.93rem; color: var(--muted); border-top: 1px solid var(--line); }
.gallery .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Post ---------- */
.post { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.post-header { max-width: var(--measure); margin: 0 auto 2rem; }
.post-header .crumb { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.5rem; }
.post-header .crumb a { text-decoration: none; }
.post-header h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 400; line-height: 1.2; }
.post-footer { max-width: var(--measure); margin: 3rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.share a, .share button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--slate); background: #fff; border: 1.5px solid var(--slate); border-radius: 999px; padding: 0.4rem 0.95rem; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--slate); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; text-decoration: none; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.post-nav a:hover { border-color: var(--slate); }
.post-nav small { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav .prev { grid-column: 1; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next, .post-nav .prev { grid-column: 1; text-align: left; } }

/* ---------- Subscribe & footer ---------- */
.subscribe { text-align: center; }
.subscribe p { color: var(--muted); }
.site-footer { background: var(--slate); color: #d8dfe1; padding: 3rem 0 2rem; font-size: 0.93rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 4px; }
.footer-brand strong { display: block; font-size: 1.05rem; color: #fff; }
.footer-brand span { color: var(--sand); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: flex-end; }
.footer-nav a { font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-meta { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; color: #b9c4c8; }
.footer-meta p { margin: 0; }
.footer-meta .social { display: inline-flex; align-items: center; gap: 1rem; }
.footer-meta svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } .footer-nav ul { justify-content: flex-start; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.not-found p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .pub-tools, .share, .post-nav, .skip-link { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
