/* Ark Warmup. Tokens, type and shapes are documented in ../../BRAND.md.
   One stylesheet, no framework, no third-party requests. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1B2752;
  --night-2: #24336A;
  --dusk: #3D5A9A;
  --sky: #A9BCDD;
  --slate: #4A5680;
  --ember: #E8572A;
  --ember-ink: #B5401C;
  --amber: #F39A33;
  --marigold: #F6B23A;
  --peach: #FAD8B6;
  --cream: #FBF4E8;
  --paper: #FFFBF3;
  --rule: #E6D7C1;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --wrap: 76rem;
  --measure: 36rem;
  --block: clamp(4rem, 9vw, 7.5rem);
  --lift: 6px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--night);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; text-decoration-color: var(--ember); }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--marigold); }
::selection { background: var(--marigold); color: var(--night); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--night); color: var(--cream); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 0; }
h1, h2, .display { font-weight: 800; line-height: 0.98; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.8rem, 6.8vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
h1 + p, h2 + p, h2 + .lede { margin-top: 1.25rem; }

.lede { font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 36rem; }
.small { font-size: 0.9375rem; line-height: 1.5; }
.muted { color: var(--slate); }
.dark .muted { color: var(--sky); }

/* a small mono label over a section: a sun on the horizon, then the words */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ember-ink);
}
.eyebrow::before {
  content: ""; width: 1.25rem; height: 0.625rem; flex: none;
  border-radius: 999px 999px 0 0; background: var(--marigold); box-shadow: inset 0 -2px 0 var(--ember), 0 2px 0 var(--night);
}
.dark .eyebrow { color: var(--marigold); }
/* a full positioning line in the eyebrow (home hero): wraps, sun stays on the first line */
.eyebrow--long { display: flex; align-items: flex-start; line-height: 1.55; max-width: 34rem; }
.eyebrow--long::before { margin-top: 0.35rem; }
.dark .eyebrow::before { box-shadow: inset 0 -2px 0 var(--ember), 0 2px 0 var(--cream); }

code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }

/* ---------------------------------------------------------------- layout */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--block); }
.section--flush-top { padding-top: 0; }
.dark { background: var(--night); color: var(--cream); }
.dark a { text-decoration-color: var(--marigold); }
.band-peach { background: var(--peach); }
.band-sun { background: var(--marigold); }
.band-paper { background: var(--paper); border-block: 2px solid var(--night); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }
.section-head p:not(.eyebrow) { margin-top: 1.25rem; }

/* ---------------------------------------------------------------- header */

.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 800; font-size: 1.6rem;
  line-height: 1; letter-spacing: -0.02em; text-decoration: none;
}
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); margin-left: auto; }
.nav a { font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 0.12em; }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 0.16em; }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 600;
  border: 2px solid var(--night); border-radius: 12px; padding: 0.4rem 1rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; box-shadow: 3px 3px 0 var(--night);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--night); color: var(--cream); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.7rem); z-index: 10; width: min(19rem, 86vw);
  background: var(--paper); border: 2px solid var(--night); border-radius: 16px; padding: 0.6rem;
  display: grid; gap: 0.1rem; box-shadow: var(--lift) var(--lift) 0 var(--night);
}
.menu-panel a { text-decoration: none; font-weight: 500; padding: 0.7rem 0.8rem; border-radius: 10px; }
.menu-panel a:not(.btn):hover, .menu-panel a[aria-current="page"]:not(.btn) { background: var(--peach); }
.menu-panel .btn { margin-top: 0.5rem; }

@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.1rem; padding: 0.7rem 1.4rem; border-radius: 12px;
  border: 2px solid var(--night); background: var(--night); color: var(--cream);
  font-family: var(--text); font-weight: 650; font-size: 1.0625rem; line-height: 1.15; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ember);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ember); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ember); }
