/* Velvetale site: the app's Darkroom look (docs/superpowers/specs/2026-10-07-darkroom-design.md). */
:root {
  --bg: #060508;
  --surface: #0E0D11;
  --surface2: #16151A;
  --line: rgba(255, 255, 255, 0.10);
  --text: #F4F1F6;
  --prose: #DCD6E0;
  --muted: #A09AA8;
  --faint: #8A8492;
  --coral: #E2647A;
  --coral-ink: #1A0710;
  --coral-soft: #24121A;
  --light: #ECE8EF;
  --light-ink: #120F16;
  /* Lucien's portrait: candlelight on wine-red velvet */
  --glow: #8A2A35;
  --shade: #1A080B;
  --label: #E7B9BF;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ui: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --story: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 5, 8, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid var(--line);
}
.top-in {
  max-width: var(--max); margin: 0 auto; padding: 4px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; min-height: 44px; align-items: center; gap: 10px; text-decoration: none;
  font: 500 21px/1 var(--display); letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 8px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 7px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav .wide { display: none; } }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--light); color: var(--light-ink);
  font: 500 15px/1 var(--ui); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.pill svg { width: 18px; height: 18px; }
.pill.soon { cursor: default; }
.note { color: var(--faint); font-size: 13.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero::before { /* the portrait's light spills onto the page */
  content: ""; position: absolute; z-index: -1;
  right: -10%; top: 0; width: 70%; height: 100%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent 75%);
  filter: blur(30px); opacity: 0.85;
}
.hero h1 {
  margin: 0;
  font: 500 clamp(50px, 6.6vw, 94px)/0.94 var(--display);
  letter-spacing: -0.05em;
}
.hero .lede {
  margin: 28px 0 36px; max-width: 30ch;
  font: 400 clamp(20px, 2.1vw, 24px)/1.45 var(--story); color: var(--prose);
}
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

/* the scene: portrait with the chat over it, like the app */
.scene {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; max-width: 480px;
  background: var(--shade);
  border: 0.5px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 40px 120px -40px color-mix(in srgb, var(--glow) 70%, transparent);
}
.scene > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--shade) 75%, transparent) 58%, var(--shade) 92%);
}
.scene-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; }
.who { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.who b { font: 500 34px/1 var(--display); letter-spacing: -0.04em; }
.who span { color: var(--label); font-size: 13px; }
.bubble {
  font: 400 16px/1.5 var(--story); color: var(--prose);
  padding: 12px 15px; border-radius: 18px; max-width: 92%;
  background: color-mix(in srgb, var(--glow) 18%, rgba(14,13,17,0.72));
  border: 0.5px solid color-mix(in srgb, var(--glow) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bubble i { color: var(--muted); }
.bubble.you {
  margin: 10px 0 0 auto; width: fit-content; max-width: 80%;
  background: color-mix(in srgb, var(--coral-soft) 92%, transparent);
  border-color: color-mix(in srgb, var(--coral) 30%, transparent);
  color: var(--text);
}
.caret { display: inline-block; width: 1px; height: 1.05em; background: var(--text); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.foot-line { margin-top: 12px; color: var(--faint); font-size: 12px; text-align: center; }

/* one orchestrated moment: his line arrives, then yours is typed */
.js .scene .bubble:not(.you) { opacity: 0; transform: translateY(8px); }
.js .scene.play .bubble:not(.you) { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js .scene .bubble.you { visibility: hidden; }
.js .scene.typing .bubble.you { visibility: visible; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 64px); }
  .hero .lede { margin: 16px 0 22px; font-size: 19px; }
  .hero::before { right: -30%; top: 30%; width: 120%; height: 70%; }
  .scene { justify-self: stretch; max-width: none; }
}

/* ---------- sections ---------- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.band h2 {
  margin: 0 0 8px; font: 500 clamp(32px, 4.2vw, 48px)/1 var(--display); letter-spacing: -0.04em;
}
.band .sub { margin: 0 0 32px; color: var(--muted); max-width: 52ch; }

.cast {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.tile {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface); border: 0.5px solid var(--line);
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(6,5,8,.55) 62%, rgba(6,5,8,.94) 100%); }
.tile figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.tile b { display: block; font: 500 clamp(22px, 2.4vw, 30px)/1.05 var(--display); letter-spacing: -0.035em; }
.tile span { display: block; margin-top: 5px; max-width: 34ch; font-size: 14.5px; line-height: 1.4; color: var(--prose); }
@media (max-width: 860px) {
  .cast { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .cast::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
}
@media (min-width: 560px) and (max-width: 860px) { .cast { grid-auto-columns: 44%; } }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); border-top: 0.5px solid var(--line); padding-top: 32px; margin-top: 8px; }
.ways h3 { margin: 0 0 8px; font: 500 22px/1.15 var(--display); letter-spacing: -0.03em; }
.ways p { margin: 0; color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

.ink {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(24px, 4vw, 40px); border-radius: 24px;
  background: var(--surface); border: 0.5px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  background-image: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--coral) 12%, transparent), transparent 70%);
}
.ink-text { display: flex; gap: 16px; align-items: flex-start; }
.ink p { margin: 0; max-width: 46ch; font: 400 clamp(19px, 2vw, 22px)/1.45 var(--story); color: var(--prose); }
.ink .drop { flex: none; width: 22px; height: 28px; margin-top: 3px; color: var(--coral); }

/* ---------- footer ---------- */
.foot { border-top: 0.5px solid var(--line); margin-top: 24px; }
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  color: var(--faint); font-size: 13.5px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0; }

/* ---------- document pages (privacy, terms, safety, support) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 40px; }
.doc h1 { margin: 0 0 10px; font: 500 clamp(40px, 6vw, 60px)/1 var(--display); letter-spacing: -0.045em; }
.doc .updated { margin: 0 0 36px; color: var(--faint); font-size: 14px; }
.doc .intro { font: 400 20px/1.55 var(--story); color: var(--prose); }
.doc h2 { margin: 44px 0 10px; font: 500 23px/1.2 var(--display); letter-spacing: -0.025em; }
.doc p, .doc li { color: var(--prose); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--label); text-underline-offset: 3px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 8px 11px 0; border-bottom: 0.5px solid var(--line); }
.doc th { color: var(--muted); font-weight: 500; }
.doc td:first-child { width: 52%; padding-right: 20px; }
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; width: auto !important; }
  .doc tr:first-child { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 0.5px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { color: var(--text); }
}
.box {
  margin: 20px 0; padding: 18px 20px; border-radius: 18px;
  background: var(--surface); border: 0.5px solid var(--line);
}
.box p { margin: 4px 0; }
.steps { padding-left: 22px; }
.todo { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--text); border-radius: 4px; padding: 0 4px; }

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