/* Voxwake marketing site. Tokens mirror the app ("Swiss ledger": paper, ink, one ultramarine accent). */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --paper: #f6f4ef;
  --paper-raised: #fcfbf8;
  --paper-sunken: #eeebe4;
  --ink: #16161a;
  --ink-2: #4d4b46;
  --ink-3: #66635c;
  --rule: #dcd8cf;
  --rule-strong: #bdb8ad;
  --accent: #2f3fd0;
  --accent-hover: #2533b4;
  --accent-ink: #ffffff;
  --accent-soft: #e5e7fa;
  --accent-text: #2a37b8;
  --positive: #17734a;
  --negative: #b42318;
  --warning: #8f5300;

  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --text-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  --text-h2: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  --space-section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214;
    --paper-raised: #1a1a1d;
    --paper-sunken: #0c0c0e;
    --ink: #eeece7;
    --ink-2: #bdb9b0;
    --ink-3: #9a968d;
    --rule: #2c2c30;
    --rule-strong: #45444a;
    --accent: #8e99ff;
    --accent-hover: #a7b0ff;
    --accent-ink: #0b0d2b;
    --accent-soft: #1f2347;
    --accent-text: #a9b1ff;
    --positive: #6fd3a0;
    --negative: #ff8b7b;
    --warning: #f2b866;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214;
  --paper-raised: #1a1a1d;
  --paper-sunken: #0c0c0e;
  --ink: #eeece7;
  --ink-2: #bdb9b0;
  --ink-3: #9a968d;
  --rule: #2c2c30;
  --rule-strong: #45444a;
  --accent: #8e99ff;
  --accent-hover: #a7b0ff;
  --accent-ink: #0b0d2b;
  --accent-soft: #1f2347;
  --accent-text: #a9b1ff;
  --positive: #6fd3a0;
  --negative: #ff8b7b;
  --warning: #f2b866;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 1.12rem; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 24px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.7em 1.15em; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; font-size: 0.97rem;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-quiet:hover { background: var(--paper-sunken); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 2rem + 6vw, 7rem) 0 var(--space-section); position: relative; }
.kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 1.4rem; }
.kicker b { color: var(--accent-text); font-weight: 600; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 380; font-size: var(--text-hero);
  line-height: 0.98; letter-spacing: -0.025em; margin: 0; max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 34ch; margin: 1.6rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* signal panel: a quiet mock of the inbox, built from type, not a screenshot */
.signal {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 1px 0 rgb(22 22 26 / 0.04), 0 22px 48px -24px rgb(22 22 26 / 0.28);
  overflow: hidden; transform: rotate(-0.6deg);
}
.signal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 0.8rem; color: var(--ink-3); }
.signal-head strong { color: var(--ink); font-weight: 600; }
.wave { display: flex; gap: 3px; align-items: center; height: 14px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--accent); opacity: 0.8; animation: pulse 1.6s var(--ease) infinite; }
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.wave i:nth-child(5) { height: 5px; animation-delay: 0.6s; }
@keyframes pulse { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } .signal { transform: none; } }
.mention { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.mention:last-child { border-bottom: 0; }
.mention-meta { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--ink-3); flex-wrap: wrap; }
.mention p { margin: 0; font-size: 0.95rem; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; }
.tag-neg { color: var(--negative); }
.tag-pos { color: var(--positive); }
.tag-q { color: var(--warning); }
.draft { margin-top: 4px; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: 0.88rem; color: var(--ink); border-radius: 0 4px 4px 0; }
.draft small { display: block; color: var(--ink-3); font-size: 0.74rem; margin-bottom: 3px; }

/* ---------- sections ---------- */
section { padding: var(--space-section) 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-h2); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.sec-head p { color: var(--ink-2); margin: 0; align-self: end; max-width: 46ch; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ledger article { padding: 1.6rem 1.6rem 1.8rem 0; border-right: 1px solid var(--rule); }
.ledger article + article { padding-left: 1.6rem; }
.ledger article:last-child { border-right: 0; }
.ledger .num { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--accent-text); font-weight: 300; }
.ledger h3 { font-size: 1.12rem; margin: 1rem 0 0.5rem; letter-spacing: -0.01em; }
.ledger p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 800px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger article, .ledger article + article { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.split > div { background: var(--paper-raised); padding: clamp(1.4rem, 3vw, 2.2rem); }
.split h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.split p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.principles li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.principles li span { font-family: var(--font-serif); font-style: italic; color: var(--ink-3); font-size: 1.1rem; }
.principles strong { display: block; margin-bottom: 2px; }
.principles p { margin: 0; color: var(--ink-2); }

.closing { text-align: left; }
.closing h2 { font-family: var(--font-serif); font-weight: 380; font-size: var(--text-h2); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 1rem; max-width: 18ch; }
.closing p { color: var(--ink-2); max-width: 52ch; margin: 0 0 1.8rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 2.4rem 0 3rem; font-size: 0.88rem; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- legal ---------- */
.legal { padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0 var(--space-section); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 0.6rem; }
.legal .updated { color: var(--ink-3); font-size: 0.9rem; margin: 0 0 2.4rem; }
.legal h2 { font-size: 1.15rem; margin: 2.4rem 0 0.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0.8rem 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 600; }
.notice { background: var(--paper-raised); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; }
