/* ──────────────────────────────────────────────────────────────────────────
   Mike Hart for Calvert County Commissioner

   The page is built on the Maryland flag. Its four quarters come from two
   families: Calvert (gold and black, the arms the county is named for) and
   Crossland (red and white). Each of the four sections takes one quarter in
   flag order, and its title plate sits in that quarter's corner of the photo.

   Type: Besley, a revival of the 1845 Clarendon that filled 19th-century
   broadsides and tobacco labels; Commissioner for reading and forms.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley-italic-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Heraldic tinctures, matched to the official Maryland flag. */
  --sable: #000000;
  --or: #eaaa00;
  --or-bright: #ffbf1f;
  --gules: #9d2235;
  --gules-deep: #7c1a2a;
  --argent: #ffffff;
  --oyster: #ecebe6;

  --ink-soft: rgba(0, 0, 0, 0.74);
  --paper-soft: rgba(255, 255, 255, 0.84);

  --font-display: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --font-text: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --mast-h: 64px;
  --max: 1320px;
  --section-pad: clamp(64px, 10vw, 136px);
  --focus: var(--gules);
}

@media (min-width: 960px) {
  :root { --mast-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--mast-h);
}

body {
  margin: 0;
  background: var(--sable);
  color: var(--sable);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--or);
  color: var(--sable);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; --focus: var(--argent); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 0;
  font: 700 1rem/1.1 var(--font-text);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }

.btn-or { background: var(--or); color: var(--sable); }
.btn-or:hover { background: var(--or-bright); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.9); color: var(--argent); }
.btn-ghost:hover { background: var(--argent); color: var(--sable); }

.btn-sable { background: var(--sable); color: var(--or); }
.btn-sable:hover { background: var(--gules); color: var(--argent); }
.btn-sable[disabled] { cursor: progress; opacity: 0.7; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--mast-h);
  /* Lines up with the centered content column on very wide screens. */
  padding: env(safe-area-inset-top, 0) max(var(--gutter), calc((100% - var(--max)) / 2)) 0;
  background: var(--sable);
  color: var(--argent);
  --focus: var(--or);
}

.wordmark {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1;
  text-decoration: none;
}
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--or);
}
.wordmark-office {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--paper-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--argent);
  font: 600 0.9375rem/1 var(--font-text);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.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-label { font: inherit; }
.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); }

.nav-list {
  position: fixed;
  top: var(--mast-h);
  left: 0;
  right: 0;
  display: none;
  margin: 0;
  padding: 8px var(--gutter) 28px;
  list-style: none;
  background: var(--sable);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}
.nav-list[data-open] { display: block; }
.nav-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-list a[aria-current="true"] { color: var(--or); }

.nav-mark { flex: none; width: 36px; height: 24px; }
.nav-mark .veil { fill: var(--sable); opacity: 0.8; }

.masthead-cta { flex: none; }

