/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt). Latin subset. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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: "Big Shoulders Stencil Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/big-shoulders-stencil-display-800-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;
}

:root {
  --orange: #e8701a;
  --orange-deep: #c85a10;
  /* --orange is for fills, the diagram and the glow. Text uses --orange-text,
     buttons with a white label use --orange-btn (both WCAG AA). */
  --orange-text: #a34505;
  --orange-btn: #b04a08;
  --orange-btn-hover: #9c4204;
  --ink: #2f2f2f;
  --bg: #fbf7f2;
  --muted: #6b625a;
  --line: #e7ddd2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange-text: #ff8a3a;
    --ink: #f3ece4;
    --bg: #171412;
    --muted: #b3a79b;
    --line: #3a332d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --orange-text: #ff8a3a;
  --ink: #f3ece4;
  --bg: #171412;
  --muted: #b3a79b;
  --line: #3a332d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 45% at 50% 22%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, sans-serif;
}
a { color: var(--orange-text); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.stencil { font-family: "Big Shoulders Stencil Display", "Inter", sans-serif; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }

.teaser { flex: 1; padding: 48px 0 40px; text-align: center; }
.case {
  width: min(300px, 70vw);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(232, 112, 26, .45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .case { animation: none; } }

.kicker { margin: 28px 0 8px; color: var(--orange-text); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(44px, 9vw, 84px); line-height: .95; margin: 0 0 18px; }
h1 span { color: var(--orange-text); }
.lede { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); margin: 0 auto 36px; }

.challenges { list-style: none; padding: 0; margin: 0 auto 36px; display: grid; gap: 10px; max-width: 420px; text-align: left; }
.challenges li a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.challenges li a:hover { border-color: var(--orange); }
.challenges li span { color: var(--orange-text); font-size: 26px; line-height: 1; min-width: 1.6em; }

.soon { font-size: 28px; color: var(--muted); margin: 0 0 20px; letter-spacing: .12em; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid var(--orange); }
.btn.primary { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }
.btn.primary:hover { background: var(--orange-btn-hover); border-color: var(--orange-btn-hover); }
.btn.ghost { color: var(--orange-text); }

section { padding: 56px 0; border-top: 1px solid var(--line); }
.wrap.wide { max-width: 1000px; }
section h2 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; text-align: center; }
section .sub { color: var(--muted); margin: 0 auto 28px; max-width: 56ch; text-align: center; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards li { position: relative; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 85%, #fff); scroll-margin-top: 16px; }
.cards li:target { border-color: var(--orange); }
.cards .num { display: block; color: var(--orange-text); font-size: 34px; line-height: 1; margin-bottom: 10px; }
.cards h3 { font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
.cards .tag { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cards p { margin: 0; }
section .note { color: var(--muted); font-size: 15px; margin: 24px auto 0; text-align: center; }
.diagram { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: color-mix(in srgb, var(--bg) 85%, #fff); overflow-x: auto; }
.diagram:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 2px; }
/* Below 840px the diagram keeps its size and scrolls inside its box, so the
   12px labels never render smaller than about 11px. */
.diagram svg { width: 100%; min-width: 840px; height: auto; display: block; }
.scroll-hint { display: none; margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 905px) { .scroll-hint { display: block; } }
.diagram text { fill: var(--ink); font: 600 14px "Inter", sans-serif; }
.diagram .small { font-weight: 400; font-size: 12px; fill: var(--muted); }
.diagram .box { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.diagram .box.you { stroke: var(--orange); }
.diagram .case-outline { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 8 6; }
.diagram .hot { fill: var(--orange); }
.diagram text.on-hot { fill: #1f1a16; }
.diagram .arrow { stroke: #8a7f75; stroke-width: 2; fill: none; marker-end: url(#arr); }
.diagram .flag { stroke: var(--orange); stroke-dasharray: 4 4; }

footer { padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { max-width: 1080px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
