/* Like Clockwork Games — shared styles. Palette and type from Thief of Tides' Dusk Chart (web/gui.css). */
@font-face { font-family: "Young Serif"; src: url(young-serif.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(atkinson-hyperlegible-next.ttf) format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: dark;
  --paper: #161C22; --paper-2: #1C232A; --paper-hi: #212932;
  --deep: #081218; --depth-1: #12293A; --depth-3: #4F8FAB; --depth-4: #7AB3CA;
  --ink: #EDE4CE; --ink-2: #BDB5A3; --ink-3: #9A958A;
  --act: #2E9E8E; --act-hi: #4DBBAA; --act-ink: #04201B;
  --thief: #F0605F; --gold: #E2B04E;
  --rule: rgb(237 228 206 / 0.3); --rule-soft: rgb(237 228 206 / 0.16);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(ellipse 70% 50% at 100% 0%, var(--depth-1), transparent 70%), var(--paper);
  color: var(--ink); font: 17px/1.55 var(--sans);
}
a { color: var(--depth-4); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--act-hi); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* the chart's tick rule, as in the game */
.tick { height: 6px; background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 12px); border-top: 1px solid var(--rule); }

header.site { padding: 22px 0 18px; }
header.site .wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.studio { font: 22px/1.1 var(--serif); color: var(--ink); text-decoration: none; }
.studio span { color: var(--ink-3); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
.lede { color: var(--ink-2); font-size: 19px; max-width: 46ch; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

main { padding: 36px 0 64px; }
section + section { margin-top: 48px; }

/* game card on the hub */
.game {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  text-decoration: none; color: inherit;
}
.game img.shot { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; min-height: 260px; }
.game .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.game .logo { width: min(300px, 100%); height: auto; }
.game:hover { border-color: var(--depth-3); }
.status { display: inline-block; align-self: flex-start; font-size: 13px; padding: 3px 10px; border: 1px solid var(--gold); color: var(--gold); border-radius: 99px; }

/* game page */
.hero { display: grid; gap: 22px; }
.hero .logo { width: min(520px, 100%); height: auto; }
.hero img.shot { width: 100%; border: 1px solid var(--rule); border-radius: 6px; image-rendering: pixelated; display: block; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.points li { border-top: 1px solid var(--rule); padding-top: 12px; color: var(--ink-2); }
.points strong { display: block; font: 19px/1.2 var(--serif); font-weight: 400; color: var(--ink); margin-bottom: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--act); color: var(--act-ink); border-radius: 6px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--act-hi); color: var(--act-ink); }
.note { font-size: 14px; color: var(--ink-3); }

footer.site { padding: 22px 0 40px; color: var(--ink-3); font-size: 14px; }
footer.site p { margin: 6px 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .game { grid-template-columns: 1fr; }
  .game img.shot { min-height: 0; aspect-ratio: 16 / 10; }
  .game .body { padding: 20px; }
}
