/* runitbackgame.com landing page. The game's Hardwood palette and anime-cover look
   (src/components/theme.ts): walnut screens, cream paper panels with ink outlines, amber buttons. */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #1f140c;
  --deep: #120b06;
  --paper: #f6ecd8;
  --paper-shade: #e8d6b4;
  --ink: #14131a;
  --ink-dim: #5d5648;
  --wood: #c8843f;
  --amber: #f0a43a;
  --amber-text: #8a4f00;
  --dim: #c9b49a;
  --line: #3a2a1c;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Display type: the slanted, uppercase Anton from the game's covers and cut scenes. */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}
.slant { display: inline-block; transform: skewX(-8deg); }
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.lede { font-size: 19px; color: var(--paper); max-width: 640px; }
.dim { color: var(--dim); }

/* Buttons: amber with an ink outline and an offset ink shadow, like the in-game primary button. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--amber);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.btn.ghost { background: var(--paper); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 11, 6, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo {
  font-family: var(--display);
  font-size: 28px;
  color: var(--amber);
  text-transform: uppercase;
  text-decoration: none;
  transform: skewX(-10deg);
  text-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a.link { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 700; }
.bar nav a.link:hover { color: var(--paper); }
@media (max-width: 760px) { .bar nav a.link { display: none; } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/img/arena-home.webp") center / cover no-repeat;
  opacity: 0.32;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 11, 6, 0.35) 0%, rgba(18, 11, 6, 0.85) 70%, var(--deep) 100%);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); color: var(--paper); text-shadow: 3px 3px 0 var(--ink); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin: 22px 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--dim); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
  .hero .cover { max-width: 340px; margin: 0 auto; }
}

/* A cover, framed like the volumes on the game's home shelf. */
.cover { position: relative; }
.cover-inner {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 8px 8px 0 var(--ink);
}
.cover-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  background: var(--amber);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.cover-band b { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; transform: skewX(-10deg); }
.cover-band span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }

/* Facts strip */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none;
  margin: 0 auto;
  padding: 22px var(--gutter);
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.facts li { text-align: center; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--amber); }
.facts span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 640px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 80px 0; scroll-margin-top: 60px; }
section.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(34px, 5vw, 56px); color: var(--paper); margin-bottom: 18px; }
section h2 em { font-style: normal; color: var(--amber); }
@media (max-width: 640px) { section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Paper panel with ink outline */
.panel {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
}
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 0 0 6px; color: var(--ink); }
.panel p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.panel .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 6px; }

.frame { border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: var(--ink); }
.frame img { width: 100%; }

/* Two-column checklist: what you pick, what you don't */
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.two-lists ul { margin: 8px 0 0; padding-left: 18px; }
.two-lists li { margin: 3px 0; font-size: 15px; }
@media (max-width: 560px) { .two-lists { grid-template-columns: 1fr; } }

/* The week: numbered steps with a place photo each */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.step { display: flex; flex-direction: column; }
.step .frame { aspect-ratio: 3 / 4; }
.step .frame img { height: 100%; object-fit: cover; }
.step .num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--amber); margin: 16px 0 2px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }
.step p { margin: 0; font-size: 15px; color: var(--dim); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step .frame { aspect-ratio: 4 / 3; } }

/* Image grids */
.grid { display: grid; gap: 14px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }

.card { margin: 0; }
.card .frame { aspect-ratio: 4 / 5; }
.card .frame img { height: 100%; object-fit: cover; }
.card figcaption { margin-top: 10px; }
.card figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; text-transform: uppercase; color: var(--paper); line-height: 1.1; }
.card figcaption span { display: block; font-size: 14px; color: var(--dim); line-height: 1.45; margin-top: 3px; }

.cast { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
@media (max-width: 900px) { .cast { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cast { grid-template-columns: repeat(2, 1fr); } }

.aces { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.aces .card figcaption b { font-size: 17px; }
.aces .card figcaption span { font-size: 12px; }
@media (max-width: 900px) { .aces { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .aces { grid-template-columns: repeat(3, 1fr); } }

.wide .frame { aspect-ratio: 3 / 2; }
.wide .frame img { height: 100%; object-fit: cover; }

/* A horizontal strip of stills that scrolls inside itself, never the page. */
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin-top: 24px; }
.strip .frame { flex: 0 0 auto; width: 190px; aspect-ratio: 4 / 5; scroll-snap-align: start; box-shadow: 4px 4px 0 var(--ink); }
.strip .frame img { height: 100%; object-fit: cover; }

/* Mechanics cards */
.mech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 900px) { .mech { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mech { grid-template-columns: 1fr; } }

/* Episode list */
.episodes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.episodes li { display: grid; grid-template-columns: 54px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.episodes .n { font-family: var(--display); font-size: 32px; color: var(--amber); line-height: 1; }
.episodes b { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; display: block; line-height: 1.1; }
.episodes span { font-size: 14px; color: var(--dim); }
@media (max-width: 700px) { .episodes { grid-template-columns: 1fr; } }

/* Gallery: every tile keeps the scenes' own 3:2 shape, so nobody's head gets cropped off. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; margin-top: 32px; }
.gallery .frame { aspect-ratio: 3 / 2; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .big { grid-row: auto; aspect-ratio: 3 / 2; }
}

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--amber); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--dim); }

/* Closing call to action, with the whole team picture beside it */
.closing { border-top: 3px solid var(--ink); background: var(--bg); }
.closing .split { grid-template-columns: 0.9fr 1.1fr; }
.closing h2 { max-width: 620px; }
.closing p { max-width: 520px; }
@media (max-width: 860px) { .closing .split { grid-template-columns: 1fr; } }

footer.site { padding: 28px 0 40px; font-size: 14px; color: var(--dim); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--dim); }
/* Footer links are tap targets on phones: 44px tall without changing the line's look. */
footer.site a { display: inline-flex; align-items: center; min-height: 44px; }

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