/* Cyber Creek Studios
   Studio chrome: the Cyber Creek brand (cyber-creek-brand repo): cool near-black ground,
   electric creek aqua, sunset orange from the bunny mark. Quiet and mark-led.
   Game section: Purgatorium's own palette (stone, gold, brass) and type (Cinzel, JetBrains Mono). */

:root {
  /* studio */
  --bg: #0b0e0f;      /* brand ground */
  --bg-2: #0f1416;
  --line: #1c2628;
  --text: #dde6e3;    /* brand text */
  --muted: #8a9793;   /* brand muted #74817d, lifted for AA on body copy */
  --teal: #2fc6b4;    /* brand creek accent */
  --green: #9ceee2;   /* brand bright tint (hover, highlights) */
  --sunset: #f4a263;  /* bunny-mark orange */

  /* Purgatorium (from docs/design/brand/README.md §3) */
  --pg-ground: #0c0b0d;
  --pg-gold: #d9a34a;
  --pg-brass: #b08d57;
  --pg-text: #e8dcc2;
  --pg-gold-text: #d2b074;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .form/.card set display, which would beat the attribute */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }

.eyebrow {
  font: 500 13px/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, (100% - var(--wrap)) / 2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { border-radius: 8px; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font: 700 18px "Space Grotesk", sans-serif; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--teal); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 860px); display: flex; align-items: center;
  padding: clamp(90px, 13vw, 150px) 0 clamp(80px, 11vw, 130px);
  background: var(--bg) image-set(url("assets/brand/creek-scene-2000.webp") type("image/webp"), url("assets/brand/creek-scene-2000.jpg") type("image/jpeg")) center / cover no-repeat;
}
@media (max-width: 900px) {
  .hero { background-image: image-set(url("assets/brand/creek-scene-1200.webp") type("image/webp"), url("assets/brand/creek-scene-1200.jpg") type("image/jpeg")); background-position: 70% center; }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 15, .94) 0%, rgba(11, 14, 15, .82) 34%, rgba(11, 14, 15, .35) 62%, rgba(11, 14, 15, .05) 82%),
    linear-gradient(to bottom, rgba(11, 14, 15, .55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(to bottom, rgba(11, 14, 15, .45), rgba(11, 14, 15, .82) 40%, var(--bg)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero-mark { width: 88px; height: 88px; padding: 6px; border-radius: 20px; margin-bottom: 26px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

.hero-inner { position: relative; }
.lede { max-width: 560px; font-size: clamp(18px, 2vw, 21px); color: #b9c4c0; margin: 0 0 34px; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font: 500 15px "Space Grotesk", sans-serif; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #04201c; }
.btn-primary:hover { background: var(--green); }
.btn-ghost { border: 1px solid rgba(221, 230, 227, .28); color: var(--text); background: rgba(11, 14, 15, .35); }
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- game (Purgatorium palette) ---------- */
.game { background: var(--pg-ground); color: var(--pg-text); border-block: 1px solid #241f18; }
.game-art { position: relative; }
.game-art img { width: 100%; height: clamp(260px, 52vw, 620px); object-fit: cover; }
.game-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--pg-ground));
}
.game-body { position: relative; margin-top: clamp(-120px, -9vw, -40px); padding-bottom: clamp(70px, 9vw, 110px); }
.game-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.emblem { width: clamp(72px, 9vw, 96px); height: auto; border-radius: 50%; box-shadow: 0 0 40px rgba(217, 163, 74, .25); flex: none; }
.game-status, .genre {
  font: 400 12px/1.4 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pg-brass); margin: 0;
}
.wordmark {
  font: 700 clamp(30px, 5.6vw, 58px)/1.05 Cinzel, serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pg-text); text-shadow: 0 0 44px rgba(217, 163, 74, .3); margin: 8px 0 8px;
}
.wordmark span {
  display: inline-block; margin-left: .5em; vertical-align: middle;
  font: 300 .26em "JetBrains Mono", monospace; letter-spacing: .42em; color: var(--pg-brass);
}
.tagline { font: 600 clamp(22px, 3vw, 30px)/1.3 Cinzel, serif; letter-spacing: .04em; color: var(--pg-gold-text); margin: 0 0 16px; }
.pitch { max-width: 720px; color: #cfc4ad; margin: 0 0 44px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.features li {
  padding: 20px 22px; border: 1px solid #2a241b; border-radius: var(--radius);
  background: linear-gradient(180deg, #131114, #0e0c0f);
}
.features strong { display: block; font: 600 17px Cinzel, serif; letter-spacing: .04em; color: var(--pg-gold); margin-bottom: 4px; }
.features span { font-size: 15px; color: #b9ae98; }

/* ---------- studio ---------- */
.studio { padding: clamp(80px, 11vw, 130px) 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.studio-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.studio-copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 11vw, 130px) 0; text-align: center; }
.contact p { color: var(--muted); margin: 0 0 26px; }
.email {
  display: inline-block; font: 500 clamp(19px, 3vw, 28px) "Space Grotesk", sans-serif;
  color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--green); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { gap: 12px; }
  .site-header nav a[href="#studio"] { display: none; } /* 4 links + brand overflow a 375px phone */
  .brand em { display: none; }
  .game-head { flex-direction: column; align-items: flex-start; }
  .wordmark span { display: block; margin: 10px 0 0; font-size: 12px; }
  .site-header nav a { font-size: 14px; }
}

/* ---------- inner pages (playtest / access / privacy) ---------- */
.page { padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 120px); }
.narrow { max-width: 720px; }
.page-title { font-size: clamp(34px, 5.5vw, 56px); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #11181a, #0d1213);
  padding: clamp(20px, 3vw, 28px); margin-bottom: 16px;
}
.card h3 { font: 700 19px "Space Grotesk", sans-serif; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.hint { font-size: 14px; color: var(--muted); }
.inline-link { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--green); }
code { font: 400 .92em "JetBrains Mono", monospace; background: #13201f; padding: 1px 6px; border-radius: 6px; }

.form { display: grid; gap: 8px; margin-top: 28px; }
.form label { font: 500 14px "Space Grotesk", sans-serif; color: var(--text); margin-top: 8px; }
.form input {
  font: 400 17px Inter, sans-serif; color: var(--text); background: #080b0c;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.form input#code { font-family: "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94, 234, 212, .15); }
.form .btn { justify-self: start; margin-top: 14px; border: 0; cursor: pointer; }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { min-height: 1.4em; margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.form-status.is-error { color: #f59e8b; }

.result { margin-top: 10px; }
.result-head { margin-bottom: 18px; }
.result-head h2 { font-size: clamp(26px, 4vw, 36px); }
.steps { margin: 0; padding-left: 22px; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.steps strong, .steps em { color: var(--text); }

.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 56px; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 5vw, 60px); margin-bottom: 40px; }
.two-up h2 { font-size: clamp(24px, 3vw, 30px); }
.step-num { font: 700 14px "JetBrains Mono", monospace; color: var(--teal) !important; letter-spacing: .1em; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

.playtest-hero { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px); background:
  linear-gradient(to bottom, rgba(12, 11, 13, .55), var(--pg-ground)),
  url("/assets/purgatorium-world.jpg") center 40% / cover no-repeat; }
.playtest-hero .wordmark { margin-top: 14px; }
.btn-gold { background: linear-gradient(135deg, #e3b964, var(--pg-gold)); color: #1c1407; }
.btn-ghost-gold { border: 1px solid #4a3d27; color: var(--pg-text); }
.btn-ghost-gold:hover { border-color: var(--pg-gold); }

.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p { color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); }
.site-header nav a[aria-current="page"] { color: var(--teal); }

/* the home "join the playtest" band */
.playtest-band { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 24px; border: 1px solid #2a241b; border-radius: var(--radius); background: #100e10; }
.playtest-band p { margin: 0; flex: 1 1 280px; color: #cfc4ad; }