.btn--small { min-height: 2.6rem; padding: 0.4rem 1rem; font-size: 1rem; box-shadow: 3px 3px 0 var(--ember); }
.btn--ghost { background: var(--paper); color: var(--night); box-shadow: 4px 4px 0 var(--night); }
.btn--ghost:hover { box-shadow: 2px 2px 0 var(--night); }
.btn--sun { background: var(--marigold); border-color: var(--marigold); color: var(--night); box-shadow: 4px 4px 0 var(--ember); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.actions a:not(.btn) { font-weight: 600; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: clip; }
.hero-wrap { display: flex; align-items: center; min-height: calc(min(50vw, 46rem) + 3rem); padding-block: 1.5rem 3rem; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 36rem, 45vw); }
.hero h1 { font-size: clamp(3.1rem, 6.9vw, 6.3rem); line-height: 0.93; margin-bottom: 1.6rem; }
.hero .lede { max-width: 33rem; }
.hero h1.h1--long { font-size: clamp(2.9rem, 5.3vw, 4.7rem); line-height: 0.96; }
.hero h1 em { font-style: normal; color: var(--ember-ink); }

.sun {
  position: absolute; z-index: 1;
  width: min(50vw, 46rem); aspect-ratio: 1;
  top: 50%; right: max(0px, calc((100vw - var(--wrap)) / 2 - 6rem)); transform: translateY(-50%);
  container-type: inline-size;
}
.sun-art { width: 100%; height: 100%; overflow: visible; }
.sun-numbers { display: none; }
.sun-numbers circle { fill: var(--night); stroke: var(--cream); stroke-width: 5; }
.sun-numbers text { fill: var(--cream); font-family: var(--display); font-weight: 800; font-size: 30px; text-anchor: middle; }

.tag {
  position: absolute; width: 25%;
  background: var(--paper); border: 2px solid var(--night); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ember);
  padding: 0.5em 0.7em 0.6em; margin: 0;
  font-size: 0.82rem; font-size: clamp(0.7rem, 1.7cqw, 0.9rem); line-height: 1.28;
}
.tag strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 800; font-size: 1.28em; line-height: 1.05; margin-bottom: 0.18em; }
.tag--tl { transform: translate(0, 0); }
.tag--tr { transform: translate(-100%, 0); }
.tag--bl { transform: translate(0, -100%); }
.tag--br { transform: translate(-100%, -100%); }
.legend { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .sun-rise { animation: rise 1.8s cubic-bezier(0.2, 0.7, 0.15, 1) both; }
  .sun-glint { animation: pin 0.6s ease-out 1s both; }
  .sun-leaders { animation: pin 0.45s ease-out 1.3s both; }
  .tag { animation: pin 0.45s ease-out both; }
  .tag--n1 { animation-delay: 1.3s; }
  .tag--n2 { animation-delay: 1.5s; }
  .tag--n3 { animation-delay: 1.7s; }
  .tag--n4 { animation-delay: 1.9s; }
  .tag--n5 { animation-delay: 2.1s; }
  .is-settled .sun-rise, .is-settled .sun-glint, .is-settled .sun-leaders, .is-settled .tag { animation: none; }
  @keyframes rise { from { transform: translateY(300px); } to { transform: translateY(0); } }
  @keyframes pin { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 1000px) {
  .hero-wrap { display: block; min-height: 0; padding-bottom: 0; }
  .hero-copy { width: min(100%, 38rem); }
  .sun { position: relative; top: auto; right: auto; transform: none; width: min(100%, 44rem); margin: 2.5rem 0 3rem auto; }
}
@media (max-width: 700px) {
  .tag, .sun-leaders { display: none; }
  .sun-numbers { display: block; }
  .sun { width: 100%; margin: 2rem 0 0; }
  .legend { display: grid; gap: 0.85rem; list-style: none; margin: 0; padding: 1.5rem 0 1rem; counter-reset: pin; }
  .legend li { position: relative; padding-left: 2.6rem; counter-increment: pin; line-height: 1.4; }
  .legend li::before {
    content: counter(pin); position: absolute; left: 0; top: 0.05rem;
    width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--night); color: var(--cream);
    font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.8rem; text-align: center;
  }
  .legend strong { font-weight: 700; }
}

/* ----------------------------------------------------------------- cards */

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card {
  background: var(--paper); border: 2px solid var(--night); border-radius: 16px; padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--lift) var(--lift) 0 var(--night);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin: 0; }
