/* We HQ — marketing landing page styles.
   "We the People" / founding-document theme: aged-parchment surfaces, iron-gall
   ink text, a serif voice, constitutional navy for the dramatic bands, and gilt +
   wax-seal-red accents. Single stylesheet, no build step. System serif stack
   (no web-font fetch → no font-block CLS/LCP). All visuals are CSS + inline SVG
   (zero raster images) so the page stays far inside the 500KB / 50KB CSS budget. */

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Parchment + iron-gall ink (deepened + cooled for monument weight) */
  --paper:    #ece2cb;
  --paper-lo: #e2d7ba;
  --paper-hi: #f3ebd5;
  --ink:      #1b1810;
  --ink-soft: #38301f;
  --muted:    #574a35;
  --line:     #cdb98f;
  --line-soft:#ddcca6;

  /* Constitutional navy (dark bands) */
  --navy:     #15233f;
  --navy-2:   #1c2d4e;
  --on-navy:  #f3ead4;
  --on-navy-muted: #c2b79e;
  --on-navy-line:  rgba(243, 234, 212, 0.16);

  /* Wax-seal red + aged gilt */
  --red:        #9a342b;
  --red-strong: #74241d;
  --gold:       #b8893b;
  --gold-soft:  #d9b25e;
  --gold-deep:  #936a28;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --maxw: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 3px rgba(27, 24, 16, 0.13);
  --shadow-md: 0 2px 4px rgba(27, 24, 16, 0.14), 0 14px 32px rgba(27, 24, 16, 0.17);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Subtle paper grain (tiny inline SVG turbulence; used at low opacity) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Reset / base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(120% 80% at 12% 0%, var(--paper-hi), transparent 55%),
    radial-gradient(120% 90% at 100% 30%, #efe6cb, transparent 60%);
  font-family: var(--serif);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }

::selection { background: var(--gold-soft); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 0; }

/* ─── Layout primitives ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--soft { background: var(--paper-lo); border-block: 1px solid var(--line-soft); }
.section--warm { background: #efe5c9; border-block: 1px solid var(--line-soft); }

/* Eyebrow / kicker — serif small-caps with a gilt rule */
.kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
  font-variant: small-caps;
}
.kicker::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.kicker--center { justify-content: center; }
.kicker--on-dark { color: var(--gold-soft); }
.kicker--on-dark::before { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.kicker--on-dark::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin: 0 0 0.9rem;
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--muted);
  margin: 0;
}