@media (max-width: 479px) {
  .nav-toggle { width: 42px; justify-content: center; padding: 0; }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 339px) {
  .wordmark-office { display: none; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-list {
    position: static;
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list li + li { border: 0; }
  .nav-list a {
    gap: 10px;
    min-height: 44px;
    font-family: var(--font-text);
    font-size: 0.9375rem;
    font-weight: 600;
  }
  .nav-list a:hover { color: var(--or); }
  .nav-mark { display: none; }
  .site-nav { margin-right: clamp(12px, 2vw, 28px); }
  .wordmark-name { font-size: 1.75rem; }
  .wordmark-office { font-size: 0.8125rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--mast-h));
  overflow: hidden;
  background: var(--sable);
  color: var(--argent);
  --focus: var(--or);
}

.hero-photo {
  position: absolute;
  inset: 0 0 26% 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    #000 0%,
    #000 26%,
    rgba(0, 0, 0, 0.82) 42%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-copy {
  width: 100%;
  padding: 0 var(--gutter) clamp(28px, 5svh, 56px);
}

.hero-title { font-weight: 900; }

.hero-name {
  display: block;
  font-size: clamp(4.5rem, 25vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.025em;
  color: var(--or);
}
.hero-name > span { display: block; }

.hero-office {
  display: block;
  max-width: 20em;
  margin-top: 0.55em;
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 4.6vw, 1.5rem);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--argent);
}

.hero-lede {
  max-width: 30em;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* One orchestrated entrance: the name, then everything under it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-name > span,
  .hero-office,
  .hero-lede,
  .hero-actions {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-name > span:nth-child(2) { animation-delay: 0.08s; }
  .hero-office { animation-delay: 0.22s; }
  .hero-lede { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.38s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* On phones the lede would push the name into Mike's face; the same facts
   open the Meet Mike section. */
@media (max-width: 599px) {
  .hero-lede { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 16px; font-size: 0.9375rem; }
}

@media (min-width: 960px) {
  .hero {
    align-items: center;
    min-height: max(620px, calc(100svh - var(--mast-h)));
  }
  .hero-photo { inset: 0 0 0 34%; }
  .hero-photo img {
    object-position: 50% 14%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }
  .hero::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 32%);
  }
  .hero-copy {
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding-block: 72px;
  }
  .hero-name { font-size: clamp(7rem, 11.5vw, 12.5rem); }
  .hero-office { max-width: 17em; font-size: clamp(1.375rem, 1.9vw, 1.875rem); }
  .hero-lede { font-size: 1.125rem; max-width: 27em; }
  .hero-actions { margin-top: 32px; }
}

/* ── Quarter bands: photo + heraldic title plate ──────────────────────── */

.quarter { scroll-margin-top: var(--mast-h); }

.band {
  position: relative;
  isolation: isolate;
  height: clamp(460px, 78svh, 680px);
  overflow: hidden;
  background: #1a1a1a;
}

.band-photo,
.band-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.band-photo img { object-fit: cover; }

.q1 .band-photo img { object-position: 62% 50%; }
.q2 .band-photo img { object-position: 30% 50%; }
.q3 .band-photo img { object-position: 45% 50%; }
.q4 .band-photo img { object-position: 30% 50%; }

.plate {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(88%, 460px);
  padding: 24px 24px 26px;
}
.q1 .plate { top: 0; left: 0; }
.q2 .plate { top: 0; right: 0; }
.q3 .plate { bottom: 0; left: 0; }
.q4 .plate { bottom: 0; right: 0; }

.plate h2 {
  font-size: clamp(2.625rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.plate-note {
  max-width: 24em;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.quarter-mark {
  flex: none;
  width: 54px;
  height: 36px;
}
.quarter-mark .veil { opacity: 0.8; }
.quarter-mark .frame { fill: none; stroke-width: 0.6; }

.plate-sable { background: var(--sable); color: var(--argent); --focus: var(--or); }
.plate-sable h2 { color: var(--or); }
.plate-sable .veil { fill: var(--sable); }
.plate-sable .frame { stroke: rgba(234, 170, 0, 0.55); }

.plate-gules { background: var(--gules); color: var(--argent); }
.plate-gules .veil { fill: var(--gules); }
.plate-gules .frame { stroke: rgba(255, 255, 255, 0.55); }

.plate-argent { background: var(--argent); color: var(--sable); }
.plate-argent h2 { color: var(--gules); }
.plate-argent .veil { fill: var(--argent); }
.plate-argent .frame { stroke: rgba(0, 0, 0, 0.3); }

.plate-or { background: var(--or); color: var(--sable); }
.plate-or .veil { fill: var(--or); }
.plate-or .frame { stroke: rgba(0, 0, 0, 0.4); }

.band-caption {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--argent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.q1 .band-caption { right: 12px; bottom: 12px; }
.q2 .band-caption { left: 12px; bottom: 12px; }
.q3 .band-caption { right: 12px; top: 12px; }
.q4 .band-caption { left: 12px; top: 12px; }

@media (min-width: 960px) {
  .band { height: clamp(560px, 84vh, 880px); }

  /* On wide screens each plate is a true quarter of its band. */
  .plate {
    width: 50%;
    min-height: 50%;
    justify-content: flex-end;
    gap: 18px;
    padding: clamp(32px, 4vw, 64px);
  }
  .q3 .plate,
  .q4 .plate { justify-content: flex-start; }

  .plate h2 { font-size: clamp(4rem, 6.4vw, 6.25rem); }
  .plate-note { font-size: 1.1875rem; }
  .quarter-mark { width: 66px; height: 44px; }

  .band-caption { font-size: 0.875rem; }
  .q1 .band-caption { right: 20px; bottom: 20px; }
  .q2 .band-caption { left: 20px; bottom: 20px; }
  .q3 .band-caption { right: 20px; top: 20px; }
  .q4 .band-caption { left: 20px; top: 20px; }
}

/* ── Shared section text ──────────────────────────────────────────────── */

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.008em;
}

/* ── Meet Mike ────────────────────────────────────────────────────────── */

.meet {
  padding: var(--section-pad) var(--gutter);
  background: var(--argent);
}
.meet-inner {
  display: grid;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}
.meet-text { max-width: 36em; }
.meet-text .lead { max-width: 20em; margin-bottom: 1.1em; }
.meet-text p:not(.lead) { color: var(--ink-soft); font-size: 1.125rem; }

.meet-map { margin: 0; }
.meet-map img {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.meet-map figcaption {
  max-width: 34em;
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 960px) {
  .meet-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 7vw, 120px);
    align-items: start;
  }
  .meet-text p:not(.lead) { font-size: 1.1875rem; }
}

/* ── Priorities: alternating blocks ───────────────────────────────────── */

.priority {
  display: grid;
  background: var(--argent);
  color: var(--sable);
}
.priority:nth-child(even) {
  background: var(--sable);
  color: var(--argent);
  --focus: var(--or);
}

.priority-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1a1a1a;
}
.priority-photo picture,
.priority-photo img {
  width: 100%;
  height: 100%;
}
.priority-photo img { object-fit: cover; }
.priority-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--argent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.priority-text {
  padding: 40px var(--gutter) 56px;
}
.priority h3 {
  max-width: 13em;
  margin-bottom: 18px;
  font-size: clamp(2rem, 8.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
}
.priority:nth-child(odd) h3 { color: var(--gules); }
.priority:nth-child(even) h3 { color: var(--or); }
.priority-text p {
  max-width: 30em;
  font-size: 1.125rem;
  line-height: 1.6;
}
.priority:nth-child(odd) .priority-text p { color: var(--ink-soft); }
.priority:nth-child(even) .priority-text p { color: var(--paper-soft); }

@media (min-width: 960px) {
  .priority {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(480px, 64vh, 640px);
  }
  .priority-photo { aspect-ratio: auto; height: 100%; }
  .priority:nth-child(even) .priority-photo { order: 2; }
  .priority-text {
    align-self: center;
    padding: 72px clamp(40px, 6vw, 112px);
  }
  .priority-text p { font-size: 1.25rem; }
  .priority-photo figcaption { left: 20px; bottom: 20px; font-size: 0.875rem; }
}

/* ── Stay Connected ───────────────────────────────────────────────────── */

.signup {
  padding: var(--section-pad) var(--gutter);
  background: var(--argent);
}
.signup-inner {
  display: grid;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.signup-intro .lead { max-width: 16em; margin-bottom: 0.8em; }
.signup-intro p:not(.lead) { max-width: 28em; color: var(--ink-soft); }

.signup-form {
  display: grid;
  gap: 20px;
  max-width: 44rem;
}
.field-row { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 0.9375rem;
  font-weight: 650;
}
.optional { font-weight: 400; color: var(--ink-soft); }

.field input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 2px solid var(--sable);
  border-radius: 0;
  background: var(--argent);
  color: var(--sable);
  font: 400 1.0625rem/1.2 var(--font-text);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus-visible { outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--gules); box-shadow: inset 0 0 0 1px var(--gules); }

.field-error {
  min-height: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gules);
}
.field-error:empty { display: none; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.disclaimer {
  margin: 0;
  padding: 16px 18px;
  background: var(--oyster);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.disclaimer a { color: var(--gules); font-weight: 600; }

/* Turnstile stays out of sight unless Cloudflare needs the visitor to click. */
.turnstile:empty { display: none; }
.form-note { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--gules); }

.signup-form .btn { justify-self: start; min-width: 180px; }

.form-status {
  margin: 0;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status[data-state="ok"] {
  padding: 16px 18px;
  background: var(--sable);
  color: var(--or);
}
.form-status[data-state="error"] { color: var(--gules); }

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .signup-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 120px);
    align-items: start;
  }
  .signup-intro { position: sticky; top: calc(var(--mast-h) + 40px); }
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact {
  padding: var(--section-pad) var(--gutter);
  background: var(--or);
  color: var(--sable);
  --focus: var(--sable);
}
.contact-inner {
  display: grid;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
}
.contact-item { min-width: 0; }
.contact-item dt {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 650;
}
.contact-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-item address { font-style: normal; }
.contact-item a { text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.contact-item a:hover { color: var(--gules-deep); }

@media (min-width: 860px) {
  .contact-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 48px;
  }
  .contact-item dd { font-size: clamp(1.375rem, 2vw, 1.875rem); }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0));
  background: var(--sable);
  color: var(--paper-soft);
  font-size: 0.9375rem;
  --focus: var(--or);
}
.footer-inner {
  display: grid;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-flag { width: 54px; height: 36px; }

.authority {
  justify-self: start;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--argent);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--argent);
  font-weight: 600;
}

