/* Manston War Memorial - site styles
   British English throughout. Self-hosted fonts (no third-party requests). */

@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-600.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cinzel-700.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ebgaramond-400.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ebgaramond-400i.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sourcesans3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sourcesans3-600.woff2") format("woff2"); }

:root {
  --paper: #f7f3ec;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1f1b16;
  --ink-soft: #4a4238;
  --muted: #6a6052;
  --line: rgba(31, 27, 22, 0.12);
  --gold: #b39462;
  --gold-text: #7c6033;
  --gold-light: #e2cc9f;
  --poppy: #b3261e;
  --poppy-dark: #8c1c16;
  --night: #17130f;
  --night-2: #221c16;
  --cream: #fbf6ea;

  --serif-display: "Cinzel", "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.06), 0 2px 8px rgba(31, 27, 22, 0.05);
  --shadow-md: 0 6px 18px rgba(31, 27, 22, 0.10), 0 2px 6px rgba(31, 27, 22, 0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--poppy); text-underline-offset: 3px; }
a:hover { color: var(--poppy-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.poppy { width: 26px; height: 26px; flex: none; fill: var(--poppy); }
.poppy .poppy-eye { fill: #141414; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--cream);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: inherit; text-decoration: none; font-family: var(--serif-display); font-weight: 700;
  letter-spacing: 0.06em; font-size: 0.98rem; text-transform: uppercase;
}
.brand:hover { color: inherit; }
.brand .poppy { width: 24px; height: 24px; transition: transform 0.6s var(--ease); }
.brand:hover .poppy { transform: rotate(45deg); }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: inherit; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; transition: background-color 0.25s var(--ease);
}
.site-nav a:hover { background: rgba(127, 110, 85, 0.16); color: inherit; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px;
    font: 600 0.95rem var(--sans); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; padding: 8px;
    background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .brand span { font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); min-height: min(92svh, 860px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--cream);
  padding: calc(var(--header-h) + 40px) 0 96px;
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform: scale(1.08); animation: hero-drift 18s var(--ease) forwards;
}
@keyframes hero-drift { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.86) 0%, rgba(23, 19, 15, 0.62) 55%, rgba(23, 19, 15, 0.38) 100%),
    linear-gradient(0deg, rgba(23, 19, 15, 0.7) 0%, rgba(23, 19, 15, 0) 40%);
}
.hero-inner { position: relative; }
.kicker {
  font-family: var(--serif-display); font-weight: 600; letter-spacing: 0.32em; font-size: 0.9rem;
  color: var(--gold-light); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif-display); font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.95;
}
.hero h1 span { display: block; font-size: 0.42em; letter-spacing: 0.2em; margin-top: 0.35em; font-weight: 600; }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--gold-light); margin: 18px 0 8px;
}
.hero-lead { max-width: 34ch; font-size: 1.15rem; color: rgba(251, 246, 234, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--poppy); color: #fff; box-shadow: 0 6px 20px rgba(179, 38, 30, 0.35); }
.btn-primary:hover { background: var(--poppy-dark); color: #fff; }
.btn-ghost { color: var(--cream); border: 1px solid rgba(251, 246, 234, 0.55); }
.btn-ghost:hover { background: rgba(251, 246, 234, 0.12); color: var(--cream); }
.hero-caption {
  position: absolute; right: 20px; bottom: 18px; margin: 0;
  font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: rgba(251, 246, 234, 0.75);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--cream); border: 1px solid rgba(251, 246, 234, 0.4);
  animation: cue 2.4s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--cream); background: rgba(251, 246, 234, 0.1); }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 760px) { .hero-caption { display: none; } }

/* ---------- Facts strip ---------- */
.facts { background: var(--night-2); color: var(--cream); padding: 34px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--gold); }
.fact-num { font-family: var(--serif-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--gold-light); }
.fact-label { font-size: 0.95rem; color: rgba(251, 246, 234, 0.8); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: var(--cream); }
.eyebrow {
  font-family: var(--serif-display); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  font-size: 0.82rem; color: var(--gold-text); margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold-light); }
