@font-face { font-family: Fraunces; src: url(/fonts/fraunces-latin-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f4f1ea;
  --card: #ffffff;
  --ink: #2e222f;
  --soft: #5a4d5c;
  --night-soft: #d9d1d6;
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, .wordmark, .soon { font-family: var(--serif); font-weight: 300; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.quiet { color: var(--soft); font-size: 16px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 46ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: min(960px, 100% - 40px); margin-inline: auto; }
.block { padding-top: clamp(72px, 10vw, 120px); }
.label { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 18px; }

/* Buttons: one shape, a full pill. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 18px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.btn:hover { background: #45293f; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-big { min-height: 60px; padding: 0 32px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #ffffff; }
.soon { font-size: 24px; }

/* Bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; width: min(100% - 40px, 1280px); }
.logo img { width: clamp(110px, 12vw, 150px); }
.bar nav { display: flex; gap: clamp(18px, 2.5vw, 36px); font-size: 16px; }
.bar nav a { text-decoration: none; position: relative; padding: 10px 0; }
.bar nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero { padding-top: clamp(48px, 9vw, 110px); }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: .95; }

/* Sign-up */
.signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.signup input { flex: 0 1 380px; min-width: 0; height: 54px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font: 400 18px var(--sans); color: var(--ink); }
.signup-note { flex-basis: 100%; }
.signup.done input, .signup.done button { display: none; }
.signup.done .signup-note { color: var(--ink); font-family: var(--serif); font-size: 26px; }

/* Album: a dark card */
.album { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; background: var(--ink); color: var(--paper); padding: clamp(18px, 3vw, 28px); border-radius: 28px; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.album h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.02; }
.album p { margin: 12px 0 20px; color: var(--night-soft); max-width: 40ch; }

/* Game card */
.card { background: var(--card); border-radius: 28px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.card > a { display: block; overflow: hidden; }
.card > a:hover img { transform: scale(1.03); }
.card-body { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); }
.card h3 { font-size: clamp(44px, 5.5vw, 64px); line-height: .95; font-weight: 400; }
.card p { margin-top: 12px; max-width: 44ch; }
.more { display: inline-block; margin-top: 12px; font-size: 16px; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stills img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }

/* A game's own page */
.game-top { padding-top: clamp(48px, 8vw, 100px); display: grid; gap: 24px; justify-items: start; }
.game-top h1 { font-size: clamp(56px, 10vw, 128px); line-height: .9; }
.game-hero { width: 100%; border-radius: 28px; }
.prose { display: grid; gap: 16px; max-width: 60ch; margin: 40px 0; }
.prose h1 { font-size: clamp(48px, 8vw, 96px); line-height: .95; margin-bottom: 8px; }
.game-top + .block .album { margin-top: 40px; }

/* Footer: the name returns at full width of the column */
.foot { padding: clamp(96px, 12vw, 140px) 0 32px; }
.wordmark { font-size: clamp(64px, 17.4vw, 168px); line-height: .8; letter-spacing: -0.05em; margin-left: -0.04em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 28px; font-size: 16px; color: var(--soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { padding: 6px 0; }

/* Phone */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .signup input, .signup .btn { flex: 1 1 100%; }
  .album { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 4 / 3; }
  .card-body { flex-direction: column; align-items: stretch; }
  .card-body .btn { width: 100%; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stills img:nth-child(3) { display: none; }
  .game-top .btn { width: 100%; }
  .game-top > div { width: 100%; }
}

/* Entrances: hidden only when the script has run, so nothing stays hidden without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bar nav a::after, .card img { transition: none; }
}
