/* Chess Gurukul: ebony, ivory, brass and tournament green. Playfair Display for headings, Work Sans for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #121314;
  --surface: #1C1E20;
  --soft: #191B1D;
  --ink: #F3EBDD;
  --muted: #B6AE9F;
  --line: #2E3134;
  --line-strong: #4A4D50;
  --brand: #C9A227;
  --brand-hover: #DDB53A;
  --brand-ink: #121314;
  --brand-text: #E2C060;
  --green: #2F5D50;
  --eyebrow: #E2C060;
  --input-bg: #151719;
  --menu-bg: #121314;
  --badge-bg: #C9A227;
  --badge-ink: #121314;
  --out-bg: #F3EBDD;
  --out-ink: #121314;
  --out-accent: #8A6A0C;
  --out-btn: #121314;
  --out-btn-ink: #F3EBDD;
  --focus: #E2C060;
  --head: "Playfair Display", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
  --btn-radius: 2px;
  --wrap: 1180px;
}
h1, h2, h3 { font-weight: 800; }
h1 em { color: var(--brand-text); font-style: italic; font-weight: 600; }
.btn { letter-spacing: .03em; }
.ic { color: var(--brand-text); }
.c-filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.header { background: rgba(18,19,20,.95); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; }
.logo span { display: grid; line-height: 1.1; }
.logo b { font: 800 1.35rem var(--head); }
.logo small { font-size: .72rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav-toggle { color: var(--ink); }

.hero { position: relative; padding-block: clamp(36px, 6vw, 88px); background: radial-gradient(700px 400px at 20% 0, #24282B, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: 1; margin: 16px 0 18px; }
.hero .t-actions { margin-top: 26px; }
.board { margin: 0; padding: 14px; background: #3A2E1A; border: 2px solid var(--brand); box-shadow: 0 40px 60px -30px #000; transform: rotate(2deg); max-width: 480px; justify-self: center; width: 100%; }
.board svg { width: 100%; height: auto; }
.board figcaption { margin-top: 10px; text-align: center; font-size: .82rem; color: #E9DFC9; letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) { .board { transition: transform .4s; } .board:hover { transform: rotate(0); } }

.levels-strip { border-block: 1px solid var(--line); background: var(--soft); }
.levels-strip ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .levels-strip ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.levels-strip li { display: grid; gap: 4px; padding: 18px 14px; border-left: 1px solid var(--line); }
.levels-strip li:first-child { border-left: 0; }
.levels-strip span { font: 800 1.8rem var(--head); color: var(--brand-text); line-height: 1; }
.levels-strip b { font-weight: 600; }
.levels-strip a { font-size: .86rem; color: var(--brand-text); text-underline-offset: 4px; min-height: 24px; }

.c-card { background: var(--surface); }
.c-img { border-bottom: 2px solid var(--brand); }
.why { background: var(--green); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
.why-grid div { display: grid; gap: 6px; }
.why-grid .ic { width: 30px; height: 30px; color: var(--ink); }
.why-grid h2 { font-size: 1.3rem; }
.why-grid p { color: #D5E3DD; }
.res-band { background: var(--soft); border-top: 1px solid var(--line); }
.quotes blockquote { font-family: var(--head); font-style: italic; font-size: 1.15rem; }
.quotes li { border-top: 3px solid var(--brand); }

.tt th, .tt td { border-color: var(--line); }
.tool-out { border-top: 6px solid var(--brand); }
.tool-out .out-lines div { border-color: rgba(0,0,0,.12); }
.tool-out .out-warn { background: #F6E3A6; color: #3b2d00; }
.checklist input:checked + span { text-decoration: none; opacity: 1; }
.checklist label:has(input:checked) { border-color: var(--brand); }

.page-head { margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(201,162,39,.12), transparent 60%); }

.cta-band { padding-block: clamp(44px, 6vw, 80px); background: var(--brand); color: #121314; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-style: italic; }
.cta-band p { margin-top: 6px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #121314; color: var(--ink); }
.cta-band .btn-ghost { border-color: #121314; color: #121314; }
.footer { background: #0B0C0D; color: var(--muted); }
.footer h2 { color: var(--brand-text); opacity: 1; }
.f-about { margin-top: 12px; max-width: 34ch; }