.card::before {
  content: ""; display: block; width: 2.6rem; height: 1.3rem; margin-bottom: 1.1rem;
  border-radius: 999px 999px 0 0; border-bottom: 3px solid var(--night);
  background: radial-gradient(circle at 50% 100%, var(--ember) 0 30%, var(--amber) 31% 55%, var(--marigold) 56% 80%, var(--peach) 81% 100%);
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.stats li { border-top: 3px solid var(--night); padding-top: 1rem; }
.stats b { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ember-ink); margin-bottom: 0.5rem; }
.stats p { margin: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- images */

.art { position: relative; margin: 0; }
.art img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 3px solid var(--night); border-radius: 46% 46% 16px 16px / 30% 30% 16px 16px;
  box-shadow: 8px 8px 0 var(--night);
}
.dark .art img { border-color: var(--cream); box-shadow: 8px 8px 0 var(--ember); }

.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.band-copy p:not(.eyebrow) { margin-top: 1.4rem; }
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

.desk-tag {
  position: absolute; transform: translate(-50%, -100%) rotate(-2deg);
  background: var(--marigold); color: var(--night); border: 2px solid var(--night); border-radius: 6px;
  font-family: var(--mono); font-weight: 500; font-size: clamp(0.68rem, 1.1vw, 0.9rem); line-height: 1;
  padding: 0.4em 0.6em 0.36em; white-space: nowrap; box-shadow: 3px 3px 0 var(--night);
}
.desk-tag.d1 { left: 11%; top: 56%; }
.desk-tag.d2 { left: 37%; top: 50%; transform: translate(-50%, -100%) rotate(1.5deg); }
.desk-tag.d3 { left: 50%; top: 66%; }
.desk-tag.d4 { left: 86%; top: 56%; transform: translate(-50%, -100%) rotate(2deg); }

/* the tall arch frame beside a call to action */
.arch { margin: 0; justify-self: end; width: min(100%, 22rem); }
.arch img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 4px solid var(--night); border-radius: 999px 999px 18px 18px;
  box-shadow: 10px 10px 0 var(--ember);
}
.band-sun .arch img { box-shadow: 10px 10px 0 var(--night); }

/* ----------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem); }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: flex; align-items: flex-end; justify-content: center;
  width: 3.6rem; height: 4.2rem; padding-bottom: 0.45rem; margin-bottom: 1.1rem;
  border-radius: 999px 999px 8px 8px; background: var(--night); color: var(--marigold);
  font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1;
  box-shadow: 4px 4px 0 var(--ember);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.1rem; left: 4.6rem; right: -1rem; border-top: 3px dotted var(--ember);
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- results */

.report-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }

.bars-fig { margin: 0; }
.bars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 3vw, 2rem);
  align-items: end; height: clamp(15rem, 30vw, 21rem); border-bottom: 4px solid var(--night); padding-inline: 0.4rem;
}
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar b { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 800; line-height: 1; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 0.4rem; }
.bar i {
  display: block; min-height: 4rem; border: 3px solid var(--night); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: repeating-linear-gradient(180deg, var(--ember) 0 18px, var(--amber) 18px 34px);
  box-shadow: 5px 0 0 var(--night);
}
.bar--last i { background: repeating-linear-gradient(180deg, var(--marigold) 0 18px, var(--amber) 18px 34px); }
.bar .h16 { height: 26.7%; }
.bar .h36 { height: 60%; }
.bar .h55 { height: 91.7%; }
.bar-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 3vw, 2rem); margin-top: 0.6rem; padding-inline: 0.4rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; }
.bars-fig figcaption { margin-top: 1.1rem; font-size: 0.9375rem; line-height: 1.45; color: var(--slate); max-width: 34rem; }
.band-peach .bars-fig figcaption { color: var(--night); }

.shot { margin: 0; }
.shot img { width: 100%; border: 2px solid var(--night); border-radius: 12px; background: var(--paper); box-shadow: 5px 5px 0 var(--night); }
.shot figcaption { margin-top: 0.9rem; font-size: 0.9375rem; line-height: 1.45; color: var(--slate); max-width: 40rem; }

