/* owlnightstudio.com — Sunless Grove. Tokens: docs/BRAND.md §2–3. Built by tools/site/build.py (font URLs are substituted). */

@font-face {
  font-family: "Alegreya SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/alegreya-sc-bold.300bca0d.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/manrope.95f042a4.woff2") format("woff2");
}

:root {
  --night1: #0b0a14;
  --night2: #151327;
  --night3: #1f1d3a;
  --bone: #e8dcc5;
  --linen: #b8aa8e;
  --amber: #f2a93b;
  --moon: #c5283d;
  --poison: #57d97a;
  --line: rgba(232, 220, 197, 0.14);
  --line-strong: rgba(232, 220, 197, 0.32);
  --font-display: "Alegreya SC", "Vollkorn SC", Georgia, serif;
  --font-body: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --track: 0.04em;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night1); color: var(--bone); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  font-feature-settings: "tnum";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) { body { font-size: 18px; } }
main { flex: 1 0 auto; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
::selection { background: var(--amber); color: var(--night1); }
a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgba(242, 169, 59, 0.5); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  color: var(--bone);
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--amber); color: var(--night1); padding: 8px 14px; border-radius: 6px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }
.label { font: 600 0.78rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--linen); }

/* header */
.top { padding: 18px 0; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top__logo img { height: 24px; width: auto; }
@media (min-width: 700px) { .top__logo img { height: 30px; } }
.top__nav { display: flex; gap: clamp(18px, 3vw, 32px); }
.top__nav a, .foot__nav a {
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--linen);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.top__nav a:hover, .foot__nav a:hover { color: var(--bone); }
.top__nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--amber); }

/* buttons + inputs */
.btn {
  display: inline-block;
  font: 700 1.05rem/1 var(--font-display);
  letter-spacing: var(--track);
  padding: 15px 24px 14px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn--primary { background: var(--amber); color: var(--night1); box-shadow: inset 0 0 0 2px rgba(11, 10, 20, 0.22), 0 1px 0 rgba(0, 0, 0, 0.45); }
.btn--primary:hover { background: color-mix(in srgb, var(--amber) 86%, var(--bone)); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary[disabled] { opacity: 0.6; cursor: default; }
.btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-strong); padding: 14px 23px 13px; }
.btn--ghost:hover { border-color: var(--bone); }
.input {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--bone);
  background: var(--night2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 13px 14px;
  min-height: 48px;
}
.input::placeholder { color: rgba(184, 170, 142, 0.6); }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.22); }
textarea.input { resize: vertical; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 0.95rem/1.4 var(--font-body); margin-bottom: 6px; }
.field__hint { font-weight: 400; color: var(--linen); }
.field--row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* subscribe form */
.subscribe { position: relative; max-width: 560px; }
.subscribe__row { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe__row .input { flex: 1 1 220px; }
@media (max-width: 480px) { .subscribe__row { flex-direction: column; } .subscribe__row .btn { width: 100%; } }
.subscribe__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.subscribe__note { font-size: 0.85rem; color: var(--linen); margin: 10px 0 0; }
.subscribe__status { font-size: 0.95rem; margin: 8px 0 0; }
.subscribe__status:empty { display: none; }
.subscribe__status.is-ok { color: var(--poison); }
.subscribe__status.is-err { color: var(--amber); }
.subscribe.is-done .subscribe__row, .subscribe.is-done .subscribe__note { display: none; }
.delete.is-done .field { opacity: 0.55; }

/* hero */
.hero { position: relative; }
.hero__art { position: relative; }
.hero__art::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to bottom, rgba(11, 10, 20, 0) 0%, rgba(11, 10, 20, 0.5) 50%, var(--night1) 100%);
  pointer-events: none;
}
@media (min-width: 701px) { .hero__art::after { height: 42%; } }
.hero__art img { width: 100%; height: auto; }
/* phones: keep the moon and the heroes in the first screen, crop only sky and grass (portrait safe zones) */
@media (max-width: 700px) { .hero__art img { height: min(76svh, 100vh); object-fit: cover; object-position: 50% 18%; } }
/* the text overlaps only the key-art's safe zone (bottom 12 % portrait / 25 % landscape — BRAND §6) */
.hero__text { position: relative; margin-top: -16vw; text-align: center; max-width: 760px; }
@media (min-width: 701px) { .hero__text { margin-top: -7vw; } }
@media (min-width: 1400px) { .hero__text { margin-top: -100px; } }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 5vw, 3.75rem); text-shadow: 0 2px 24px rgba(11, 10, 20, 0.9); }
.hero__lead { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem); color: var(--linen); max-width: 36ch; margin: 18px auto 26px; text-wrap: pretty; }
.hero__cta .subscribe { margin-inline: auto; }
.hero__soon { font: 600 0.85rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); margin-bottom: 14px; }

/* stores */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stores__badge { display: inline-block; }
.stores__badge img { height: 48px; width: auto; }

/* sections */
.section__title { text-align: center; }
.section__lead { text-align: center; color: var(--linen); max-width: 60ch; margin: 14px auto 0; text-wrap: pretty; }
.features { padding: clamp(56px, 8vw, 96px) var(--gutter); }
.features__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; }
@media (min-width: 800px) { .features__list { grid-template-columns: repeat(3, 1fr); } }
.feature { text-align: center; }
.feature__glyph { width: 96px; height: 96px; margin: 0 auto 18px; image-rendering: pixelated; image-rendering: crisp-edges; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--linen); margin: 0; max-width: 34ch; margin-inline: auto; text-wrap: pretty; }

