/* McCaskill Media — public site
   Palette (UPDATED CLAUDE.md §2, owner decision Dec 2, 2026: white page background).
   Contrast on white: charcoal 17.9:1 · dark gold 6.0:1 · muted 6.7:1.
   Antique gold #B49A62 is used ONLY on charcoal (6.6:1) — it fails on white. */

@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --white: #ffffff;
  --charcoal: #171717;
  --charcoal-2: #262626;
  --ivory: #f8f5ef;
  --gold: #b49a62;        /* on charcoal only */
  --gold-light: #d9c79f;  /* on charcoal only */
  --gold-dark: #7a5f22;   /* links/labels on white */
  --muted: #5c5c5c;
  --line: #e6e1d6;
  --focus: #0b2a5b;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; } /* 18px base */
body { margin: 0; font-family: var(--sans); line-height: 1.65; color: var(--charcoal); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
cite { font-style: italic; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--charcoal); color: var(--white); border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(2rem, 6vw, 4rem); }
.small { font-size: 0.85rem; color: var(--muted); }

/* ---------- Header and tabs ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 70%); } /* decorative */
.bar { max-width: var(--wrap); margin-inline: auto; padding: 0.75rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--charcoal); text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--charcoal); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.brand-sub { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bar-end { display: flex; align-items: center; gap: 0.5rem; }

.admin-login { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.admin-login:hover { color: var(--charcoal); background: var(--ivory); }
.admin-login svg { width: 22px; height: 22px; }
.admin-login .label { position: absolute; right: 0; top: calc(100% + 4px); white-space: nowrap; font-size: 0.8rem; background: var(--charcoal); color: var(--white); padding: 0.25rem 0.6rem; border-radius: 6px; opacity: 0; pointer-events: none; z-index: 20; }
.admin-login:hover .label, .admin-login:focus-visible .label { opacity: 1; }

.menu-toggle { display: none; font: inherit; font-size: 0.95rem; min-height: 44px; padding: 0 1rem; border: 2px solid var(--charcoal); background: var(--white); color: var(--charcoal); border-radius: 999px; cursor: pointer; }

.main-nav { max-width: var(--wrap); margin-inline: auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tabs a { display: block; padding: 0.7rem 0.9rem; color: var(--charcoal); text-decoration: none; font-size: 0.95rem; border-bottom: 3px solid transparent; }
.tabs a:hover { border-bottom-color: var(--line); }
.tabs a[aria-current] { border-bottom-color: var(--charcoal); font-weight: 700; }

.subtabs { background: var(--charcoal); }
.subtabs ul { list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 0 clamp(1rem, 4vw, 2.5rem); display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: thin; }
.subtabs a { display: block; white-space: nowrap; padding: 0.6rem 0.9rem; color: var(--ivory); text-decoration: none; font-size: 0.9rem; border-bottom: 3px solid transparent; }
.subtabs a:hover { color: var(--white); }
.subtabs a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); font-weight: 700; }
.subtabs :focus-visible { outline-color: var(--gold-light); outline-offset: -3px; }

@media (max-width: 960px) {
  .js .menu-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; padding-bottom: 0.75rem; }
  .main-nav .tabs { flex-direction: column; }
  .main-nav .tabs a { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .main-nav .tabs a[aria-current] { border-left-color: var(--charcoal); border-bottom-color: var(--line); }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.75rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.home-hero { padding-block: clamp(2rem, 6vw, 4.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; }
.hero-text { padding-bottom: clamp(1rem, 5vw, 4rem); }
.hero-portrait { margin: 0; }
.hero-portrait img { width: 100%; max-width: 34rem; margin-left: auto; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-portrait img { margin-inline: auto; max-width: 26rem; } }

.page-hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(0.5rem, 2vw, 1rem); }
.page-hero h1 { max-width: 48rem; }

.film-hero { background: var(--charcoal); color: var(--ivory); padding-block: clamp(3rem, 9vw, 6rem); margin: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 0; border-radius: var(--radius); max-width: calc(var(--wrap) - 2rem); }
@media (min-width: 76rem) { .film-hero { margin-inline: auto; } }
.film-hero .kicker { color: var(--gold); }
.film-hero h1 { color: var(--white); }
.film-hero strong { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--charcoal-2); }
.btn-secondary { border-color: var(--charcoal); color: var(--charcoal); background: var(--white); }
.btn-secondary:hover { background: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: var(--gold); color: var(--ivory); }
.btn-ghost:hover { background: var(--charcoal-2); }

/* ---------- Cards and containers (darker internal containers) ---------- */
.cards, .pathways, .honors { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.pathways { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--white); }
.card-dark { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.card-dark h2, .card-dark h3 { color: var(--white); }
.card-dark a { color: var(--gold-light); }
.card-dark .kicker { color: var(--gold); }
.card-dark :focus-visible { outline-color: var(--gold-light); }
.card-num { font-family: var(--serif); font-size: 2rem; color: var(--gold); margin: 0 0 0.25rem; line-height: 1; }
.pathway { padding: clamp(1.5rem, 4vw, 2.5rem); }
.pathway h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }

.panel { background: var(--ivory); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3rem); border-left: 6px solid var(--charcoal); }
.panel .tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.feature { border-radius: var(--radius); padding: clamp(1.75rem, 6vw, 3.5rem); }
.feature h2 { font-size: clamp(2rem, 5vw, 3rem); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.split-portrait { grid-template-columns: minmax(12rem, 22rem) 1fr; align-items: start; }
.portrait { border-radius: var(--radius); background: var(--white); }
@media (max-width: 760px) { .split, .split-portrait { grid-template-columns: 1fr; } }

/* Honors */
.honor { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--charcoal); color: var(--ivory); }
.honor h3 { color: var(--white); margin-bottom: 0.25em; }
.honor-year { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); margin: 0; line-height: 1.1; }
.honor-org { color: var(--gold-light); font-size: 0.95rem; }
.honor a { color: var(--gold-light); }
.honor .small { color: #c9c4b8; }
.honor :focus-visible { outline-color: var(--gold-light); }
@media (max-width: 560px) { .honor { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--charcoal); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.4rem; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--charcoal); }
.tl-year { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 0 0 0.25rem; }
.timeline-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); border-left: 0; border-top: 3px solid var(--charcoal); gap: 1rem; }
.timeline-compact li { padding: 1.25rem 0 0; }
.timeline-compact li::before { left: 0; top: -9px; }