/* ----------------------------------------------------------------- lists */

.rules-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: minmax(0, 1fr); } }

.sunlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--night); }
.sunlist li {
  position: relative; padding: 1rem 0 1rem 2.6rem; border-bottom: 2px solid var(--night);
  font-size: 1.2rem; line-height: 1.38; max-width: 40rem;
}
.sunlist li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem; width: 1.5rem; height: 0.75rem;
  border-radius: 999px 999px 0 0; background: var(--marigold); box-shadow: inset 0 -3px 0 var(--ember), 0 3px 0 var(--night);
}
.sunlist--small li { font-size: 1.0625rem; line-height: 1.5; }
.dark .sunlist, .dark .sunlist li { border-color: var(--dusk); }
.dark .sunlist li::before { box-shadow: inset 0 -3px 0 var(--ember), 0 3px 0 var(--cream); }

.plainlist { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; max-width: 37rem; }
.plainlist li::marker { color: var(--ember-ink); font-weight: 700; }

/* ------------------------------------------------------------------- cta */

.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cta-grid h2, .cta-grid h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); }
.cta-grid p { margin-top: 1.4rem; font-size: 1.1875rem; line-height: 1.5; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } .arch { justify-self: start; width: min(70%, 17rem); } }

/* ---------------------------------------------------------------- footer */

.site-footer { position: relative; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: linear-gradient(var(--marigold) 0 6px, var(--night) 6px 8px, var(--amber) 8px 13px, var(--night) 13px 15px, var(--ember) 15px 20px, var(--night) 20px);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem 2rem; }
.footer-brand .brand { font-size: 1.9rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.site-footer h2 { font-family: var(--mono); font-variation-settings: normal; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; margin-bottom: 0.8rem; color: var(--marigold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--dusk); font-size: 0.9375rem; color: var(--sky); }
.footer-base p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ page heads */

.page-head { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: min(13em, calc(100% - clamp(5rem, 15vw, 13rem))); }
.page-head .lede { margin-top: 1.6rem; max-width: min(36rem, calc(100% - clamp(5rem, 15vw, 13rem))); }
/* a small arched window with the sun coming up, top right */
.page-head::after {
  content: ""; position: absolute; z-index: 0; top: clamp(1.5rem, 4vw, 3rem); right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: clamp(4.5rem, 12vw, 11rem); aspect-ratio: 3 / 4;
  border: clamp(3px, 0.45vw, 5px) solid var(--night); border-radius: 999px 999px 10px 10px;
  box-shadow: clamp(4px, 0.6vw, 8px) clamp(4px, 0.6vw, 8px) 0 var(--ember);
  background:
    linear-gradient(transparent 0 70%, var(--night) 70% 76%, var(--amber) 76% 78.5%, var(--night) 78.5% 84%, var(--ember) 84% 86%, var(--night) 86%),
    radial-gradient(circle at 50% 70%, var(--ember) 0 13%, var(--amber) 13% 21%, var(--marigold) 21% 29%, var(--peach) 29% 36%, transparent 36%),
    linear-gradient(var(--night) 0 26%, var(--night-2) 26% 40%, var(--dusk) 40% 52%, #6F86BC 52% 60%, var(--sky) 60% 66%, var(--peach) 66% 70%);
}
.page-head--plain::after { display: none; }
.updated { margin-top: 1.25rem; color: var(--slate); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- splits */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--night); }
.split:last-of-type { border-bottom: 2px solid var(--night); }
.split h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.split-body > :not(:first-child) { margin-top: 1.1rem; }
.split-body p { margin-bottom: 0; }
.split .art { margin-top: 1.9rem; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

.deflist { margin: 0; display: grid; gap: 0.9rem; max-width: 40rem; }
.deflist div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.25rem 1.25rem; }
.deflist dt { font-weight: 700; }
.deflist dt span { display: block; margin-top: 0.2rem; font-family: var(--mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember-ink); }
.dark .deflist dt span { color: var(--marigold); }
.deflist dd { margin: 0; }
@media (max-width: 520px) { .deflist div { grid-template-columns: minmax(0, 1fr); } }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ flow */

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.lane { background: var(--night-2); border: 2px solid var(--cream); border-radius: 16px; padding: 1.5rem 1.4rem 1.6rem; box-shadow: var(--lift) var(--lift) 0 var(--ember); }
.lane h3 { margin-bottom: 1.1rem; }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; }
.lane li { position: relative; padding: 0 0 1.4rem 1.8rem; }
.lane li:last-child { padding-bottom: 0; }
.lane li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.45rem; border-radius: 999px 999px 0 0; background: var(--amber); }
.lane li::after { content: ""; position: absolute; left: calc(0.45rem - 1px); top: 1.3em; bottom: -0.2em; border-left: 2px dotted var(--sky); }
.lane li:last-child::after { display: none; }
.lane li:last-child::before { background: var(--marigold); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- tables */

.table-wrap { border: 2px solid var(--night); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--lift) var(--lift) 0 var(--night); }
.records { width: 100%; border-collapse: collapse; border-spacing: 0; }
.records th, .records td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--rule); }
.records thead th { border-top: 0; background: var(--night); color: var(--cream); font-weight: 600; font-size: 0.9375rem; }
.records th[scope="row"] { font-weight: 700; }
.records td.num, .records th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.records .pct { color: var(--slate); font-weight: 400; }
.records td.ark { background: #FDEBC8; font-weight: 650; }
.records thead th.ark { background: var(--ember-ink); }
@media (max-width: 760px) {
  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .records, .records tbody, .records tr, .records td, .records th { display: block; }
  .records tr { border-top: 2px solid var(--night); padding: 0.7rem 0; }
  .records tr:first-child { border-top: 0; }
  .records th, .records td { border-top: 0; padding: 0.2rem 1rem; }
  .records td.num { text-align: left; }
  .records td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--slate); margin-top: 0.35rem; }
}

