/* bowlam.com — public landing page.
 *
 * Standalone by design. This stylesheet shares no file with the research
 * console in `web/`: the console is localhost-only and must never be deployed
 * (docs/project-rules.md §3), so the public page carries its own copy of the
 * intro palette rather than importing from it. Visual changes here do not
 * follow the console, and vice versa.
 *
 * Adapted from web/home.css, with the console chrome (view tabs, sidebar,
 * corpus controls) and every corpus link removed per ACCESS-008.
 */

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/frank-ruhl-libre-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/frank-ruhl-libre-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --intro-paper: #17130f;
  --intro-ink: #ece3d4;
  --intro-muted: #aaa093;
  --intro-clay: #d9954f;
  --intro-line: #3f352b;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Frank Ruhl Libre", Iowan Old Style, "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--intro-ink);
  background: var(--intro-paper);
  font: 1rem/1.48 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #86b0b5; outline-offset: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--intro-ink); }
h1 { font-size: clamp(48px, 5.8vw, 86px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.18; letter-spacing: -.025em; }
h1 em, h2 em { color: var(--intro-clay); font-style: italic; }
p { color: var(--intro-muted); line-height: 1.75; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 40; padding: .75rem 1rem; background: var(--intro-clay); color: #17130f; }

/* Header — wordmark only. No navigation: there is nowhere else to go. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center;
  min-height: 78px; padding: 0 clamp(20px, 4vw, 72px);
  background: #100d0af2; border-bottom: 1px solid var(--intro-line);
  backdrop-filter: blur(10px);
}
.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.wordmark-seal {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid #6e5d4c; border-radius: 50%;
  color: var(--intro-clay); font-family: var(--serif); font-size: 1.25rem;
}
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.wordmark small { margin-top: .08rem; color: var(--intro-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.intro-wrap { max-width: 1600px; margin: auto; }
.intro-chapter { padding: clamp(70px, 9vw, 145px) clamp(24px, 7vw, 112px); border-bottom: 1px solid var(--intro-line); scroll-margin-top: 92px; }
.intro-kicker { display: block; margin-bottom: 1.7rem; color: var(--intro-muted); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
figcaption { margin-top: 1.25rem; color: var(--intro-muted); font-size: .71rem; line-height: 1.65; }

/* Hero */
.intro-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; min-height: calc(100svh - 78px); padding-top: 60px; padding-bottom: 92px; }
.intro-hero-copy { position: relative; z-index: 1; }
.intro-lead { max-width: 390px; margin: 1.8rem 0 2rem; font-size: 1.02rem; }
.intro-scroll { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--intro-muted); font-size: .8rem; font-family: inherit; cursor: pointer; }
.intro-scroll:hover { color: var(--intro-clay); }
.intro-bowl-figure { margin: 0 -2vw 0 0; }
.intro-bowl { display: block; width: 100%; height: auto; filter: drop-shadow(18px 28px 28px #0009); }
.intro-bowl-figure figcaption { text-align: center; }
.intro-caption-rule { display: inline-block; width: 25px; height: 1px; background: #756757; vertical-align: middle; margin-right: 9px; }
.intro-hero-foot { position: absolute; bottom: 25px; left: clamp(24px, 7vw, 112px); right: clamp(24px, 7vw, 112px); display: flex; justify-content: space-between; color: var(--intro-muted); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }

/* Origins */
.intro-origins { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(40px, 7vw, 110px); background: #211c17; }
.intro-prose p { max-width: 440px; font-size: .94rem; }
.intro-prose h2 { margin-bottom: 1.8rem; }
.intro-map-figure { margin: 0; }
.intro-map { display: block; width: 100%; height: auto; border: 1px solid #4c4136; }
.intro-map-ground { fill: #191b1a; }
.intro-map-corridor { stroke: #2d302d; }
.intro-map-water { fill: #28464a; }
.intro-map-rivers { stroke: #6d9da2; }
.intro-map-labels { fill: #bcb2a3; font-family: var(--sans); }
.intro-map-labels path { stroke: #bcb2a3; }
.intro-map-labels circle { stroke: var(--intro-clay); }
.intro-map-labels circle + circle { fill: var(--intro-clay); }
.intro-find-region { fill: var(--intro-clay); stroke: var(--intro-clay); }
.intro-region-key { display: inline-block; width: 16px; height: 10px; background: #d9954f45; border: 1px dashed var(--intro-clay); margin-right: 5px; }

/* Rediscovery */
.intro-section-heading { max-width: 680px; }
.intro-section-heading > p { max-width: 520px; }
.intro-milestones { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 4rem; border-top: 1px solid var(--intro-line); }
.intro-milestones::after { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--intro-clay); transform: scaleX(0); transform-origin: left; }
.intro-milestones article { position: relative; padding: 2.5rem 4rem 0 0; }
.intro-milestones article::before { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--intro-clay); top: -5px; left: 0; }
/* tabular-nums must follow the `font` shorthand, which resets it. Without it
   the year visibly jitters as it counts from 750. */
.intro-date { display: block; margin-bottom: 1rem; white-space: nowrap; color: var(--intro-clay); font: 400 clamp(56px, 7vw, 96px)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.intro-milestones p { max-width: 355px; font-size: .92rem; }
.intro-sources { margin-top: 2rem; font-size: .7rem; color: var(--intro-muted); }
.intro-sources summary { cursor: pointer; padding: .65rem 0; }
.intro-sources a { text-underline-offset: 3px; }

/* Scholarship chart */
.intro-scholarship { background: #1b201f; }
.intro-chart-figure { margin: 3rem 0 0; }
.intro-chart-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; font-size: .77rem; }
.intro-chart-heading span { color: var(--intro-muted); }
#intro-chart { overflow-x: auto; }
.intro-chart-hint { display: none; }
.intro-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro-chart-svg text { font-family: var(--sans); font-size: 12px; fill: #aaa093; }
.intro-chart-svg line { stroke: #3d4542; }
.intro-chart-svg .intro-bar { fill: var(--intro-clay); }
.intro-chart-svg .intro-bar-current { fill: url(#intro-current-decade); stroke: var(--intro-clay); stroke-width: 1; }
.intro-chart-table { margin-top: 1.5rem; font-size: .8rem; }
.intro-chart-table summary { cursor: pointer; min-height: 44px; padding: .7rem 0; text-decoration: underline; text-underline-offset: 4px; }
.intro-chart-table table { width: 100%; max-width: 600px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.intro-chart-table th, .intro-chart-table td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--intro-line); }
.intro-chart-table caption { text-align: left; padding: .5rem; color: var(--intro-muted); }

/* Coverage */
.intro-coverage-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: clamp(30px, 7vw, 110px); margin-top: 3rem; }
.intro-field-panel { position: sticky; top: 105px; padding: 1.6rem; background: #211c17; border: 1px solid #453c32; }
.intro-field-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem; }
.intro-field-heading strong { color: var(--intro-clay); font: 400 clamp(40px, 4.5vw, 66px)/1 var(--serif); letter-spacing: -.04em; }
.intro-field-heading > span { color: var(--intro-muted); font-size: .78rem; }
.intro-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 1.1rem; }
.intro-controls button { min-height: 40px; padding: .45rem .7rem; font-size: .73rem; font-family: inherit; border: 1px solid #5d5043; background: transparent; color: #c2b6a7; border-radius: 2px; cursor: pointer; }
.intro-controls button[aria-pressed="true"] { color: #17130f; background: var(--intro-clay); border-color: var(--intro-clay); }
#intro-circle-field { display: block; width: 100%; height: auto; max-height: 44vh; }
.intro-circle { fill: var(--intro-clay); stroke: #8d4e2a; stroke-width: .65; opacity: 1; transition: fill .45s, opacity .45s, stroke .45s; }
.intro-circle.is-softened { fill: #665d53; stroke: transparent; opacity: .45; }
.intro-selection { margin-bottom: .6rem; font-size: .85rem; color: #d4c8b9 !important; font-variant-numeric: tabular-nums; }
.intro-field-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: 0; font-size: .64rem; }
.intro-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--intro-clay); }
.intro-dot-muted { margin-left: .5rem; background: #665d53; }
.intro-coverage-step { display: flex; flex-direction: column; justify-content: center; min-height: 65vh; padding: 3rem 0; border-bottom: 1px solid var(--intro-line); }
.intro-coverage-step:first-child { padding-top: 0; }
.intro-coverage-step:last-child { border-bottom: 0; }
.intro-coverage-step .intro-kicker { margin-bottom: 1rem; }
.intro-coverage-step p { font-size: .9rem; }
.intro-coverage-step .intro-coverage-number { margin: 1.5rem 0 .3rem; color: var(--intro-clay); font: 400 clamp(29px, 3vw, 42px)/1.2 var(--serif); }
.intro-coverage-number span { color: var(--intro-muted); font-size: .55em; }
.intro-coverage-number small { display: block; color: var(--intro-muted); font: .75rem/1.8 var(--sans); margin-top: .5rem; }
.intro-coverage-note { max-width: 750px; margin-top: 3rem; font-size: .77rem; }

/* Withheld — what the index does not publish, and why. */
.intro-withheld { background: #1b1613; }
.intro-withheld-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem 3rem; margin-top: 3.5rem; }
.intro-withheld-grid h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: .8rem; }
.intro-withheld-grid p { font-size: .87rem; margin: 0; }
.intro-withheld-grid article { padding-top: 1.5rem; border-top: 1px solid var(--intro-line); }

/* Interest capture */
.intro-interest { background: #100d0a; text-align: center; }
.intro-interest .intro-section-heading { max-width: 640px; margin: 0 auto; }
.intro-interest .intro-section-heading > p { max-width: none; }
.interest-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 540px; margin: 2.5rem auto 0; }
.interest-form label { position: absolute; left: -9999px; }
.interest-form input[type="email"] {
  flex: 1 1 260px; min-height: 52px; padding: .85rem 1rem;
  color: var(--intro-ink); background: #1d1813;
  border: 1px solid #5d5043; border-radius: 2px;
  font: 1rem/1.4 var(--sans);
}
.interest-form input[type="email"]::placeholder { color: #7d7266; }
.interest-form input[type="email"]:focus-visible { border-color: var(--intro-clay); }
.interest-form button {
  flex: 0 0 auto; min-height: 52px; padding: .85rem 1.6rem;
  color: #17130f; background: var(--intro-clay);
  border: 1px solid var(--intro-clay); border-radius: 2px;
  font: 600 .88rem/1.4 var(--sans); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.interest-form button:hover:not(:disabled) { background: #efad66; border-color: #efad66; }
.interest-form button:disabled { opacity: .6; cursor: wait; }
/* Bot honeypot: visually and semantically hidden, but still submitted. */
.interest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.interest-note { max-width: 460px; margin: 1.4rem auto 0; font-size: .72rem; line-height: 1.7; }
.interest-status { max-width: 460px; margin: 1.2rem auto 0; min-height: 1.5rem; font-size: .84rem; }
.interest-status.is-ok { color: var(--intro-clay) !important; }
.interest-status.is-error { color: #e8927a !important; }

.intro-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; max-width: 1600px; margin: 0 auto; padding: 1.5rem clamp(24px, 7vw, 112px) 2rem; border-top: 1px solid var(--intro-line); color: var(--intro-muted); text-align: left; font-size: .65rem; }
.intro-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.intro-footer p { margin: 0; font-size: inherit; }

@media (min-width: 1500px) { .intro-field-panel { top: 120px; } }
@media (max-width: 900px) {
  .topbar { min-height: 70px; }
  .intro-hero { min-height: auto; padding-top: 60px; gap: 0; }
  .intro-hero h1 { font-size: clamp(42px, 6vw, 64px); }
  .intro-hero-foot { font-size: .55rem; }
  .intro-origins { gap: 30px; }
  .intro-coverage-layout { gap: 30px; }
  .intro-field-panel { padding: 1rem; top: 95px; }
  .intro-controls { gap: .3rem; }
  .intro-controls button { padding: .4rem .5rem; }
}
@media (max-width: 700px) {
  .wordmark-seal { display: none; }
  .wordmark small { display: block; font-size: .5rem; letter-spacing: .03em; }
  .wordmark strong { max-width: 130px; font-size: .8rem; line-height: 1.25; }
  .intro-chapter { padding: 65px 24px; }
  .intro-hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; }
  .intro-hero h1 { font-size: clamp(43px, 10vw, 66px); }
  .intro-lead { font-size: .95rem; }
  .intro-bowl-figure { margin: 24px auto 12px; max-width: 420px; }
  .intro-bowl-figure figcaption { margin-top: 0; font-size: .64rem; }
  .intro-hero-foot { bottom: 20px; }
  .intro-hero-foot span:last-child { display: none; }
  .intro-origins, .intro-coverage-layout { grid-template-columns: 1fr; }
  .intro-map-figure { margin-top: 1rem; }
  .intro-milestones { gap: 28px; margin-top: 3rem; grid-template-columns: 1fr; }
  .intro-milestones article { padding: 2rem 0 0; }
  .intro-milestones h3 { font-size: 25px; }
  .intro-milestones p { font-size: .82rem; }
  .intro-date { font-size: 65px; }
  .intro-chart-svg { min-width: 800px; }
  .intro-chart-svg text { font-size: 16px; }
  .intro-chart-hint { display: block; font-size: .72rem; }
  .intro-field-panel { position: static; }
  #intro-circle-field { max-height: none; }
  .intro-coverage-step { min-height: auto; padding: 2.5rem 0; }
  .intro-coverage-step:first-child { padding-top: 1rem; }
  /* Stacked, the input's flex-basis would become its HEIGHT. Pin it back to
     auto so the field keeps its own height instead of growing to 260px. */
  .interest-form { flex-direction: column; }
  .interest-form input[type="email"], .interest-form button { flex: 0 0 auto; width: 100%; }
  .intro-footer { flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-hero-copy { animation: intro-rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .intro-bowl { animation: intro-bowl-arrive 2.4s cubic-bezier(.16,1,.3,1) both; }
  .intro-bowl ellipse { stroke-dasharray: 1300; animation: intro-inscribe 3.5s ease-out both; }
  .intro-scroll span { animation: intro-nudge 1.5s ease-in-out 3; }
  .intro-milestones.is-in-view::after { animation: intro-line 1.6s ease-out both; }
  .intro-milestones.is-in-view article:last-child { animation: intro-rise .9s .3s both; }
  .intro-map .intro-find-region { opacity: 0; clip-path: inset(0 100% 0 0); }
  .intro-map.is-in-view .intro-find-region { animation: intro-region 2.8s cubic-bezier(.16,.75,.25,1) both; }
  .intro-chart-svg .intro-bar { transform: scaleY(.02); transform-box: fill-box; transform-origin: bottom; }
  .intro-chart-svg.is-revealing .intro-bar { animation: intro-grow 1.2s cubic-bezier(.16,.72,.25,1) both; }
  .intro-section-heading.is-in-view, .intro-interest h2.is-in-view { animation: intro-rise .9s ease-out both; }
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-region { from { opacity: 0; clip-path: inset(0 100% 0 0); fill-opacity: .08; } 70% { opacity: 1; fill-opacity: .5; } to { opacity: 1; clip-path: inset(0); fill-opacity: .3; } }
@keyframes intro-grow { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
@keyframes intro-inscribe { from { stroke-dashoffset: 1300; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes intro-bowl-arrive { from { opacity: 0; transform: translateY(45px) rotate(-18deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes intro-nudge { 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .intro-milestones::after { transform: scaleX(1); }
}
