/* ViceCrush — the studio site. Colours are the Bluewater palette's (tools/gen_art.py):
   ui for night, rose and caution for the dawn, deep and foam for the water. */
:root {
  --night: #10141c; --night-2: #1e2530; --ink: #e2f1f4; --body: #c3d2dc; --dim: #8a97a8;
  --dawn: #e0a34c; --rose: #b98a8e; --ember: #d4574a; --deep: #0d1b2a; --sea: #24506f;
  --foam: #9ac5d2; --line: #2a3644; --good: #6fae5f;
  --wrap: 68rem; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--body);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--dawn); text-underline-offset: .18em; }
a:hover { color: #f0bd6e; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow {
  font: 700 .78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dawn); margin-bottom: .9rem;
}
.intro { font-size: 1.2rem; max-width: 46rem; color: var(--body); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--dawn); color: var(--night);
  padding: .5rem .8rem; border-radius: 6px; z-index: 50; font-weight: 700; }
.skip:focus { left: .5rem; }

/* --- the wordmark ------------------------------------------------------- */
.wordmark { font: 900 1.25rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; }
.wordmark .vice { color: var(--ink); }
.wordmark .crush { color: var(--dawn); }
.wordmark.small { font-size: 1rem; }

/* --- header ------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(16, 20, 28, .92), rgba(16, 20, 28, .55) 70%, transparent);
  backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
nav { display: flex; gap: clamp(.6rem, 2.5vw, 1.6rem); flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav .nav-help { color: var(--dawn); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100svh, 56rem); display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.dawn {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
/* A shade behind the words, so they read over the brightest bands of the sky. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 20, 28, .82) 0%, rgba(16, 20, 28, .55) 38%, transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 27, 42, .55) 70%, var(--night));
}
.hero-copy { width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto; padding: 0 0 clamp(3rem, 9vh, 6rem); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; max-width: 14ch;
  text-shadow: 0 2px 18px rgba(10, 13, 18, .6);
}
.hero h1 em { font-style: normal; color: var(--dawn); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 38rem; color: var(--ink);
  text-shadow: 0 1px 10px rgba(10, 13, 18, .8); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; padding: .85rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--dawn); color: var(--night); }
.button.primary:hover { background: #f0bd6e; color: var(--night); }
.button.ghost { color: var(--ink); border: 1px solid rgba(226, 241, 244, .4); background: rgba(16, 20, 28, .35); }
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }

/* --- sections ----------------------------------------------------------- */
section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.mission { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.pillars { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.6rem; }
.pillar {
  background: rgba(16, 20, 28, .65); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.3rem; position: relative; overflow: hidden;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--dawn), var(--rose)); }
.pillar-mark { font: 700 .8rem/1 ui-monospace, monospace; color: var(--dim); letter-spacing: .14em; }
.pillar h3 { margin-top: .8rem; }
.pillar p { margin: 0; }

.game { background: radial-gradient(120% 80% at 80% 0%, #12293f 0%, var(--deep) 55%, var(--night) 100%); }
.game-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr 1fr; align-items: center; }
.features { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem;
  background: var(--dawn); transform: rotate(45deg); }
.features b { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: .55rem; font: 600 .9rem/1.3 ui-monospace, monospace;
  color: var(--foam); border: 1px solid #336b8a; padding: .55rem .85rem; border-radius: 999px; margin: .4rem 0 0; }
.status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 10px var(--good); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }
.game-art { margin: 0; display: grid; gap: .9rem; }
.game-art img {
  width: 100%; height: auto; display: block; border-radius: 10px; image-rendering: pixelated;
  border: 1px solid #24506f; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.game-art .play-art { width: 74%; justify-self: end; margin-top: -4%; position: relative; }
.game-art figcaption { font-size: .85rem; color: var(--dim); }

/* Real frames from the game, at whole-pixel scale. */
.gallery { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto;
  margin-top: clamp(2.5rem, 6vw, 4rem); }
.shot { margin: 0; }
.shot.wide { grid-row: span 2; }
.shot img { width: 100%; height: auto; display: block; image-rendering: pixelated;
  border-radius: 8px; border: 1px solid #24506f; background: #10141c; }
.shot figcaption { font-size: .88rem; color: var(--dim); margin-top: .45rem; }
@media (max-width: 52rem) { .gallery { grid-template-columns: 1fr; } .shot.wide { grid-row: auto; } }

.help { background: var(--night-2); border-top: 1px solid var(--line); }
.emergency { color: var(--ink); background: rgba(212, 87, 74, .14); border: 1px solid rgba(212, 87, 74, .55);
  border-radius: 10px; padding: .8rem 1rem; display: inline-block; }
.lines { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.lines li { background: rgba(16, 20, 28, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.lines h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.lines p { margin: 0; font-size: .97rem; }

.foot { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 52rem) {
  .game-grid { grid-template-columns: 1fr; }
  .top nav a:not(.nav-help):not(.nav-keep) { display: none; }
}

/* --- inner pages: stories and press ------------------------------------- */
.page { padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(120% 60% at 70% 0%, #33202b 0%, var(--night) 60%); }
.page h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 900; max-width: 18ch; }
.page h1 em { font-style: normal; color: var(--dawn); }
.page .lede { color: var(--body); text-shadow: none; }
.prose { width: min(100% - 2.5rem, 42rem); margin: 0 auto; padding-bottom: clamp(3rem, 8vw, 6rem); }
.page.story-head { padding-bottom: 1.5rem; }
.story-head .prose { padding-bottom: 0; }
.prose p, .prose li { font-size: 1.12rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.byline { font: 600 .85rem/1.4 ui-monospace, monospace; color: var(--dim); letter-spacing: .06em; }
.storylist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.storylist a { display: block; text-decoration: none; background: rgba(16, 20, 28, .65);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; color: var(--body); }
.storylist a:hover { border-color: var(--dawn); }
.storylist h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.storylist p { margin: 0; }
.signoff { color: var(--ink); font-weight: 700; margin-top: 2rem; }
.helpnote { margin-top: 2.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(16, 20, 28, .6); font-size: 1rem; }

/* --- press ------------------------------------------------------------------- */
.press { padding-bottom: clamp(3rem, 8vw, 6rem); display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
/* The home page's full-width bands pad every section; the press page's are blocks. */
.press section { padding: 0; }
.press h2 { font-size: 1.7rem; }
.press .label { font: 700 .74rem/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 1.2rem 0 .4rem; }
.press p { max-width: 46rem; }
.tag { font: 600 .8rem/1 ui-monospace, monospace; color: var(--dim); border: 1px solid var(--line);
  border-radius: 999px; padding: .25rem .6rem; vertical-align: middle; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; margin: 1.2rem 0 1.4rem; }
.facts div { background: rgba(16, 20, 28, .6); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.facts dt { font: 700 .72rem/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: .45rem 0 0; color: var(--ink); font-weight: 600; }
.downloads { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.downloads a { display: grid; gap: .55rem; text-decoration: none; color: var(--body);
  background: rgba(16, 20, 28, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.downloads a:hover { border-color: var(--dawn); }
.downloads img { width: 100%; height: 9rem; object-fit: contain; background: #2a3644; border-radius: 8px; }
.downloads.shots img { object-fit: contain; image-rendering: pixelated; background: #10141c; }
.downloads span { font-size: .9rem; }
.downloads b { color: var(--ink); }
.colours { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.colours li { display: grid; gap: .35rem; }
.swatch { display: block; height: 4.5rem; border-radius: 10px; border: 1px solid var(--line); }
.colours code { color: var(--dim); font-size: .85rem; }
