/* Oakbit Games – one dark "oak green" look, taken from the logo. Left-aligned editorial column, pixel details as the studio's mark. */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --ground: #172314;
  --panel: #23361F;
  --panel-2: #2C4227;
  --line: #3B5434;
  --cream: #F3EBDD;
  --muted: #C2CBB6;
  --amber: #E8A646;
  --amber-ink: #1B1712;
  --leaf: #D7EBC0;
  --todo-bg: #4A3A16;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --prose: 44rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: var(--leaf); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--amber-ink); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--ground); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-acorn { width: 26px; height: 30px; flex: none; }
.brand-word { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.brand-word .bit { color: var(--amber); }
.brand-sub { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.32em; color: var(--leaf); line-height: 1; padding-top: 3px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-head nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-head nav a:hover { color: var(--leaf); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.15rem; }
.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--cream); max-width: 38rem; margin: 22px 0 0; }
.small { font-size: 0.92rem; color: var(--muted); }

/* the studio's mark: a row of pixels */
.px-rule { height: 8px; width: 104px; margin-top: 18px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 12px); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 6px;
  background: var(--amber); color: var(--amber-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--amber); }
.btn:hover { background: var(--leaf); border-color: var(--leaf); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--leaf); color: var(--cream); }
.badge { font-size: 0.9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 40px; align-items: center; }
@media (min-width: 52rem) { .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding-block: 88px 64px; } }
.hero-art { display: flex; justify-content: center; }
.hero-acorn { width: min(260px, 60vw); height: auto; aspect-ratio: 12 / 14; }
.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 38rem; }
.rules li { position: relative; padding-left: 26px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--amber); }
.rules strong { color: var(--cream); }

.block { padding-block: 24px 56px; }
.section-label { font-family: var(--body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 40px); }
.game-card h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.game-card .meta { color: var(--leaf); font-weight: 600; margin: 8px 0 14px; }
.game-card p { max-width: 42rem; margin: 0; }

/* M.E.C.H page */
.page-head { padding-block: 56px 32px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 36px 48px; }
.feat h3 { margin-bottom: 8px; color: var(--cream); }
.feat p { margin: 0; color: var(--muted); }
.fair { background: var(--panel); border-radius: 12px; padding: clamp(22px, 4vw, 40px); }
.fair .rules { margin-top: 18px; max-width: 44rem; }

/* documents */
.prose { max-width: calc(var(--prose) + 80px); }
.doc { padding-block: 56px 72px; }
.doc h2 { margin: 40px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.prose p, .prose li { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-block: 6px; }
.prose p strong:first-child { color: var(--cream); }
.doc > p:first-of-type { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel); font-weight: 700; color: var(--leaf); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
table.facts { min-width: 0; }
table.facts th { width: 11rem; color: var(--leaf); font-weight: 600; }

/* placeholders that still need real data */
.todo { white-space: nowrap; background: var(--todo-bg); color: var(--amber); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* testers */
.download-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 28px 0 8px; max-width: var(--prose); }
.dl-title { font-weight: 700; margin: 0; color: var(--cream); }
.dl-meta { margin: 2px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
#build-notes { max-width: var(--prose); }
#build-notes .dl-title { margin-top: 18px; }

/* press downloads */
.downloads { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-width: 352px; }
.dl-card img { display: block; border-radius: 6px; }
.dl-card p { margin: 10px 0 0; font-size: 0.95rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 28px 36px; }
.legal { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.8; max-width: 40rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; }
.foot-nav a { color: var(--cream); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