/* ------------------------------------------------------------------ prose */

.prose { max-width: 44rem; }
.prose > :not(:first-child) { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.prose > h2:not(:first-child) { margin-top: 3.1rem; }
.prose p, .prose li { max-width: 40rem; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--ember-ink); font-weight: 700; }

/* -------------------------------------------------------------------- faq */

.faq { max-width: 46rem; display: grid; gap: 1rem; }
.faq details { background: var(--paper); border: 2px solid var(--night); border-radius: 14px; box-shadow: 4px 4px 0 var(--night); }
.faq details[open] { box-shadow: 4px 4px 0 var(--ember); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 700; font-size: 1.25rem; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-52%); font-family: var(--text); font-size: 1.7rem; font-weight: 500; color: var(--ember-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.3rem; }

/* ----------------------------------------------------------------- forms */

.access-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.access-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.access-grid .plainlist { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .access-grid { grid-template-columns: minmax(0, 1fr); } }

.form-panel { background: var(--paper); border: 2px solid var(--night); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 8px 8px 0 var(--night); }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 650; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--night); background: var(--cream);
  border: 2px solid var(--night); border-radius: 10px; padding: 0.7rem 0.9rem; min-height: 3.1rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ember-ink) 50%), linear-gradient(135deg, var(--ember-ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.38rem 0.38rem; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.two-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
@media (max-width: 560px) { .two-fields { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.6em; font-weight: 600; color: var(--ember-ink); margin: 0; }

/* ------------------------------------------------------------- 404 + thanks */

.lost .cta-grid { align-items: center; }

/* small fixes for coloured grounds */
.band-sun .eyebrow::before { background: var(--ember); box-shadow: 0 2px 0 var(--night); }
.dark .brand svg > path:first-of-type, .site-footer .brand svg > path:first-of-type { stroke: var(--cream); stroke-width: 3; }

/* hero label positions, generated by build.py from src/sun.py */
.tag--core{left:64.0%;top:52.0%}.tag--copy{left:30.0%;top:42.0%}.tag--reply{left:33.0%;top:17.0%}.tag--rescue{left:10.0%;top:93.0%}.tag--today{left:70.0%;top:19.6%}
