:root {
  --cream: #efe6d4;
  --ice: #7ab8c4;
  --seed: #6a4a28;
  --ochre: #c47828;
  --ink: #2a2218;
  --mute: #7a6a58;
  --night: #1c2428;
  --display: "Noto Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans 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: 72px; }
body {
  margin: 0;
  background: var(--cream);
  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(--ochre); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.kraft {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.12;
  background-image: url("images/texture.webp");
  background-size: 380px auto;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--ice); color: #111; padding: 8px; }
.ark-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: #fff8ee;
  border-bottom: 8px solid var(--seed);
}
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
  font-weight: 400;
}
.nav-toggle {
  display: none;
  background: var(--seed);
  border: 0;
  color: var(--cream);
  padding: 6px 12px;
}
.card-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.card-links a { color: var(--mute); }
.card-links a.is-active, .card-links a:hover { color: var(--seed); }
.card-links .live { background: var(--ice); color: #123; padding: 6px 12px; font-weight: 600; }
.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; }
.card { padding: 40px 32px; align-self: center; }
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ochre);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h1 em { font-style: normal; color: var(--ochre); }
h2 { font-size: clamp(24px, 3vw, 36px); }
.lead { color: var(--mute); }
.lot {
  margin: 20px 0;
  padding: 16px 18px;
  background: #fff;
  border-top: 6px solid var(--ice);
  box-shadow: 0 8px 0 var(--seed);
}
.n { font-family: var(--mono); font-size: 42px; margin: 0 0 6px; line-height: 1; }
.n span { font-size: 16px; color: var(--mute); }
.lot button {
  margin-top: 8px;
  background: var(--seed);
  color: var(--cream);
  border: 0;
  padding: 8px 14px;
}
.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(--seed); color: var(--cream); border-color: var(--seed); }
.btn.line { color: var(--ink); }
.w { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0; }
#need, #life, #rules { background: #fff8ee; }
.ice { background: #d8e8ea; }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tri article { background: #fff; padding: 16px; border-bottom: 4px solid var(--ice); }
.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; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: 240px; object-fit: cover; }
.pair figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
#rules ol {
  background: #fff;
  padding: 16px 16px 16px 36px;
  border-left: 8px solid var(--ochre);
  max-width: 46em;
}
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: #fff; padding: 16px; }
.url { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
footer { padding: 20px 28px 40px; color: var(--mute); font-size: 13px; background: var(--night); color: #c8d4d4; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .ark-bar { flex-wrap: wrap; }
  .card-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff8ee;
    padding: 12px;
  }
  .card-links.open { display: flex; }
  .hero, .tri, .pair, .io { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
