/* Nightfield Arena — theme: tokens, type, header, buttons
   Look: floodlit night pitch, chalk lines, scoreboard amber. */

:root {
  --night: #0A1F18;
  --pitch: #0E3B2C;
  --pitch-2: #15513D;
  --chalk: #F4F7F2;
  --amber: #FFB21E;
  --red: #E5484D;

  --bg: var(--night);
  --fg: var(--chalk);
  --muted: rgb(244 247 242 / .68);
  --surface: #0F2A21;
  --line: rgb(244 247 242 / .16);
  --accent: var(--amber);
  --accent-ink: #1A1200;
  --focus: var(--amber);
  --field-bg: rgb(244 247 242 / .04);
  --actionbar-bg: rgb(10 31 24 / .96);

  --font-display: "Big Shoulders Display", "Noto Sans Devanagari", Impact, sans-serif;
  --font-body: "Barlow", "Noto Sans Devanagari", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px -20px rgb(0 0 0 / .6);
  --header-h: 68px;
  --wrap: 1200px;
}

/* chalk (light) sections flip the tokens */
.chalk {
  --bg: var(--chalk);
  --fg: var(--night);
  --muted: #4B5D55;
  --surface: #FFFFFF;
  --line: rgb(10 31 24 / .14);
  --field-bg: #fff;
  background: var(--bg);
  color: var(--fg);
}

/* ------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 700px) { .section-head--row { grid-template-columns: 1fr; } }

section { padding-block: clamp(72px, 10vw, 128px); position: relative; }


/* ------------------------------------------------------------ header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(10 31 24 / .88); backdrop-filter: blur(12px); border-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; color: var(--amber); }

.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9875rem; color: var(--muted); transition: color .2s, background .2s; }
.nav__list a:hover { color: var(--fg); }
.nav__list a[aria-current] { color: var(--fg); background: rgb(244 247 242 / .08); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav { position: static; }
  .menu-btn { display: block; }
  .nav__list { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 20px 28px; background: var(--night); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav__list.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list a { padding: 14px 4px; border-radius: 0; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current] { background: none; color: var(--amber); }
}
@media (max-width: 560px) { .hide-sm { display: none !important; } .brand { font-size: 1.2rem; } .brand__mark { width: 26px; height: 26px; } }

/* ----------------------------------------------------------- buttons */
.btn { --b-bg: transparent; --b-fg: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent; background: var(--b-bg); color: var(--b-fg); font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--accent { --b-bg: var(--amber); --b-fg: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 0 0 6px rgb(255 178 30 / .22); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--quiet { color: var(--muted); }
.btn--quiet:hover { color: var(--fg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.site-header .lang-toggle { color: var(--fg); }