/* Decorative ornament (engraved rule + center diamond) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.5rem auto;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 12vw, 5rem);
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }

/* ─── Buttons (wax-seal red) ─────────────────────────────────────────────── */
.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(180deg, #8c2c23, var(--red-strong));
  color: #f4e7c9;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(27, 24, 16, 0.25), inset 0 0 0 1px rgba(216, 178, 94, 0.45);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), filter 160ms var(--ease);
  will-change: transform;
}
.cta:hover, .cta:focus-visible,
.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 3px 8px rgba(116, 36, 29, 0.4), inset 0 0 0 1px rgba(216, 178, 94, 0.7);
}
.cta:active, .btn:active { transform: translateY(0); }
.cta svg, .btn svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(184, 137, 59, 0.1);
  border-color: var(--gold);
  filter: none;
  box-shadow: none;
}
.btn--ghost-dark {
  background: transparent;
  color: var(--on-navy);
  box-shadow: none;
  border: 1.5px solid var(--on-navy-line);
}
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible {
  background: rgba(243, 234, 212, 0.08);
  border-color: var(--gold-soft);
  filter: none;
  box-shadow: none;
}
.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.8rem; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 234, 212, 0.82);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(243, 234, 212, 0.68);
    -webkit-backdrop-filter: saturate(1.3) blur(12px);
    backdrop-filter: saturate(1.3) blur(12px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
/* Blackletter "We" mark, masked so a single asset recolors per context
   (header = ink/navy; footer / night mode = cream). Recolor = swap background-color. */
.brand-logo {
  --logo-h: 2.7rem;
  flex: none;
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 716 / 547);
  background-color: var(--navy);
  -webkit-mask: url("/assets/logo/wehq-we.png") center / contain no-repeat;
          mask: url("/assets/logo/wehq-we.png") center / contain no-repeat;
  transition: background-color 160ms var(--ease);
}
@media (min-width: 600px) { .brand-logo { --logo-h: 2.9rem; } }
.wordmark:hover .brand-logo, .wordmark:focus-visible .brand-logo { background-color: var(--red); }
/* Footer: the full "We HEADQUARTERS" lockup, in cream on navy */
.footer-brand .brand-logo {
  --logo-h: 3.4rem;
  width: calc(var(--logo-h) * 800 / 720);
  background-color: var(--on-navy);
  -webkit-mask-image: url("/assets/logo/wehq-logo.png");
          mask-image: url("/assets/logo/wehq-logo.png");
}
.footer-brand .wordmark:hover .brand-logo,
.footer-brand .wordmark:focus-visible .brand-logo { background-color: var(--gold-soft); }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  min-height: min(86svh, 800px);
  display: grid;
  align-items: center;
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(3.5rem, 9vh, 6rem);
}
/* warm parchment mottle */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 18% 12%, #f9f3e1, transparent 60%),
    radial-gradient(55% 45% at 85% 20%, #f1e7cc, transparent 60%),
    radial-gradient(70% 60% at 70% 100%, #e9dcbd, transparent 60%);
}
/* paper grain */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* faint 13-star seal watermark */
.hero__seal {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: min(80vw, 560px);
  height: auto;
  color: var(--gold-deep);
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
/* worn edge vignette */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 -90px 70px -60px rgba(42, 34, 22, 0.18), inset 0 0 120px rgba(42, 34, 22, 0.06);
  pointer-events: none;
}
.hero__content {
  max-width: 50rem;
  text-align: center;
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 auto 2.1rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust {
  margin: 2.4rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: min(100%, 36rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}
.hero__trust svg { flex: none; color: var(--gold-deep); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.25rem);
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--gold-deep);
  z-index: 1;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--red); }
/* The scroll cue holds still in the monument theme — no idle bob. */

/* ─── Value proposition ──────────────────────────────────────────────────── */
.value-prop {
  background: #efe5c9;
  border-block: 1px solid var(--line-soft);
  text-align: center;
}
.value-prop .container { max-width: 52rem; }
.value-prop h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin: 0 0 1.1rem;
  color: var(--navy);
}
.value-prop p {
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  margin: 0 auto;
  max-width: 42rem;
}

/* ─── Movement pillars (founding engravings) ─────────────────────────────── */
.pillars-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 720px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  --accent: var(--gold-soft);
  --accent-2: #efe2bd;
  --art-bg: #15243f;
  display: flex;
  flex-direction: column;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.pillar--influence { --art-bg: #14233d; }
.pillar--shift     { --art-bg: #1a2438; }
.pillar--lead      { --accent-2: #f0d59a; --art-bg: #1d2236; }

.pillar__art {
  position: relative;
  height: clamp(150px, 22vw, 176px);
  color: var(--accent);
  background: var(--art-bg);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(216, 178, 94, 0.16);
}
.pillar__art::before {
  /* faint gilt light from the top of the engraving plate */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 80% at 50% 0%, rgba(216, 178, 94, 0.16), transparent 70%);
}
.pillar__art::after {
  /* engraving-plate grain (overlay so it reads on the dark ground) */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: transform 320ms var(--ease);
}
/* Engravings hold still in the monument theme (no hover zoom, no idle motion). */
.motif--quill .flourish { stroke-dasharray: none; }
.motif--torch .flame-glow { opacity: 0.45; }
.motif .a2 { fill: var(--accent-2); }
.motif .a2s { stroke: var(--accent-2); }

.pillar__body { padding: 1.6rem 1.6rem 1.85rem; }
.pillar h3 {
  font-size: 1.32rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.pillar__body p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ─── Patronage statement band (navy seal moment) ────────────────────────── */
.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
}
.statement__glow {
  /* engraved-plaque keyline frame inset from the band edges */
  position: absolute;
  inset: clamp(0.9rem, 3vw, 1.85rem);
  z-index: -1;
  border: 2px double rgba(216, 178, 94, 0.38);
  border-radius: 2px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(184, 137, 59, 0.14), transparent 70%);
}
.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.statement .container { max-width: 56rem; text-align: center; }
.statement blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 600;
}
.statement blockquote .accent {
  font-style: normal;
  color: var(--gold-soft);
}
.statement .attribution {
  margin: 1.75rem 0 0;
  color: var(--on-navy-muted);
  font-size: 1rem;
}