.credits summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--argent);
  font-weight: 600;
  cursor: pointer;
}
.credits ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.credits p { font-size: 0.875rem; }
.credits a { color: var(--argent); }

.copyright { margin: 0; font-size: 0.875rem; }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal-head {
  padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(40px, 6vw, 72px);
  background: var(--sable);
  color: var(--argent);
}
.legal-head-inner { max-width: 48rem; margin: 0 auto; }
.legal-head h1 {
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--or);
}
.legal-head p { margin: 18px 0 0; color: var(--paper-soft); }

.legal {
  padding: clamp(48px, 8vw, 96px) var(--gutter) var(--section-pad);
  background: var(--argent);
}
.legal-body { max-width: 48rem; margin: 0 auto; }
.legal-body h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gules);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
}
.legal-body p,
.legal-body li { color: rgba(0, 0, 0, 0.82); }
.legal-body ul { margin: 0 0 1em; padding-left: 1.25em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body li::marker { color: var(--gules); }
.legal-body address { font-style: normal; }
.legal-body a { color: var(--gules); font-weight: 600; }

/* ── Plain pages (thank-you, 404, no-JS errors) ───────────────────────── */

.plain-page { background: var(--argent); }
.plain {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) var(--gutter);
}
.plain h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--gules);
}
.plain p { font-size: 1.125rem; }
.plain ul { padding-left: 1.2em; }
.plain .btn { margin-top: 12px; }

/* ── Motion preferences ───────────────────────────────────────────────── */

@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;
  }
}