.section h2 { font-family: var(--serif-display); font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: 0.02em; margin-bottom: 20px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- The memorial ---------- */
.memorial-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.memorial-text p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; color: var(--ink-soft); }
.photo-frame { margin: 0 0 24px; background: var(--card); padding: 10px 10px 0; border-radius: 6px; box-shadow: var(--shadow-md); rotate: -1deg; transition: rotate 0.6s var(--ease); }
.photo-frame:hover { rotate: 0deg; }
.photo-frame img { border-radius: 2px; aspect-ratio: 1169 / 544; object-fit: cover; }
.photo-frame figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); padding: 10px 4px 12px; font-size: 1rem; }
.facts-list { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 6px 20px; }
.facts-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { font-weight: 600; color: var(--gold-text); font-size: 0.95rem; }
.facts-list dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .memorial-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 0.95rem var(--sans); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.filter span { font-size: 0.8rem; background: var(--paper-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; transition: inherit; }
.filter:hover { border-color: var(--gold); transform: translateY(-1px); }
.filter.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter.is-active span { background: rgba(251, 246, 234, 0.16); color: var(--cream); }
.filter-status { min-height: 1.6em; color: var(--muted); font-size: 0.95rem; margin: 6px 0 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.war-divider {
  display: flex; align-items: baseline; gap: 14px; margin: 18px 0 8px;
  font-family: var(--serif-display); font-weight: 700; letter-spacing: 0.08em;
}
.war-divider span { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.war-divider small { font-family: var(--sans); font-weight: 600; letter-spacing: 0.12em; color: var(--gold-text); font-size: 0.85rem; }
.war-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); align-self: center; }
.year-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.year-group.is-hidden, .war-divider.is-hidden, .card.is-hidden { display: none; }
.year-label { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.year-label h3 { font-family: var(--serif-display); font-size: 2.2rem; color: var(--poppy); line-height: 1; }
.year-count { font-size: 0.9rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 720px) {
  .year-group { grid-template-columns: 1fr; gap: 12px; }
  .year-label { position: static; display: flex; align-items: baseline; gap: 12px; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border-radius: var(--radius); padding: 20px 20px 14px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(179, 148, 98, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); opacity: 0.8;
}
.card[data-stone="no"]::before { background: linear-gradient(90deg, var(--poppy), #e0675e); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(179, 148, 98, 0.45); }
.card:target { box-shadow: 0 0 0 3px var(--gold), var(--shadow-md); }
.card-top { display: flex; align-items: center; gap: 14px; }
.badge { width: 58px; height: 58px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15)); }
.portrait { width: 64px; height: 88px; object-fit: cover; object-position: top; flex: none; border-radius: 6px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.card-names { min-width: 0; }
.card-fore { margin: 0; font-family: var(--serif-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-sur { font-family: var(--serif-display); font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.card-rank { margin: 0; font-weight: 600; font-size: 0.98rem; line-height: 1.4; }
.card-rank span { display: block; font-weight: 400; color: var(--ink-soft); }
.card-died { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.died { font-weight: 600; color: var(--poppy); }
.age { font-size: 0.92rem; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.chip-poppy { background: rgba(179, 38, 30, 0.1); color: var(--poppy-dark); }
.card-rest { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.4; }
.card-rest .ico { color: var(--gold); margin-top: 3px; }
.ref { font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

/* Story disclosure */
.story { margin-top: auto; border-top: 1px solid var(--line); }
.story summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; cursor: pointer; font-weight: 600; color: var(--gold-text);
}
.story summary::-webkit-details-marker { display: none; }
.story summary .ico { transition: transform 0.35s var(--ease); }
.story[open] summary .ico { transform: rotate(180deg); }
.story summary:hover { color: var(--poppy); }
.story-body { padding: 2px 0 8px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft); }
.story-body p { margin-bottom: 0.7em; }
.story[open] .story-body { animation: story-in 0.45s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: translateY(-6px); } }
.ext { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; }

/* Research note */
.research-note {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; padding: 24px;
  background: var(--card); border-radius: var(--radius); border: 1px dashed var(--gold); box-shadow: var(--shadow-sm);
}
.research-note .poppy { width: 32px; height: 32px; margin-top: 2px; }
.research-note h3 { font-family: var(--serif-display); font-size: 1.25rem; margin-bottom: 8px; }
.research-note p { margin: 0; color: var(--ink-soft); }

/* ---------- Not on the stone ---------- */
#not-on-stone p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; color: var(--ink-soft); }
#not-on-stone a { font-weight: 600; }

/* ---------- Roll of Honour ---------- */
.roll-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.roll-grid > div > p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; color: rgba(251, 246, 234, 0.86); }
.roll-names {
  border: 1px solid rgba(179, 148, 98, 0.5); border-radius: var(--radius); padding: 28px 30px;
  background: linear-gradient(180deg, rgba(251, 246, 234, 0.04), rgba(251, 246, 234, 0.01));
}
.roll-names h3 { font-family: var(--serif-display); font-size: 1.3rem; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--gold-light); }
.roll-sub { font-family: var(--serif); font-style: italic; color: rgba(251, 246, 234, 0.7); margin: 14px 0 8px; }
.roll-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-family: var(--serif-display); letter-spacing: 0.04em; }
.roll-list li { padding: 4px 0; break-inside: avoid; }
@media (max-width: 900px) { .roll-grid { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.visit-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(179, 148, 98, 0.22); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.visit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.visit-card > .ico, .visit-card > .poppy { width: 30px; height: 30px; color: var(--poppy); margin-bottom: 14px; }
.visit-card h3 { font-family: var(--serif-display); font-size: 1.2rem; margin-bottom: 8px; }
.visit-card p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(251, 246, 234, 0.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.footer-about p:last-child { font-size: 0.98rem; }
.site-footer h2 { font-family: var(--serif-display); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-light); }
.footer-credit p { font-size: 0.92rem; margin-bottom: 12px; }
.jss { display: inline-block; padding: 10px 12px; border-radius: 10px; transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.jss:hover { background: rgba(251, 246, 234, 0.06); transform: translateY(-2px); }
.jss img { width: 200px; height: auto; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(251, 246, 234, 0.12); }
.footer-base p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-light); }
.to-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.to-top .ico { transform: rotate(180deg); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .scroll-cue, .filters, .filter-status, .hero-actions { display: none !important; }
  .hero { min-height: 0; padding: 24px 0; }
  .story > .story-body { display: block !important; }
  .js .reveal { opacity: 1; transform: none; }
}