/* Status labels — text, not color alone */
.status { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.15rem 0.65rem; border-radius: 999px; border: 2px solid currentColor; margin-bottom: 0.75rem; }
.card-dark .status { color: var(--gold-light); }

/* Placeholders — clearly labeled missing content */
.placeholder { border: 2px dashed var(--gold-dark); background: var(--ivory); border-radius: 10px; padding: 0.9rem 1.1rem; margin: 1rem 0; color: var(--charcoal); font-size: 0.95rem; }
.ph-tag { display: inline-block; background: var(--gold-dark); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: 4px; margin-right: 0.4rem; }
.card-dark .placeholder, .feature .placeholder { color: var(--charcoal); }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.facts { margin: 1rem 0; display: grid; gap: 0.5rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 0; } }
.book { border-top: 1px solid var(--line); }
.book:first-of-type { border-top: 0; }
.link-buttons { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.link-buttons a { display: inline-block; padding: 0.5rem 1rem; border: 2px solid var(--charcoal); border-radius: 999px; color: var(--charcoal); text-decoration: none; font-weight: 700; }
.link-buttons a:hover { background: var(--ivory); }
.you-who-line { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; background: var(--charcoal); color: var(--gold-light); padding: 1rem 1.5rem; border-radius: var(--radius); }
.word-band { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.4rem); text-align: center; }

/* Forms */
.notice { background: var(--ivory); border-left: 6px solid var(--charcoal); padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.inquiry fieldset { border: 0; padding: 0; margin: 0; }
.inquiry fieldset[disabled] { opacity: 0.75; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 2px solid var(--muted); border-radius: 8px; background: var(--white); color: var(--charcoal); }
.field.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.field.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; flex: none; }
.field.check label { font-weight: 400; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.3rem 0 0; }
.req { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* Footer — small dark band */
.site-footer { background: var(--charcoal); color: var(--ivory); margin-top: clamp(2rem, 6vw, 4rem); padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-line { font-family: var(--serif); font-size: 1.2rem; color: var(--white); max-width: 26rem; }
.footer-small { font-size: 0.85rem; color: #c9c4b8; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.4rem 2rem; }
.footer-links a { color: var(--gold-light); }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.copyright { max-width: var(--wrap); margin: 1.5rem auto 0; }

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

/* Film page */
.film-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--gold-light); }
.pull { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--charcoal); color: var(--ivory); border-radius: var(--radius); border-left: 6px solid var(--gold); }
.pull p { font-family: var(--serif); font-size: 1.15rem; }
.pull footer { color: var(--gold-light); font-weight: 700; }
