/* tiny-voice — its own colour, its own wash, its own drawing.
   Accent: coral #ff7a6b on #150f13. The abstract is a column of equaliser bars,
   because the site is about a voice. */

:root {
  --ink: #f6ece8;
  --muted: #b6a4a2;
  --bg: #150f13;
  --panel: #1e161b;
  --line: #3a2a31;
  --accent: #ff7a6b;
  --accent-soft: #ffb3a8;
  --star: #fbbf24;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(255, 122, 107, 0.16), transparent 62%),
    radial-gradient(900px 560px at 92% 6%, rgba(255, 179, 168, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* The abstract: repeating equaliser bars, on its own fixed layer, masked so it
   has no edge. A gradient wash is not a drawing — this is a drawing. */
.dvs-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 122, 107, 0.5) 0 3px,
    transparent 3px 11px,
    rgba(255, 122, 107, 0.34) 11px 13px,
    transparent 13px 26px
  );
  background-size: 26px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 20; }

/* ---- the brand bar: full width, sticky, hairline under it, NO nav ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 12px clamp(14px, 4vw, 44px);
  background: rgba(21, 15, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand .mark { color: var(--accent); display: inline-flex; }
.brand b { display: block; font-size: 15px; letter-spacing: 0.02em; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

main { max-width: 900px; margin: 0 auto; padding: clamp(20px, 5vw, 52px) clamp(16px, 4vw, 40px) 40px; }

.hero h1 {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.lede { font-size: clamp(16px, 2.2vw, 19px); color: #e7d9d6; max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.facts li { border-left: 3px solid var(--accent); padding-left: 12px; color: #e3d5d2; }

.card {
  background: linear-gradient(180deg, var(--panel), rgba(30, 22, 27, 0.72));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 26px);
  margin: 20px 0;
}
.card h2 { margin: 0 0 6px; font-size: clamp(20px, 3vw, 26px); }
.card h3 { margin: 14px 0 2px; font-size: 18px; }
.sub { color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }
.plain { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }

.packs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pack-chip {
  display: grid; gap: 1px; text-align: left;
  background: #241a20; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 13px; cursor: pointer; font: inherit;
}
.pack-chip b { font-size: 14px; }
.pack-chip small { font-size: 11px; color: var(--muted); }
.pack-chip.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pack-chip.is-locked { opacity: 0.62; }
.price { color: var(--accent-soft); font-size: 13px; margin: 0 0 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.card-tile, .grid button {
  display: grid; justify-items: center; gap: 4px;
  background: #241a20; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 8px; cursor: pointer; font: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.grid button:active { transform: scale(0.97); }
.grid button.is-current { border-color: var(--accent); }
.grid .glyph { font-size: 34px; line-height: 1; }
.grid .word { font-size: 14px; }
.grid .mine { font-size: 10px; color: var(--accent-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.locked { color: var(--muted); }

.controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
button {
  font: inherit; cursor: pointer; border-radius: 999px;
  border: 1px solid var(--line); background: #2a1e25; color: var(--ink);
  padding: 9px 16px;
}
button:hover { border-color: var(--accent); }
.quiet { background: transparent; color: var(--muted); }

.field { display: grid; gap: 6px; margin: 10px 0; }
.label { font-size: 13px; color: var(--muted); }
input[type="text"] {
  font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #191217; color: var(--ink); max-width: 260px;
}
.switch { display: inline-flex; gap: 8px; align-items: center; margin-left: 8px; color: var(--muted); }

.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 6px 0 4px;
}

a { color: var(--accent-soft); }
.gh-star { width: 12px; height: 12px; fill: var(--star); margin-right: 4px; vertical-align: -1px; }

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 40px) 34px;
  max-width: 900px; margin: 0 auto;
  color: var(--muted); font-size: 13.5px;
}
.foot-brand { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.foot-brand .mark { color: var(--accent); display: inline-flex; }
.foot-links { display: flex; gap: 14px; margin: 10px 0 6px; }
.foot-note { margin: 6px 0 0; }

.consent-panel {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px; width: min(560px, calc(100% - 24px));
  background: #1b1318; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; z-index: 30; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.consent-panel p { margin: 0 0 12px; font-size: 14px; color: #e6d8d5; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#consentAccept { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
