/* ryven.gg site styles (T-1201).
   Hard section changes: dark -> light -> color -> light. Square corners only.
   Brand colors mirror docs/game-design/DESIGN_TOKENS.md; --paper is a
   website-only surface (see docs/web/WEB_LICENSES.md / WEBSITE_DE.md). */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0B0F;
  --ink-raised: #16161C;
  --line-dark: #3E3E4A;
  --oxblood: #2A0F1A;
  --hotpink: #FF4F8B;
  --chrome: #C9CED6;
  --chrome-muted: #8A909B;
  --chrome-bright: #F2F4F7;
  --paper: #ECE8E1;
  --paper-muted: #55525A;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow", sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --gutter: 1rem;
  --header-h: 4rem;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (min-width: 2400px) { html { font-size: 137.5%; } }
@media (min-width: 3200px) { html { font-size: 175%; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font: 400 1rem/1.65 var(--text);
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; max-width: 52ch; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.005em;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--hotpink);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Full width: only the side gutter limits layout. Running text keeps its ch limits (p, .lead). */
.wrap { width: 100%; padding-inline: var(--gutter); }

/* ---------- Section surfaces ---------- */
.s-dark { background: var(--ink); color: var(--chrome); }
.s-dark h1, .s-dark h2, .s-dark h3 { color: var(--chrome-bright); }
.s-light { background: var(--paper); color: var(--ink); }
.s-light .muted { color: var(--paper-muted); }
.s-oxblood { background: var(--oxblood); color: var(--chrome); }
.s-oxblood h2, .s-oxblood h3 { color: var(--chrome-bright); }
.s-pink { background: var(--hotpink); color: var(--ink); }
.muted { color: var(--chrome-muted); }

.section { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 10rem); }

/* ---------- Small type and decoration ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; flex: none; }
.s-dark .kicker::before, .s-light .kicker::before { background: var(--hotpink); }

.h-section { font-size: clamp(3.5rem, 11vw, 9.5rem); position: relative; }

/* A huge, very faint word behind a heading */
.ghost {
  position: absolute;
  z-index: 0;
  top: 0.5rem;
  right: -0.04em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(9rem, 34vw, 32rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.section > .wrap { position: relative; z-index: 1; }

.dots {
  display: grid;
  grid-template-columns: repeat(6, 3px);
  gap: 9px;
  opacity: 0.5;
}
.dots i { width: 3px; height: 3px; background: currentColor; }

.rule { height: 1px; background: currentColor; opacity: 0.25; border: 0; margin: 0; }

/* ---------- Buttons: sharp rectangles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: 0;
  background: var(--hotpink);
  color: var(--ink);
  font: 600 0.85rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn::after { content: ""; width: 0.45rem; height: 0.45rem; background: currentColor; }
.btn:hover { background: var(--chrome-bright); }
.btn-ink { background: var(--ink); color: var(--chrome-bright); }
.btn-ink:hover { background: var(--ink-raised); }

.tag {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--chrome-bright);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { height: 1.6rem; width: auto; }
.logo span { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.06em; line-height: 1; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav a {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome);
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--chrome-bright); border-bottom-color: var(--hotpink); }

.menu-toggle {
  display: none;
  padding: 0.6rem 0.9rem;
  background: transparent;
  color: var(--chrome-bright);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font: 600 0.75rem/1 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 47.99rem) {
  /* With JavaScript: a menu button. Without: the links wrap below the logo. */
  .js .menu-toggle { display: block; margin-left: auto; }
  .js .nav ul {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .js .nav.open ul { display: flex; }
  .js .nav a { padding-block: 0.9rem; border-bottom: 1px solid var(--line-dark); }
  .site-header .wrap { flex-wrap: wrap; column-gap: 0; }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-bottom: 0.75rem; }
}

/* ---------- Image slots ---------- */
.slot { position: relative; background: var(--ink-raised); overflow: hidden; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot-16x9 { aspect-ratio: 16 / 9; }
.slot-16x10 { aspect-ratio: 16 / 10; }
.slot-3x4 { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Flat dimming layer: keeps text contrast over any future key art */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 11, 15, 0.55); }

.hero-main {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding-block: 4rem 2rem;
}
.hero-mark { width: clamp(4rem, 9vw, 8.5rem); height: auto; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero h1 { font-size: clamp(4.25rem, 17vw, 16rem); line-height: 0.82; }
.hero .line {
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  max-width: none;
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--chrome-bright);
}
.hero .btn { margin-top: clamp(2rem, 4vw, 3rem); }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
}
.hero-foot .sq { display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--chrome); margin-right: 0.75rem; }
@media (max-width: 30rem) { .hero-foot { flex-direction: column; align-items: flex-start; } }

/* ---------- Split layout ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; } .split.reverse { grid-template-columns: 7fr 5fr; } }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 40ch; }
.lead-gap { margin-top: 1.5rem; margin-bottom: 2rem; }
.small { font-size: 0.85rem; margin-top: 1rem; }
.feature-mark { width: 4rem; height: auto; margin-bottom: 1.5rem; }
.hero-mark-wide { width: clamp(6rem, 13vw, 12rem); }

/* Big numbers */
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.stats div { border-left: 1px solid currentColor; padding-left: 1rem; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; }
.stats span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* Numbered list in columns, separated by lines (no boxes) */
.mechanics {
  list-style: none;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
}
/* Fixed column steps so no item is left alone in a row: 1, 2 or 4 */
@media (min-width: 40rem) { .mechanics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .mechanics { grid-template-columns: repeat(4, 1fr); } }
.mechanics li { border-top: 2px solid currentColor; padding-top: 1.25rem; }
.mechanics .n { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; }
.mechanics h3 { font-size: clamp(2rem, 3vw, 2.75rem); margin: 0.75rem 0 1rem; }
.mechanics p { font-size: 0.95rem; }
.mechanics .fact { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Devlog cards ---------- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--ink); display: flex; flex-direction: column; }
.card .body { padding: 1.5rem 1.5rem 2rem; }
.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-muted);
}
.card time { color: var(--hotpink); }
.card h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); color: var(--chrome-bright); margin-bottom: 1rem; }
.card p { font-size: 0.95rem; margin: 0; }

/* ---------- Characters ---------- */
.roster { display: grid; gap: clamp(1rem, 2vw, 2rem); grid-template-columns: repeat(3, 1fr); margin-top: clamp(2.5rem, 5vw, 4rem); }
.roster figure { margin: 0; }
.roster figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (max-width: 40rem) { .roster { grid-template-columns: 1fr 1fr; } .roster figure:nth-child(3) { display: none; } }

/* ---------- Studio (pink) ---------- */
.studio { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .studio { grid-template-columns: auto 1fr; } }
.studio-mark { width: clamp(7rem, 16vw, 14rem); height: auto; }

/* Statements (Ryven page) */
.statements { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; }
.statements li {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(201, 206, 214, 0.25);
}
@media (min-width: 56rem) { .statements li { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.statements h3 { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.95; color: var(--chrome-bright); }
.statements p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--chrome-muted); border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: grid; gap: 2rem; padding-block: 3.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .marks { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.site-footer .marks img { height: 1.75rem; width: auto; }
.site-footer p { margin: 0; font-size: 0.85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.site-footer a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome);
}
.site-footer a:hover { color: var(--chrome-bright); text-decoration: underline; text-underline-offset: 0.3em; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
