/* CRTTek site styles. One file for every page. */
:root {
  --bg: #0a0c1c;
  --bg-2: #10132a;
  --panel: #151935;
  --panel-2: #1b2045;
  --line: rgba(167, 139, 250, 0.18);
  --text: #e8e9f6;
  --muted: #a3a7c7;
  --accent: #a78bfa;      /* Wolfpak violet */
  --accent-2: #7c6cf0;
  --aurora: #5eead4;      /* aurora teal */
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main p a, main li a, details a, .fine a { text-decoration: underline; text-decoration-color: rgba(167,139,250,.55); text-underline-offset: 3px; }
a.shot { display: block; cursor: zoom-in; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .product-card { transition: none; } .btn:hover, .product-card:hover { transform: none; } }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 300; letter-spacing: .08em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aurora); font-weight: 600; margin-bottom: .8em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 28, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #0b0a1e; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(167,139,250,.1); }
.btn small { font-weight: 500; opacity: .75; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,28,.15) 0%, rgba(10,12,28,.55) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; padding-top: clamp(90px, 14vw, 170px); padding-bottom: 56px; text-align: center; }
.hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin: 0 auto 1.6em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; padding: 0; list-style: none; }
.badges li { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: rgba(10,12,28,.5); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse > :first-child { order: 2; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; background: var(--panel); }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.product-card { display: block; padding: 0; overflow: hidden; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.product-card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(167,139,250,.5); }
.product-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 20px 22px 22px; }
.product-card .meta { font-size: .82rem; color: var(--aurora); margin-bottom: .4em; letter-spacing: .05em; }
.product-card.coming { display: flex; align-items: center; justify-content: center; min-height: 280px; border-style: dashed; color: var(--muted); text-align: center; padding: 22px; }

.hero:has(.hero-ui) .wrap { padding-top: clamp(56px, 8vw, 96px); }
.hero-ui { max-width: 900px; margin: 36px auto 0; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(167,139,250,.25); }

/* Specs */
.specs { width: 100%; border-collapse: collapse; margin: 18px 0 20px; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* Listen */
.players { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.player { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.player h3 { margin-bottom: .2em; }
.player p { color: var(--muted); font-size: .92rem; }
.player audio { width: 100%; display: block; margin-top: 10px; color-scheme: dark; }
.chapters { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chapters button { font: inherit; font-size: .82rem; color: var(--text); background: rgba(167,139,250,.08); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.chapters button:hover { background: rgba(167,139,250,.2); }
.chapters button span { color: var(--aurora); font-variant-numeric: tabular-nums; }

.sounds { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tags { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aurora); border: 1px solid rgba(94,234,212,.35); border-radius: 999px; padding: 3px 12px; }
.sounds .fine { margin: 0; }
.clips { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.clip { width: 100%; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; text-align: left; font: inherit; color: var(--text); background: rgba(94,234,212,.06); border: 1px solid rgba(94,234,212,.3); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.clip:hover { background: rgba(94,234,212,.14); }
.clip[aria-pressed="true"] { background: rgba(167,139,250,.2); border-color: var(--accent); }
.clip .ico { grid-row: 1 / 3; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--aurora); color: #0a0c1c; font-size: .7rem; }
.clip .fam { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aurora); font-weight: 600; }
.clip .pre { font-size: .86rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1280 / 680; object-fit: cover; object-position: top center; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 1100px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 10px var(--aurora); }

/* Download */
.download-box { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.btn-install { display: flex; flex-direction: column; width: 100%; padding: 20px 16px; font-size: 1.15rem; margin-top: 20px; }
.btn-install small { font-size: .8rem; opacity: .85; }
.download-or { margin: 18px 0 -8px; }
.download-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin: 20px 0 16px; }
.download-grid .btn { flex-direction: column; padding: 16px; }
.fine { font-size: .9rem; color: var(--muted); }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }
details ol, details ul { margin: 0 0 .6em; padding-left: 1.3em; }
.changelog { list-style: none; padding: 0 !important; }
.changelog li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.changelog li:last-child { border-bottom: 0; }
.changelog b { margin-right: 6px; }
.changelog .muted { font-size: .85rem; margin-right: 6px; }
code { background: rgba(167,139,250,.12); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* Guide */
.guide h2 { margin-top: 1.8em; scroll-margin-top: 80px; }
.guide .steps { padding-left: 1.3em; margin: 1.2em 0 1.6em; }
.guide .steps li { margin-bottom: .6em; }
.guide .toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table.ref { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.ref th, table.ref td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref th { color: var(--aurora); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
table.ref td:first-child { font-weight: 500; padding-right: 20px; min-width: 9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Phones and tablets */
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse > :first-child { order: 0; }
  .players { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .gallery { grid-template-columns: 1fr; }
  .download-box { padding: 22px; }
}

/* CRT wordmark */
.brand-word { height: 30px; width: auto; display: block; }

/* Wildervoice line-art headline */
h1.wv { margin: 0 auto .6em; line-height: 0; }
h1.wv img { display: block; margin: 0 auto; width: clamp(290px, 62vw, 680px); height: auto; filter: drop-shadow(0 0 5px rgba(10,12,28,.95)) drop-shadow(0 2px 18px rgba(10,12,28,.85)); }

/* Night sky that flows down the whole page, darkening as it goes (Wolfpak page) */
body.sky { background: linear-gradient(180deg, #213656 0px, #1a2b47 700px, #121d35 1600px, #0c1328 2800px, #080a17 100%); }
.sky-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("img/stars.svg") repeat 0 0 / 700px 500px; }
body.sky .hero { border-bottom: 0; overflow: visible; }
body.sky .hero-art { bottom: -90vh; overflow: hidden; --haze: linear-gradient(180deg, #000 0%, #000 28%, rgba(0,0,0,.78) 42%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.26) 74%, rgba(0,0,0,.09) 88%, transparent 100%); -webkit-mask-image: var(--haze); mask-image: var(--haze); }
body.sky main > section:not(.hero) { position: relative; z-index: 1; }
body.sky .hero-art::after { background: linear-gradient(180deg, rgba(10,12,28,.1) 0%, rgba(10,12,28,.25) 40%, transparent 100%); }
body.sky section.alt { background: transparent; border-color: transparent; }

/* "The Pack" heading that introduces the feature sections below it */
.pack-intro { padding-bottom: 8px; text-align: center; }
.pack-intro h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: .06em; margin-bottom: .45em; }
.pack-intro p { margin: 0 auto; }
.pack-intro + section { padding-top: 48px; }
.request-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .8em; }
code { overflow-wrap: anywhere; }
