:root {
  --soil: #1a100c;
  --rust: #8a3a22;
  --ore: #c45c2a;
  --spray: #4aa0c8;
  --paper: #efe4d4;
  --ink: #f0e4d6;
  --mute: #b89a86;
  --display: "Staatliches", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body { margin: 0; background: var(--soil); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--ore); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.dust {
  pointer-events: none; position: fixed; inset: 0; z-index: 6; opacity: 0.16;
  background-image: url("images/texture.webp"); background-size: 480px auto; mix-blend-mode: overlay;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--ore); color: #111; padding: 8px; }
.yard-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; background: rgba(26,16,12,0.94);
  border-bottom: 8px solid var(--rust);
}
.brand { font-family: var(--display); font-size: 32px; letter-spacing: 0.06em; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--mute); font-weight: 400; }
.nav-toggle { display: none; background: var(--ore); border: 0; color: #111; padding: 6px 12px; font-weight: 700; }
.pile-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.pile-links a { color: var(--mute); }
.pile-links a.is-active, .pile-links a:hover { color: var(--ore); }
.pile-links .live { background: var(--ore); color: #111; padding: 6px 12px; font-weight: 700; }
.hero { display: grid; grid-template-columns: 1.2fr 0.9fr; min-height: 86vh; }
.hero figure { margin: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; }
.panel { padding: 40px 32px; align-self: center; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--spray); margin: 0 0 10px; }
h1, h2 { font-family: var(--display); margin: 0 0 12px; line-height: 0.95; letter-spacing: 0.04em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { margin: 0 0 8px; }
.lead { color: var(--mute); }
.pile { margin: 20px 0; padding: 16px 18px; background: #24140e; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.n { font-family: var(--display); font-size: 56px; margin: 0; line-height: 1; }
.n span { font-size: 22px; color: var(--mute); }
.pile button { margin-top: 8px; background: var(--ore); color: #111; border: 0; padding: 8px 14px; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid currentColor; font-size: 14px; }
.btn.fill { background: var(--ore); color: #111; border-color: var(--ore); font-weight: 700; }
.btn.line { color: var(--ink); }
.w { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
#need, #map, #rules { background: var(--paper); color: #1c1410; }
#need .kicker, #map .kicker, #rules .kicker { color: #8a3a22; }
#need .app-link, #map .app-link, #rules .app-link { color: #8a3a22; }
.rust { background: #24140e; }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tri article { background: rgba(255,255,255,0.04); padding: 16px; }
#need .tri article { background: #fff; }
.tri ul, .io ul, #rules ol { margin: 0; padding-left: 1.1em; }
.steps { padding-left: 1.2em; max-width: 50em; }
.steps li { margin-bottom: 10px; }
.wide { margin: 28px 0 0; }
.wide img { width: 100%; height: 280px; object-fit: cover; }
.wide figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
#rules ol { background: #fff; padding: 16px 16px 16px 36px; border-left: 8px solid var(--spray); max-width: 46em; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: #1a100c; padding: 16px; }
.url { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
footer { padding: 20px 24px 40px; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .yard-bar { flex-wrap: wrap; }
  .pile-links { display: none; width: 100%; flex-direction: column; background: #1a100c; padding: 12px; }
  .pile-links.open { display: flex; }
  .hero, .tri, .io { grid-template-columns: 1fr; }
  .pile { clip-path: none; }
  h1 { font-size: 40px; }
}
