/* Fisher's Ghost Studios — one stylesheet, no build step. */
:root {
  --bg: #0e1116;
  --bg-2: #141922;
  --panel: #161c26;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ece7db;
  --muted: #9aa4b1;
  --wisp: #9fe8c6;
  --wisp-deep: #5ec9a3;
  --amber: #f0b64a;
  --danger: #ff8a7a;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --max: 1040px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The hero glow bleeds past the right edge on purpose; clip rather than scroll. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--wisp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.45rem; font-variation-settings: "opsz" 36; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--wisp); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.top nav { display: flex; gap: 6px; }
.top nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-size: 0.95rem;
}
.top nav a:hover { color: var(--text); background: var(--bg-2); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 96px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -15% auto auto; z-index: -1;
  width: min(70vw, 760px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(241, 231, 207, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); max-width: 34ch; }
/* The 1924 print: feathered to transparent, so it sits straight on the page. */
.hero-art { width: min(100%, 560px); height: auto; margin-inline: auto; }
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .hero-art { margin-inline: auto 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: haunt 9s ease-in-out infinite; }
  @keyframes haunt { 0%, 100% { opacity: 0.86; } 50% { opacity: 1; } }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--wisp); color: var(--bg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #fff; color: var(--bg); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--bg-2); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .art {
  height: 150px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--art-a, #1d2633), var(--art-b, #10151d));
}
.card .art img, .card .art svg { width: 104px; height: 104px; object-fit: contain; }
.card h3 { margin: 4px 0 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); }
.chip.live { --dot: var(--wisp); color: var(--wisp); border-color: rgba(159, 232, 198, 0.3); }
.chip.soon { --dot: var(--amber); color: var(--amber); border-color: rgba(240, 182, 74, 0.3); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 24px 48px; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 1fr 1.6fr; } }
.about-grid p { font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px 56px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }

form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, textarea {
  font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--wisp); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); }
.form-status.ok { color: var(--wisp); }
.form-status.err { color: var(--danger); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--muted); }
footer .credit { flex-basis: 100%; margin: 8px 0 0; font-size: 0.85rem; color: #6f7986; }
footer .credit a { color: inherit; }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.simple .hero-art { margin: 0 auto 8px; width: min(100%, 380px); }