.heroes { background: var(--night2); padding: clamp(56px, 8vw, 96px) 0; border-block: 1px solid var(--line); }
.heroes__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 720px) { .heroes__list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.hero-card { text-align: center; }
.hero-card picture { display: flex; justify-content: center; align-items: flex-end; height: 300px; }
@media (min-width: 720px) { .hero-card picture { height: 340px; } }
.hero-card img { height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.hero-card__name { font-size: 1.6rem; margin-top: 18px; }
.hero-card__title { display: block; font: 600 0.78rem/1.6 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
.hero-card__line { color: var(--linen); max-width: 30ch; margin: 8px auto 0; text-wrap: pretty; }
.heroes__bosses { text-align: center; margin: 44px 0 0; color: var(--linen); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; }
.heroes__bosses .label { width: 100%; margin-bottom: 6px; }
.heroes__bosses strong { color: var(--bone); font-weight: 600; }
.boss { display: block; width: 100%; }
@media (min-width: 600px) {
  .boss { display: inline; width: auto; }
  .boss + .boss::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--linen); transform: rotate(45deg); margin: 0 16px; vertical-align: middle; opacity: 0.55; }
}

.screens { padding: clamp(56px, 8vw, 96px) 0 0; }
.screens__strip {
  list-style: none; margin: 40px 0 0; padding: 0 var(--gutter) 8px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--night3) transparent;
}
.screen { flex: 0 0 auto; width: min(66vw, 300px); scroll-snap-align: center; }
.screen img { border-radius: 18px; border: 1px solid var(--line); background: var(--night2); }
/* centred when the strip fits, still scrollable from the first frame when it does not */
.screen:first-child { margin-left: auto; }
.screen:last-child { margin-right: auto; }

.video { padding-top: clamp(56px, 8vw, 96px); }
.video__frame { aspect-ratio: 16 / 9; margin-top: 32px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--night2); }
.video__frame iframe { width: 100%; height: 100%; border: 0; }

.signup { padding: clamp(56px, 8vw, 96px) var(--gutter); }
.signup__box { background: var(--night2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); max-width: 820px; }
.signup__box .subscribe { margin: 28px auto 0; }

/* footer */
.foot { padding: 24px 0 40px; margin-top: 8px; }
.rule { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule--mark img { width: 20px; height: 20px; opacity: 0.7; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .foot__grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot__studio { font: 700 1.2rem/1.2 var(--font-display); letter-spacing: var(--track); margin: 0 0 8px; }
.foot__muted { color: var(--linen); font-size: 0.95rem; margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__copy { font-size: 0.8rem; color: var(--linen); opacity: 0.8; margin: 32px 0 0; max-width: 72ch; }

/* documents (privacy, terms, support, press, delete) */
.doc__wrap { max-width: 800px; padding-top: 12px; padding-bottom: 32px; }
.doc__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.9rem; color: var(--linen); }
.doc__meta p { margin: 0; }
.doc__toc { margin: 8px 0 28px; }
.doc__toc summary { cursor: pointer; font: 600 0.8rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--linen); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.doc__toc summary::-webkit-details-marker { display: none; }
.doc__toc summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 120ms; }
.doc__toc details[open] summary::before { transform: rotate(45deg); }
.doc__toc ul { list-style: none; padding-left: 0; margin: 10px 0 0; font-size: 0.95rem; }
.doc__toc ul ul { padding-left: 18px; }
.doc__toc li { margin: 4px 0; }
.doc__toc a { color: var(--linen); text-decoration: none; }
.doc__toc a:hover { color: var(--bone); }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); margin: 0 0 20px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li p { margin: 0; }
.prose strong { font-weight: 700; color: var(--bone); }
.prose em { color: var(--bone); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--linen); font-weight: 600; letter-spacing: 0.04em; }
.prose blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--linen); }
.prose code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.9em; background: var(--night2); padding: 1px 5px; border-radius: 4px; }
.prose > :first-child { margin-top: 0; }

.form-card, .contact-card { background: var(--night2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 4vw, 40px); margin-top: 40px; max-width: 70ch; }
.form-card h2, .contact-card h2 { font-size: 1.5rem; margin: 0 0 12px; }
.contact-card .btn { margin: 6px 0 18px; }

.press h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.press h3 { font-size: 1.2rem; margin: 1.6em 0 0.6em; }
.facts { display: grid; gap: 8px 24px; margin: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--linen); font-size: 0.9rem; }
.facts dd { margin: 0; }
.asset-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .asset-grid { grid-template-columns: repeat(4, 1fr); } .asset-grid--wide { grid-template-columns: repeat(3, 1fr); } }
.asset-grid a { display: block; text-decoration: none; color: var(--linen); font-size: 0.85rem; }
.asset-grid img { border-radius: 8px; border: 1px solid var(--line); background: var(--night2); margin-bottom: 6px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.asset-grid--tall img { aspect-ratio: 1179 / 2556; }
.asset-grid a:hover { color: var(--bone); }
.asset-list { list-style: none; margin: 0; padding: 0; }
.asset-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.notice { text-align: center; padding-top: clamp(40px, 10vw, 96px); padding-bottom: clamp(40px, 10vw, 96px); }
.notice__eyebrow { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.2em; color: var(--linen); margin-bottom: 18px; }
.notice__lead { color: var(--linen); max-width: 52ch; margin: 18px auto 28px; text-wrap: pretty; }
