/* Cognitive Play — identity from concepts/cognitive_play_logo/NOTE.md
   ink #15171c · paper #f4f3ef · night #0b0c10 · snow #f2f2f0 · amber #ffb020 · Barlow */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/Barlow/Barlow-Italic.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Barlow/Barlow-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Barlow/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Barlow/Barlow-Bold.ttf") format("truetype"); }

:root {
  --ink: #15171c;
  --paper: #f4f3ef;
  --amber: #ffb020;
  --amber-ink: #15171c;          /* text on amber */
  --muted: rgba(21, 23, 28, .62);
  --rule: rgba(21, 23, 28, .10);
  --card: #ffffff;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, .16);
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f0;
    --paper: #0b0c10;
    --muted: rgba(242, 242, 240, .62);
    --rule: rgba(242, 242, 240, .12);
    --card: #15171c;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand .lockup { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 30px; font: 500 15px/1 "Barlow", sans-serif; letter-spacing: .06em; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a.is-current { color: var(--ink); border-bottom-color: var(--amber); }

.btn {
  display: inline-block; font: 700 15px/1 "Barlow", sans-serif; letter-spacing: .01em;
  padding: 12px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .08s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-steam, .btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 17px; padding: 15px 22px; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(48px, 9vw, 110px); }
.hero h1 { max-width: 16ch; }
.hero h1 span { color: var(--amber); }
.hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.game-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 7 / 5;
  background: #1a110c; box-shadow: var(--card-shadow); color: #fff; text-decoration: none;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card .tag {
  position: absolute; left: 18px; bottom: 16px; font: 700 14px/1 "Barlow", sans-serif; letter-spacing: .18em;
  background: rgba(0, 0, 0, .5); padding: 9px 12px; border-radius: 6px; backdrop-filter: blur(4px);
}

/* sections */
.section { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { font: 600 13px/1 "Barlow", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: block; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature .body h2 { margin-bottom: 14px; }
.feature .body .meta { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin: 14px 0 22px; }
.feature .body .meta b { color: var(--ink); font-weight: 600; }

/* inner pages */
.page { padding-block: clamp(40px, 7vw, 96px); max-width: 68ch; }
.page h1 { margin-bottom: .5em; }
.page .lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--muted); margin-bottom: 2em; }
.page h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.page h3 { margin: 1.4em 0 .4em; }
.page li { margin-bottom: .35em; }
.page hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.page small, .fine { font-size: 15px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 1em 0 2em; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; }
.notice { border-left: 3px solid var(--amber); padding: 10px 16px; background: color-mix(in srgb, var(--amber) 10%, transparent); border-radius: 0 8px 8px 0; margin: 1.5em 0; }
.callout { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 24px 26px; }
.callout h3 { margin: 0 0 .4em; }
.callout p:last-child { margin: 0; }

/* footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 26px; }
.foot p { margin: 0; max-width: 60ch; }
.foot-brand { flex-basis: 100%; color: var(--ink); }
.foot-brand .lockup { height: 26px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* phone */
@media (max-width: 760px) {
  .bar { gap: 14px 20px; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; font-size: 14px; overflow-x: auto; padding-bottom: 2px; }
  .btn-steam { margin-left: auto; padding: 10px 14px; font-size: 14px; }
  .brand .lockup { height: 32px; }
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: none; }
  .game-card { aspect-ratio: 16 / 10; }
  .foot { flex-direction: column; }
}
@media (max-width: 400px) {
  .btn-steam { display: none; }   /* the hero has the same button */
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
code { font: 500 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--rule); padding: .1em .35em; border-radius: 4px; }

/* holding page (SITE_MODE=holding): the lockup alone */
.holding { justify-content: center; }
.holding-main { flex: 1; display: grid; place-items: center; padding: 24px var(--gutter); }
.holding-logo { margin: 0; color: var(--ink); width: min(520px, 100%); }
.holding-logo .lockup { width: 100%; height: auto; }
.holding-foot { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; padding: 24px var(--gutter) 32px; font-size: 14px; color: var(--muted); }
.holding-foot a { color: var(--muted); text-decoration: none; }
.holding-foot a:hover { color: var(--ink); }
