:root {
  /* cheeky thesis — brand chrome: white, black, blush/peach, orange, yellow */
  --bg: #fffcf8;
  --bg-raised: #ffeadf;
  --line: rgba(22, 18, 15, 0.12);
  --line-strong: rgba(22, 18, 15, 0.22);
  --ink: #16120f;
  --ink-dim: #6a5f57;
  --brand-yellow: #ffe9b8;
  --brand-yellow-line: #f0cd74;
  --brand-yellow-ink: #5c3d00;
  --brand-pink-wash: #fff1f5;

  /* critbreaker — game accents: blue/green and red-orange */
  --crit: #0d8d7d;
  --link: #0a7264;
  --cta: #f2621d;
  --cta-ink: #2b1206;
  --danger: #e0402a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

/* nav */
.site-nav {
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  color: var(--ink-dim);
  display: flex;
  transition: color 0.15s ease;
}
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--ink);
}

/* hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, var(--line) 27px, var(--line) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 63px, var(--line) 63px, var(--line) 64px);
  background-position: 0 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--brand-yellow-ink);
  background: var(--brand-yellow);
  border: 1px solid var(--brand-yellow-line);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.lede {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 40ch;
  margin: 0 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}
.btn-primary:hover { background: #ff7736; }
.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--bg-raised); }

.hero-media { position: relative; }

/* trailer — click-to-load facade, kept portrait to match the Short
   (1080x1924) and capped so it doesn't tower over the hero copy */
.video-embed {
  display: block;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 336 / 599;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.video-embed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
iframe.video-embed { border: 0; }
.video-embed-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(19, 17, 20, 0.28);
  transition: background 0.15s ease, color 0.15s ease;
}
.video-embed:hover .video-embed-play,
.video-embed:focus-visible .video-embed-play {
  background: rgba(19, 17, 20, 0.12);
  color: #ffffff;
}

/* jagged divider — signature element, brick-crack motif */
.highlights {
  position: relative;
  clip-path: polygon(0 14px, 4% 0, 9% 12px, 15% 2px, 22% 13px, 30% 1px, 38% 11px, 46% 3px, 54% 12px, 62% 0, 70% 13px, 78% 2px, 86% 11px, 93% 1px, 100% 12px, 100% 100%, 0 100%);
  background: var(--bg-raised);
  padding-top: 44px;
}
.highlights-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 12px 24px 48px;
}
.highlight svg { color: var(--crit); }
.highlight-danger svg { color: var(--danger); }
.highlight h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 12px 0 4px;
}
.highlight p {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin: 0;
}

/* gallery */
.gallery { padding: 56px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* captures are 761x599 with the portrait play area letterboxed in the
   middle — cover-cropping to 336/599 trims the grey bars back off */
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;          /* let aspect-ratio win over the height attribute */
  aspect-ratio: 336 / 599;
  object-fit: cover;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* legal / prose pages */
.legal { padding: 56px 0 72px; }
.legal h1 {
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.legal .updated {
  color: var(--ink-dim);
  font-size: 13.5px;
  margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin: 32px 0 8px;
}
.legal p,
.legal li {
  color: var(--ink-dim);
  font-size: 15px;
}
.legal p { margin: 0 0 12px; max-width: 68ch; }
.legal ul { margin: 0 0 16px; padding-left: 20px; max-width: 68ch; }
.legal li { margin-bottom: 5px; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a {
  color: var(--link);
  overflow-wrap: anywhere;
}
.legal a:hover { color: var(--ink); }

/* forms */
.form { max-width: 620px; margin-top: 28px; }
.field { margin-bottom: 24px; }
.field label,
.field .label-text {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .optional { color: var(--ink-dim); font-weight: 400; font-family: var(--font-body); }
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--crit);
  outline-offset: 1px;
  border-color: var(--crit);
}
.field-note { color: var(--ink-dim); font-size: 12.5px; margin: 6px 0 0; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-dim);
  font-size: 14px;
  background: var(--bg-raised);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover,
.dropzone.is-over { background: #ffe0d0; border-color: var(--cta); }
.dropzone:focus-visible { outline: 2px solid var(--crit); outline-offset: 2px; }

.previews { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.previews li { position: relative; width: 84px; }
.previews img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.preview-name {
  display: block;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.preview-remove:focus-visible { outline: 2px solid var(--crit); outline-offset: 2px; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.form-status { font-size: 13.5px; color: var(--ink-dim); margin: 0; }
.form-status.is-ok { color: var(--crit); }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* closing */
.closing {
  border-top: 1px solid var(--line);
  background: var(--brand-pink-wash);
  padding: 44px 0;
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.closing-inner p {
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 44ch;
  margin: 0;
}
.btn-secondary { white-space: nowrap; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--ink-dim);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--ink); }

/* focus visibility */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--crit);
  outline-offset: 2px;
}

/* responsive */
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .highlights-inner { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { max-width: 280px; margin: 0 auto; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .video-embed-play { transition: none; }
  .site-footer a { transition: none; }
  .dropzone { transition: none; }
}
