/* Longdusk — the game's own palette: a dark teal night, the warm amber of the
   suit lamp and the full-expedition mark, and monospaced headings like the
   in-game HUD. System fonts only, so the site loads nothing from anyone else. */
:root {
  --bg: #0b1012;
  --bg-raised: #121a1d;
  --line: #22302f;
  --text: #e7ece9;
  --muted: #9aa8a4;
  --amber: #f2c76b;
  --teal: #5fb3a8;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 0.2em; }
a:hover { color: #ffdf9c; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--mono); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0.2em 0 0.15em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 44rem; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--amber); margin: 0;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg-raised); padding: 0.5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11, 16, 18, 0.92);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.brand img { border-radius: 8px; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #111; background: var(--amber); padding: 0.4rem 0.85rem; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { color: #111; background: #ffdf9c; }

/* Hero: the store header's key art, full bleed, fading into the page. Tall
   enough on a phone that the rocket isn't a sliver; the sides crop, never
   the centre, where the art keeps its subject. */
.hero { text-align: center; padding: 0 0 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(95, 179, 168, 0.16), transparent 60%); }
.hero-art { display: block; width: 100%; height: clamp(15rem, 42.9vw, 36rem); object-fit: cover;
  object-position: 50% 45%; margin-bottom: -2.5rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.hero .wrap { position: relative; }
.hero .icon { width: 128px; margin: 0 auto 1rem; border-radius: 28px;
  box-shadow: 0 18px 50px rgba(242, 199, 107, 0.18); }
.hero .tagline { font-family: var(--mono); color: var(--amber); font-size: 1.15rem; margin: 0 0 1.25rem; }
.hero .pitch { max-width: 38rem; margin: 0 auto 1.75rem; color: var(--text); font-size: 1.15rem; }
.badge { display: inline-block; }
.badge img { width: 180px; height: auto; margin: 0 auto; }
.soon { display: inline-block; font-family: var(--mono); color: var(--amber);
  border: 1px solid rgba(242, 199, 107, 0.45); border-radius: 999px; padding: 0.55rem 1.2rem; margin: 0; }
.hero .note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

/* Trailer loops: the store's app previews, smaller. Native controls let a
   viewer stop them. With reduced motion asked for, the poster still stands
   in, and since each <source> is limited to no-preference, no video is even
   fetched. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; margin: 1rem 0 2rem; }
.clips figure { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.clips video, .clips .still { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #000; }
.clips .still { display: none; }
.clips figcaption { padding: 0.75rem 1rem; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .clips video { display: none; }
  .clips .still { display: block; }
}

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; margin: 1rem 0 0; }
.shots figure { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shots figcaption { padding: 0.75rem 1rem; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.35rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.band { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 0.5rem; }
.trial { background: linear-gradient(180deg, rgba(242, 199, 107, 0.07), transparent);
  border: 1px solid rgba(242, 199, 107, 0.3); border-radius: 16px; padding: 1.5rem 1.6rem; margin-top: 1.25rem; }
.trial p:last-child { margin-bottom: 0; }
.cta { margin-top: 1.5rem; }

/* Support FAQ */
details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.25rem 1.1rem; margin: 0.55rem 0; }
details[open] { padding-bottom: 0.6rem; }
summary { cursor: pointer; padding: 0.7rem 0; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-family: var(--mono); color: var(--amber); display: inline-block; width: 1.3rem; }
details[open] summary::before { content: "−"; }
details p, details ul { margin: 0.3rem 0 0.6rem 1.3rem; color: var(--muted); }
.contact { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; }
.contact .email { font-family: var(--mono); font-size: 1.15rem; }

/* Press kit and news */
.lede { font-size: 1.2rem; }
.button { display: inline-block; font-family: var(--mono); font-weight: 700; color: #111; background: var(--amber);
  padding: 0.6rem 1.15rem; border-radius: 999px; text-decoration: none; }
.button:hover { color: #111; background: #ffdf9c; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.facts div { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1.1rem; }
.facts dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.facts dd { margin: 0.2rem 0 0; }
.downloads { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.6rem; }
.downloads li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1.1rem; }
.downloads .muted { display: block; font-size: 0.9rem; }
.news-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.news-list li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.news-list a { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; }
.news-list time { display: block; color: var(--muted); font-size: 0.9rem; }
.news-list p { margin: 0.4rem 0 0; }
.article-art { border-radius: 14px; border: 1px solid var(--line); margin: 1.5rem 0; }

main { padding-bottom: 3rem; }
.page { padding-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer p { margin: 0.3rem 0; }
.site-footer .social a { margin-right: 0.9rem; }
.site-footer .fine { font-size: 0.8rem; opacity: 0.8; }

@media (max-width: 34rem) {
  .nav ul { gap: 0.9rem; }
  .nav .nav-cta, .nav .nav-wide { display: none; }
}
