/* Get Out of My Woods: the game's own page. Night blue, fog, one red. */
@font-face { font-family: "Rock Salt"; font-weight: 400; font-display: swap; src: url("/assets/fonts/woods/rock-salt-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("/assets/fonts/woods/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("/assets/fonts/woods/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("/assets/fonts/woods/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-weight: 400; font-display: swap; src: url("/assets/fonts/woods/special-elite-latin-400-normal.woff2") format("woff2"); }

:root {
  --night: #04070b;
  --night-2: #0a1017;
  --panel: #0d141d;
  --line: rgba(239, 230, 214, 0.16);
  --ink: #efe6d6;
  --ink-2: #c9c2b4;
  --fog: #8fa9c4;
  --red: #d81e1e;
  --red-hot: #ff3b30;
  --red-deep: #7c0c0c;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --hand: "Rock Salt", "Marker Felt", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.woods {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 19px/1.6 var(--head);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: #000; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #ffd98a; outline-offset: 3px; }

/* ---- top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
  font: 600 15px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase;
}
.top a { text-decoration: none; color: var(--ink); opacity: 0.86; padding: 10px 4px; }
.top a:hover { opacity: 1; }
.top-nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 26px); }
.top .top-play { padding: 10px 16px; border: 1px solid rgba(239, 230, 214, 0.5); opacity: 1; }
.top .top-play:hover { background: var(--red); border-color: var(--red); }

/* ---- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 84px clamp(16px, 5vw, 64px) clamp(52px, 8vh, 96px);
  overflow: hidden;
}
.hero-film { position: absolute; inset: 0; z-index: -3; background: #05090f; }
.hero-video, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.hero-still { display: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.94) 0%, rgba(4, 7, 11, 0.78) 30%, rgba(4, 7, 11, 0.25) 62%, rgba(4, 7, 11, 0.35) 100%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.7) 0%, rgba(4, 7, 11, 0) 22%, rgba(4, 7, 11, 0) 60%, var(--night) 100%),
    radial-gradient(120% 90% at 70% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy { position: relative; width: min(640px, 100%); }
.hero-date {
  display: inline-block; margin-bottom: 18px; padding: 7px 12px 6px;
  background: var(--red); color: #fff;
  font: 700 14px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-place { font: 400 18px/1 var(--type); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }
.hero-title {
  margin: 0.42em 0 22px -6px;
  font: 400 clamp(2.4rem, min(8.4vw, 9.6vh), 6rem)/1.24 var(--hand);
  color: var(--red-hot);
  text-shadow: 0 0 34px rgba(216, 30, 30, 0.45), 0 3px 0 rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg); transform-origin: left bottom;
  text-transform: uppercase;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title span:nth-child(2) { padding-left: 0.5em; }
.hero-line { font: 400 clamp(1.15rem, 2.4vw, 1.45rem)/1.45 var(--type); color: #fff; text-shadow: 0 1px 10px #000; }
.hero-sub { margin-top: 12px; max-width: 34em; color: var(--ink-2); text-shadow: 0 1px 10px #000; }

.hero-actions, .open-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  min-height: 72px; padding: 12px 30px; text-decoration: none; text-align: left;
  border: 1px solid rgba(239, 230, 214, 0.45); background: rgba(4, 7, 11, 0.55); color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-big { font: 700 1.45rem/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; }
.btn-small { font: 400 0.92rem/1.2 var(--head); letter-spacing: 0.06em; color: var(--ink-2); }
.btn-play {
  border-color: var(--red-hot); background: linear-gradient(180deg, #e02626, #a81212);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 10px 40px rgba(216, 30, 30, 0.42);
  padding-inline: 44px;
}
.btn-play .btn-big { font-size: 1.9rem; color: #fff; }
.btn-play .btn-small { color: #ffd9d4; }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(239, 230, 214, 0.1); }
.btn-play:hover { background: linear-gradient(180deg, #ff3b30, #c41616); border-color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 14px 54px rgba(255, 59, 48, 0.6); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.hero-tags li {
  padding: 6px 11px 5px; border: 1px solid var(--line); background: rgba(4, 7, 11, 0.5);
  font: 600 13px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.content-warning { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--red); font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.content-warning .warning-label { display: block; font: 700 12px/1.6 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-hot); }
.content-warning strong { color: var(--ink); font-weight: 600; }
.hero-down {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none;
  color: var(--ink); opacity: 0.7; font-size: 22px; animation: nod 2.4s ease-in-out infinite;
}
@keyframes nod { 50% { transform: translate(-50%, 6px); } }

/* ---- bands */
.band { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.kicker { font: 400 16px/1.3 var(--type); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 14px; }
.band h2 { font: 700 clamp(2rem, 5vw, 3.4rem)/1.08 var(--head); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; max-width: 18em; }
.lede { margin-top: 20px; max-width: 42em; font-size: 1.16rem; color: var(--ink-2); }

.night { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px 26px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.step-n { display: block; font: 400 2.6rem/1.3 var(--hand); color: var(--red-hot); margin-bottom: 6px; }
.steps h3 { font: 700 1.5rem/1.15 var(--head); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.steps p { margin-top: 10px; color: var(--ink-2); }

.shots { background: var(--night-2); padding-top: 0; }
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot { position: relative; overflow: hidden; background: #000; border: 1px solid var(--line); }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.shot-wide img { aspect-ratio: 21 / 9; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 14px;
  background: linear-gradient(180deg, rgba(4, 7, 11, 0), rgba(4, 7, 11, 0.92));
  font: 400 1.12rem/1.25 var(--type); color: #fff; letter-spacing: 0.04em;
}
.shots-cta { display: flex; justify-content: center; margin-top: 44px; }

.inside { background: linear-gradient(180deg, var(--night-2), var(--night)); padding-top: 0; }
.inside-film { position: relative; isolation: isolate; min-height: clamp(380px, 56vw, 640px); display: flex; align-items: flex-end; overflow: hidden; margin-bottom: clamp(36px, 6vw, 64px); }
.inside-film img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.inside-film::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night-2) 0%, rgba(10, 16, 23, 0) 22%, rgba(4, 7, 11, 0) 55%, rgba(6, 10, 15, 0.96) 100%), linear-gradient(90deg, rgba(4, 7, 11, 0.8), rgba(4, 7, 11, 0) 60%); }
.inside-film .wrap { padding-bottom: clamp(20px, 4vw, 44px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards li { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards h3 { font: 700 1.25rem/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.cards h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 14px; }
.cards p { margin-top: 8px; color: var(--ink-2); font-size: 1.02rem; }

.how { background: var(--night); border-top: 1px solid var(--line); }
.how-grid, .open-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.keys { margin-top: 28px; display: grid; gap: 20px; }
.keys dt { font: 700 1.05rem/1.2 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); margin-bottom: 4px; }
.keys dd { color: var(--ink-2); }
.survive { padding: 28px 26px; background: var(--panel); border: 1px solid var(--line); }
.survive ul { display: grid; gap: 12px; }
.survive li { position: relative; padding-left: 22px; color: var(--ink); }
.survive li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 3px; background: var(--red); }

.open { background: radial-gradient(90% 120% at 12% 0%, rgba(124, 12, 12, 0.34), rgba(4, 7, 11, 0) 60%), var(--night-2); border-top: 1px solid var(--line); }
.open .btn { min-height: 68px; }
.note { padding: 28px 26px; background: rgba(4, 7, 11, 0.6); border: 1px solid var(--line); }
.note h3 { font: 700 1.6rem/1.15 var(--head); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.note p { margin-top: 10px; color: var(--ink-2); }
.mail { font: 400 1.15rem/1.4 var(--type); color: #fff; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.mail:hover { color: var(--red-hot); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.share-button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 14px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.share-button:hover { border-color: var(--ink); }
.share-status { font-size: 0.9rem; color: var(--fog); min-height: 1.2em; }

.foot { padding: 44px 0 max(44px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #020406; color: var(--ink-2); font-size: 0.92rem; }
.foot p { margin-top: 8px; max-width: 60em; }
.foot-title { font: 400 1.3rem/1.4 var(--hand); color: var(--red-hot); margin-top: 0; }
.foot-meta a { color: var(--ink); }

/* ---- smaller screens */
@media (max-width: 860px) {
  body.woods { font-size: 18px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .how-grid, .open-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  /* The picture sits on top, the words below it, and Play stays on the first screen. */
  .hero { align-items: flex-start; padding-top: 38vh; padding-top: 38svh; padding-bottom: 40px; min-height: 0; }
  .hero-film { inset: 0 0 auto 0; height: 58vh; height: 58svh; }
  .hero-video, .hero-still { object-position: 70% 40%; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0, rgba(4, 7, 11, 0) 12vh, rgba(4, 7, 11, 0.08) 30vh, var(--night) 55vh);
    background: linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0, rgba(4, 7, 11, 0) 12svh, rgba(4, 7, 11, 0.08) 30svh, var(--night) 55svh);
  }
  .hero-date { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 12px; }
  .hero-place { font-size: 15px; }
  .hero-title { margin-left: 0; margin-bottom: 16px; font-size: clamp(2.1rem, 11vw, 2.9rem); }
  .hero-sub, .hero-down { display: none; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn, .open-actions .btn { width: 100%; align-items: center; text-align: center; }
  .top { letter-spacing: 0.12em; font-size: 13px; }
  .inside-film img { object-position: 84% 50%; }
}
@media (max-width: 620px) and (max-height: 620px) {
  .hero { padding-top: 26vh; padding-top: 26svh; }
  .hero-film { height: 46vh; height: 46svh; }
  .hero-shade { background: linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0, rgba(4, 7, 11, 0) 10svh, rgba(4, 7, 11, 0.1) 22svh, var(--night) 43svh); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero { padding-top: 58px; padding-bottom: 22px; align-items: flex-end; }
  .hero-title { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin: 0.5em 0 10px 0; transform: rotate(-2deg); }
  .hero-title span { display: inline; }
  .hero-title span:nth-child(2) { padding-left: 0; }
  .hero-date { margin-bottom: 8px; font-size: 12px; }
  .hero-place { font-size: 14px; }
  .hero-line { font-size: 1.05rem; }
  .hero-sub, .hero-tags, .hero-down, .hero .content-warning { display: none; }
  .hero-actions { margin-top: 12px; flex-wrap: nowrap; }
  .hero-actions .btn { width: auto; min-height: 58px; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-still { display: block; }
  .hero-down { animation: none; }
  .btn, .shot img { transition: none; }
}
