/* edgeofchaosgames.com (TODO E.8). Studio pages on Night (the logo's default ground, studio-logo.md); Pagal Ludo's
   pages on the game's bg.deep with its glows (art-direction.md). No scripts anywhere. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #14121F;          /* Night */
  --surface: #1E1B2D;
  --line: #322D47;
  --text: #F2F0F5;        /* Snow */
  --muted: #ABA6BC;
  --link: #FF3E8A;        /* Rani bright */
  --accent: #FF8A1F;      /* the mark's warm end */
  --head: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}

body.game {
  --bg: #2A1840;          /* bg.deep */
  --surface: #36214F;
  --line: #4B3366;
  --muted: #C4B6D6;
  --accent: #FFB320;      /* ui.primary, Play's gold */
  background-image:
    radial-gradient(60rem 40rem at 15% -10%, rgba(255, 62, 165, .16), transparent 70%),
    radial-gradient(50rem 36rem at 95% 10%, rgba(139, 92, 246, .16), transparent 70%);
  background-repeat: no-repeat;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 8px; }
h2 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 14px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.prose, .narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header and footer */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: block; padding: 6px 0; }
.logo img { width: 210px; }
.site-head nav { display: flex; gap: 22px; font-weight: 600; margin-left: auto; }
.site-head nav a { color: var(--text); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { border-bottom-color: var(--link); }

main { flex: 1; padding: 16px 0 56px; }

.site-foot { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot p { margin: 0; }

/* Blocks */
section { margin: 44px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.button {
  display: inline-block; font-weight: 700; text-decoration: none; color: #1A1405; background: var(--accent);
  padding: 11px 20px; border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }

/* Home */
.hero { padding: 40px 0 8px; }
.hero h1 { margin: 0 0 28px; }
.hero .lockup { width: min(100%, 520px); }
.lead { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.25; margin: 0 0 14px; }
.hero .intro { font-size: 19px; max-width: 620px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.game-card img { border-radius: 14px; }
.game-card h3 { font-size: 26px; }
.chip { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; margin: 0 0 16px; }

/* Pagal Ludo */
.feature { border-radius: 20px; margin: 8px 0 28px; width: 100%; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps p { margin: 0; }
.pawns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pawns li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 14px; text-align: center; }
.pawns img { width: 100%; max-width: 160px; margin: 0 auto 6px; }
.pawns b { display: block; font-family: var(--head); font-size: 18px; }
.pawns span { display: block; font-size: 15px; color: var(--muted); line-height: 1.35; }
.fair { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fair li { padding-left: 16px; border-left: 4px solid var(--accent); }
.status { border-left: 4px solid var(--accent); }
.status p:last-child { margin: 0; }

/* Text pages */
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.faq h3 { margin-top: 22px; }

@media (max-width: 760px) {
  .game-card, .steps { grid-template-columns: minmax(0, 1fr); }
  .pawns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 16px; }
}
@media (max-width: 480px) {
  .logo img { width: 200px; }
  .site-head nav { gap: 18px; }
}
