/* Kodo website — one stylesheet for every page. Brand: ink, amber, paper (matches the game's UI). */
@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #121318;
  --ink-2: #1a1c23;
  --ink-3: #242731;
  --line: #2f3340;
  --amber: #e9a23b;
  --amber-hi: #ffc25e;
  --red: #e2483d;
  --paper: #f2eee6;
  --text: #e9e6df;
  --dim: #a3a7b3;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 12px; }

/* ── header ─────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 24, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 32px/1 var(--display); letter-spacing: 1.5px; color: var(--amber); }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink-3); color: #fff; }
.nav a.cta { background: var(--amber); color: var(--ink); }
.nav a.cta:hover { background: var(--amber-hi); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: 600 15px var(--body); }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ── type ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; line-height: 1.02; color: var(--paper); margin: 0 0 .4em; }
h1 { font-size: clamp(52px, 9vw, 104px); }
h2 { font-size: clamp(38px, 5.5vw, 60px); }
h3 { font-size: 30px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text); max-width: 60ch; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.muted { color: var(--dim); }

/* ── buttons ────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none;
  background: var(--ink-3); color: var(--paper); border: 1px solid var(--line);
}
.btn:hover { color: #fff; border-color: var(--amber); }
.btn.primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn.primary:hover { background: var(--amber-hi); color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; line-height: 1.1; }
.btn b { display: block; line-height: 1.15; }

/* ── hero ───────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 75% 20%, rgba(233, 162, 59, .24), transparent 65%),
              radial-gradient(50% 50% at 10% 90%, rgba(226, 72, 61, .14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--amber); }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art img { position: absolute; width: 58%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.hero-art .c1 { left: 4%; top: 6%; transform: rotate(-12deg); }
.hero-art .c2 { right: 0; top: 28%; width: 52%; transform: rotate(10deg); }
.hero-art .c3 { left: 18%; bottom: 0; width: 46%; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ── sections ───────────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }

.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c3, .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; min-width: 0;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 56px/1 var(--display); color: var(--amber); }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-split.flip > :first-child { order: 2; }
.feature-split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; } .feature-split.flip > :first-child { order: 0; } }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(233, 162, 59, .2); }

/* screenshot strip */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82%); gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.shots a { scroll-snap-align: start; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }

/* place chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 86px; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 18px; font: 52px/1 var(--display); color: var(--amber); }
.step h3 { font-size: 28px; margin-bottom: 4px; }
.step p:last-child { margin-bottom: 0; }

/* ability tiles */
.ab { display: flex; gap: 14px; }
.ab .dot { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 26px/1 var(--display); color: var(--ink); }
.ab h3 { font-size: 26px; margin: 0; }
.ab .cat { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.ab p { margin: 6px 0 0; font-size: 15.5px; }
.ab .vs { margin-top: 8px; font-size: 14px; color: var(--dim); }
.ab .vs b { color: var(--text); font-weight: 600; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink-3); color: var(--paper); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td .win { color: #7fe08a; font-weight: 700; }
td .lose { color: #ff8a80; font-weight: 700; }

/* FAQ */
details { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font: 28px/1 var(--display); color: var(--amber); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 16px; }
details > div p:last-child { margin-bottom: 0; }

/* legal / long text */
.page-head { padding: 56px 0 20px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 40px; margin-top: 1.4em; }
.prose h3 { font-size: 28px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose table { margin: 8px 0 18px; }
.note { background: rgba(233, 162, 59, .1); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 1.2em; }
.toc { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* banner / CTA */
.cta-band { text-align: center; padding: 72px 0; background: linear-gradient(180deg, transparent, rgba(233, 162, 59, .08)); }
.cta-band .btns { justify-content: center; }

/* ── footer ─────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: var(--paper); margin: 0 0 10px; font: 22px/1 var(--display); letter-spacing: 1px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--amber-hi); text-decoration: underline; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
