/* Gallivant Games: one stylesheet for every page. Sora (variable, SIL OFL 1.1) is bundled with the site; nothing comes from elsewhere.
   Gold is an accent only: never body text, and never a link on a light background. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/Sora-latin-variable.woff2") format("woff2"); }

:root {
  --night: #0E0F13;      /* header, hero, footer */
  --night-2: #16171B;    /* dark buttons */
  --warm: #FAF9F4;       /* the games section, reading pages */
  --ivory: #F4EEE0;      /* the educators section */
  --card: #FFFFFF;
  --line: #E2DED3;       /* card borders on light */
  --chip: #BEBCB0;
  --ink: #0E0F13;        /* headings on light */
  --text: #2A2A2A;       /* body on light */
  --muted: #55524A;      /* quieter text on light */
  --gold: #C8A040;       /* the gold button, rules and the horizon line */
  --gold-bright: #D9AE3A;/* kicker text on the dark hero */
  --gold-deep: #7A5507;  /* kicker labels and rules on light (accent only) */
  --pale: #FBF8EE;       /* headings on dark */
  --pale-2: #E3E4E8;     /* body on dark */
  --art: #06222D;        /* behind The Echo Loop's mark */
  --focus: var(--night); /* a focus ring that shows on light backgrounds; dark sections use gold */
  --wide: 75rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--warm); color: var(--text); font: 400 1.0625rem/1.65 "Sora", "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .07em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.dark { --focus: var(--gold); }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1.1rem; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 1rem; }
.skip:focus-visible { outline-color: var(--pale); }   /* it sits over the dark header */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 .9rem; color: var(--gold-deep); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 2.875rem); font-weight: 400; letter-spacing: -.01em; }

/* header (every page) */
.site-header { background: var(--night); color: var(--pale-2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding-top: 1.35rem; padding-bottom: 1.35rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--pale); text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.brand img { width: 1.9rem; height: 1.9rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .3rem 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--pale-2); text-decoration: none; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: .3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pale); text-decoration: underline; }

/* the hero (Home) */
.hero { position: relative; background: var(--night); color: var(--pale-2); text-align: center; padding: 3.5rem 0 5.5rem; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, #F1D58C 50%, var(--gold) 70%, transparent); }   /* the gold horizon line */
.hero-emblem { width: 11.5rem; height: 11.5rem; margin: 0 auto 2.6rem; }
.hero .kicker { color: var(--gold-bright); letter-spacing: .36em; line-height: 1.7; }
.hero h1 { color: var(--pale); font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 400; letter-spacing: -.015em; margin: 0 0 1.6rem; }
.hero-lead { max-width: 38rem; margin: 0 auto 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }
.hero-note { margin: 0 0 2rem; color: var(--pale); font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 0 2rem; }
.btn { display: inline-block; padding: 1.05rem 1.9rem; font-size: .85rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 2px; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #D6B055; }
.btn-ghost { color: var(--pale); border-color: #6A6A72; }
.btn-ghost:hover { border-color: var(--pale); }
.btn-dark { background: var(--night-2); color: #FFFFFF; }
.btn-dark:hover { background: #2A2B31; }
.trust { margin: 0; color: var(--pale); font-weight: 500; letter-spacing: .04em; }

/* games (Home) */
.games { background: var(--warm); padding: 5rem 0 4.5rem; }
.games h2 { margin-bottom: 2.6rem; }
.game-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(14, 15, 19, .04), 0 8px 24px rgba(14, 15, 19, .05); }
.game-art { background: var(--art); display: grid; place-items: center; padding: 3rem; min-height: 20rem; }
.game-art img { width: 11.5rem; }
.game-body { padding: 3rem 3.25rem; }
.game-body h3 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); font-weight: 600; margin: 0 0 .7rem; }
.tagline { color: var(--gold-deep); font-size: 1.15rem; font-weight: 500; margin: 0 0 1rem; }   /* an accent line, not body text */
.game-body p { margin: 0 0 1rem; }
.game-body strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.chips li { border: 1px solid var(--chip); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 500; color: var(--ink); }
.more { margin: 2.2rem 0 0; color: var(--muted); }

/* educators (Home) */
.educators { background: var(--ivory); padding: 5.5rem 0 5rem; }
.educators h2 { max-width: 40rem; margin-bottom: 1.2rem; }
.educators .intro { max-width: 44rem; font-size: 1.15rem; margin: 0 0 2.8rem; }
.promise { background: var(--card); border-left: 3px solid var(--gold-deep); border-radius: 0 6px 6px 0; padding: 1.7rem 2.2rem; margin: 0 0 2rem; }
.promise h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin: 0 0 .5rem; }
.promise p { margin: 0; }
.promise a { color: var(--ink); font-weight: 500; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; margin: 0 0 2.8rem; padding: 0; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.9rem; }
.features li::before { content: ""; display: block; width: 1.75rem; height: 2px; background: var(--gold-deep); margin-bottom: 1.1rem; }
.features h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .6rem; }
.features p { margin: 0; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.contact-row a:not(.btn) { color: var(--ink); font-weight: 500; }

/* reading pages: privacy, support, 404 */
.page { background: var(--warm); padding: 4rem 0 4.5rem; flex: 1; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); font-weight: 600; letter-spacing: -.01em; margin: 0 0 1rem; }
.page h2 { font-size: clamp(1.3rem, 2.6vw, 1.55rem); font-weight: 600; letter-spacing: 0; margin: 2.4rem 0 .6rem; }
.page p, .page ul { margin: 0 0 1rem; }
.page ul { padding-left: 1.3rem; }
.page li { margin-bottom: .45rem; }
.page li::marker { color: var(--gold-deep); }
.page a { color: var(--ink); font-weight: 500; }
.page strong { color: var(--ink); font-weight: 600; }
.meta { color: var(--muted); }

/* footer (every page) */
.site-footer { position: relative; background: var(--night); color: var(--pale-2); font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 2.2rem; padding-bottom: 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin: 0; }
.footer-brand img { width: 1.4rem; height: 1.4rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--pale-2); text-decoration: none; }
.site-footer a:hover { color: var(--pale); text-decoration: underline; }

@media (max-width: 56rem) {
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 0; padding: 2.5rem; }
  .game-art img { width: 8.5rem; }
  .game-body { padding: 2rem 1.6rem 2.2rem; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .wrap { padding: 0 1.15rem; }
  .site-nav ul { gap: .3rem 1rem; }
  .site-nav a { font-size: .72rem; letter-spacing: .08em; }
  .hero { padding: 2.5rem 0 4rem; }
  .hero-emblem { width: 8.5rem; height: 8.5rem; margin-bottom: 2rem; }
  .hero .kicker { letter-spacing: .22em; font-size: .75rem; }
  .btn { width: 100%; text-align: center; padding: 1rem 1.2rem; }
  .games, .educators { padding: 3.5rem 0; }
  .promise { padding: 1.4rem 1.3rem; }
  .features li { padding: 1.5rem 1.4rem; }
  .page { padding: 2.8rem 0 3.5rem; }
}
