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

:root {
  --ink: #1D2A44;        /* Deed Ink navy (studio brand) */
  --paper: #FBF6EA;      /* listing-sheet cream */
  --paper-2: #F2E8D2;
  --gold: #FFD34E;       /* the game logo's gold */
  --red: #C8372D;        /* OPEN HOUSE sign red */
  --lawn: #3E8E3A;
  --lawn-dark: #1F4D22;
  --muted: #5A6478;
  --rule: #D9CCAE;
  --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%; }
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(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); 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: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.narrow { max-width: 760px; }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.kicker {
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; place-items: center; overflow: hidden; background: #8FA8C0; }
.hero picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,42,68,.55) 0%, rgba(29,42,68,.15) 45%, rgba(29,42,68,.7) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; padding: calc(3rem + env(safe-area-inset-top)) 20px 3rem; }
.hero h1 { margin: 0 auto; max-width: 620px; }
.hero h1 img { width: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.sign {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
  background: #fff; color: var(--ink); font-weight: 800; font-size: .95rem;
  padding: .35rem .9rem .35rem .35rem; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.sign span { background: var(--red); color: #fff; padding: .15rem .55rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; }
.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 600; color: #fff;
  font-size: clamp(1.3rem, 3.4vw, 2rem); text-shadow: 0 2px 10px rgba(0,0,0,.6); margin: .25rem 0 1.25rem;
}
.status {
  display: inline-block; background: var(--gold); color: var(--ink); font-weight: 900;
  padding: .7rem 1.3rem; border-radius: 999px; font-size: 1rem; box-shadow: 0 0 0 3px var(--ink), 0 8px 20px rgba(0,0,0,.35);
}
.status.dark { margin-top: .5rem; }

/* ---------- remarks ---------- */
.remarks { background: var(--paper); text-align: center; }

/* ---------- the catch + receipt ---------- */
.ledger { background: var(--paper-2); border-block: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.receipt {
  margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem 1.6rem 1.1rem;
  box-shadow: 0 14px 30px rgba(29,42,68,.14); transform: rotate(1.2deg);
  font-variant-numeric: tabular-nums;
}
.r-title { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; text-align: center; border-bottom: 2px dashed var(--rule); padding-bottom: .6rem; margin-bottom: .8rem; }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem 0; margin: 0; }
.receipt dd { padding-left: 1rem; }
.receipt dt, .receipt dd { margin: 0; }
.receipt dd { text-align: right; font-weight: 700; }
.receipt .neg { color: var(--red); }
.receipt .tot { border-top: 1px solid var(--rule); padding-top: .5rem; margin-top: .3rem; font-weight: 800; }
.receipt .com { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; color: var(--lawn-dark); }
.receipt figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; text-align: center; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.timeline li {
  background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--lawn); border-radius: 6px; padding: 1.1rem 1rem 1rem;
}
.timeline li:last-child { border-top-color: var(--gold); }
.timeline .t { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--lawn-dark); margin-bottom: .35rem; }
.timeline p { font-size: 1rem; margin: 0; color: #2F3B55; }

/* ---------- gallery ---------- */
.photos { background: var(--ink); color: var(--paper); }
.photos .kicker { color: var(--gold); }
.gallery { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: #0f1729; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }

/* ---------- details sheet ---------- */
.sheet { margin-top: 1.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.sheet dl { margin: 0; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; }
.sheet dt, .sheet dd { margin: 0; padding: .9rem 1.2rem; border-bottom: 1px solid #EFE6D1; }
.sheet dt { background: var(--paper-2); font-weight: 900; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; }
.sheet dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- early access ---------- */
.ea { background: linear-gradient(180deg, var(--lawn) 0%, var(--lawn-dark) 100%); color: #fff; text-align: center; }
.ea .kicker { color: var(--gold); }

/* ---------- footer ---------- */
.foot { background: #141E33; color: #D7DCE6; padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); font-size: 1rem; }
.foot a { color: #fff; }
.studio { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.foot details { border-top: 1px solid #2A3654; padding: .8rem 0; }
.foot summary { cursor: pointer; font-weight: 800; color: #fff; }
.foot details p { margin: .7rem 0 0; color: #C3CAD8; }
.fine { font-size: .875rem; color: #9AA4B8; margin: 1rem 0 0; }

/* ---------- screenshot viewer ---------- */
dialog#viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; overflow: visible; }
dialog#viewer::backdrop { background: rgba(10,15,28,.9); }
dialog#viewer img { max-height: 88vh; width: auto; border-radius: 6px; }
dialog#viewer .close {
  position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; font-weight: 900;
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .receipt { transform: none; max-width: 420px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .hero { min-height: min(78vh, 620px); }
  .timeline { grid-template-columns: 1fr; }
  .timeline li:last-child { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery li:first-child { grid-column: span 2; grid-row: auto; }
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dt { border-bottom: 0; padding-bottom: .1rem; background: #fff; color: var(--red); }
  .sheet dd { padding-top: .1rem; }
  .sheet dl > :nth-last-child(2) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.page404 { min-height: 70vh; display: grid; place-items: center; }
