@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

/* Studio brand colours (brand/BRAND-GUIDE.md section 2) */
:root {
  --ink: #1D2A44;
  --parchment: #F5ECD7;
  --paper: #FBF6EA;
  --seal: #A3302A;
  --brass: #C9A050;
  --blueprint: #2C4A73;
  --muted: #55607A;
  --rule: #DCCBA6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--seal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
h1, h2 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 750; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1rem; }
.kicker { font-weight: 900; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--seal); margin-bottom: .5rem; }

/* ---------- hero: blueprint paper ---------- */
.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(201,160,80,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,160,80,.08) 1px, transparent 1px),
    linear-gradient(rgba(245,236,215,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,236,215,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--parchment); text-align: center;
  padding-block: calc(clamp(3.5rem, 9vw, 6.5rem) + env(safe-area-inset-top)) clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 { max-width: 640px; margin: 0 auto 1.25rem; }
.tagline { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--brass); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .6rem; }
.lede { max-width: 620px; margin: 0 auto 1.8rem; color: #E4DCC7; font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.btn {
  display: inline-block; background: var(--seal); color: var(--parchment); font-weight: 900; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: 999px; box-shadow: 0 0 0 3px rgba(245,236,215,.25);
}
.btn:hover { background: #8E2924; }

/* ---------- the games: deed cards ---------- */
.games { background: var(--paper); }
.sub { color: var(--muted); }
.deeds { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.deeds > li { flex: 1 1 330px; max-width: 360px; }
@media (max-width: 420px) { .deeds > li { max-width: 100%; } }
.deed {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rule), 0 12px 26px rgba(29,42,68,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.deed:hover, .deed:focus-visible { transform: translateY(-4px); box-shadow: 0 1px 0 var(--rule), 0 18px 34px rgba(29,42,68,.18); }
.deed img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--parchment); border-bottom: 4px double var(--rule); }
.deed .body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; background: linear-gradient(180deg, #fff 0%, #FDF9F0 100%); }
.lot { font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.name { font-family: var(--serif); font-size: 1.45rem; font-weight: 750; line-height: 1.15; }
.what { font-size: 1rem; color: #36415A; flex: 1; }
.status { align-self: flex-start; font-size: .82rem; font-weight: 900; padding: .25rem .7rem; border-radius: 999px; background: var(--ink); color: var(--parchment); }
.status[data-s="dev"] { background: var(--parchment); color: var(--ink); border: 1px dashed var(--brass); }
.go { font-weight: 900; color: var(--seal); font-size: .95rem; }

/* ---------- about ---------- */
.about { background: var(--parchment); border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.seal { width: 220px; transform: rotate(-8deg); filter: drop-shadow(0 10px 16px rgba(29,42,68,.25)); }
.about p { max-width: 640px; font-size: 1.15rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #C9CFDB; padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); }
.foot a { color: var(--parchment); }
.foot-logo { width: 240px; margin-bottom: 1.25rem; }
.fine { font-size: .9rem; max-width: 760px; }

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .seal { width: 150px; margin: 0 auto; }
  .about p { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.page404 { min-height: 70vh; display: grid; place-items: center; }
.page404 .kicker { color: var(--brass); }