/* ─── How patronage works (steps) ────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.85rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #f4e7c9;
  background: var(--red-strong);
  border: 1px solid var(--gold);
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 2px rgba(216, 178, 94, 0.22);
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.22rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ─── CTA band (navy seal moment) ────────────────────────────────────────── */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-2);
  color: var(--on-navy);
  text-align: center;
}
.cta-band__glow {
  /* engraved-plaque keyline frame inset from the band edges */
  position: absolute;
  inset: clamp(0.9rem, 3vw, 1.85rem);
  z-index: -1;
  border: 2px double rgba(216, 178, 94, 0.38);
  border-radius: 2px;
  background: radial-gradient(60% 80% at 50% 120%, rgba(184, 137, 59, 0.16), transparent 65%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-band .container { max-width: 46rem; }
.cta-band h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin: 0 0 0.9rem;
}
.cta-band p {
  color: var(--on-navy-muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  margin: 0 auto 2rem;
  max-width: 34rem;
}
/* When the band has no trailing CTA (support hidden), drop the gap the button used
   so the copy stays centered within the engraved keyline frame. Re-opens automatically
   when the support CTA is uncommented and the <a> becomes the last element child. */
.cta-band p:last-child { margin-bottom: 0; }

/* ─── Get the app (parchment) ────────────────────────────────────────────── */
.get-app {
  text-align: center;
  background: var(--paper-lo);
  border-top: 1px solid var(--line-soft);
}
.get-app .container { max-width: 46rem; }
.get-app h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.get-app .lead { margin-bottom: 2rem; }
.badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}
.store-badge {
  display: inline-block;
  border-radius: 11px;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}
.store-badge img { display: block; width: auto; }
/* Official badges have different intrinsic padding (Google's PNG bakes in its
   clear-space); size each so the visible buttons read at the same height. */
#mlp-app-store-badge-apple img { height: 44px; }
#mlp-app-store-badge-google img { height: 65px; }
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.attribution {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}
/* Coming-soon notice — temporary stand-in shown in the Get-the-app section while the
   store badges are commented out (apps not yet published). Echoes the cta-band engraved
   keyline (2px double gilt). Remove when the badges are re-enabled in index.html. */
.coming-soon {
  display: inline-block;
  margin: 0;
  padding: 0.7rem 1.7rem;
  border: 2px double var(--gold);
  border-radius: 2px;
  background: radial-gradient(130% 170% at 50% 0%, rgba(184, 137, 59, 0.14), transparent 70%);
  color: var(--gold-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant: small-caps;
}

/* ─── Footer (navy) ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  border-top: 3px double var(--gold-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.55rem; align-items: center; }
@media (min-width: 720px) { .footer-brand { align-items: flex-start; } }
.footer-brand p { margin: 0; font-size: 0.94rem; max-width: 24rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.25rem;
  transition: color 140ms var(--ease);
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-soft); }
.copyright { color: var(--on-navy-muted); margin: 1.5rem 0 0; font-size: 0.85rem; }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
}
.legal h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.legal .placeholder-note {
  background: #f6ead0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin: 1.25rem 0 2.5rem;
}
.legal h2 {
  font-size: 1.32rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p { color: var(--ink-soft); }
.legal a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  text-decoration: none;
}
.legal a.back:hover { text-decoration: underline; }

/* ─── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  text-align: center;
  padding: clamp(4rem, 14vw, 8rem) var(--pad);
  max-width: 36rem;
  margin: 0 auto;
}
.notfound h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.notfound p { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }

/* ─── Engravings are static in the monument theme ───────────────────────────
   The pillar plates (star ring / quill / torch) hold still — no twinkle, write,
   or flicker. Only the scroll-reveal below animates, gated on motion preference. */

/* ─── Scroll-reveal (progressive enhancement; no-op without support) ─────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
