/* Color Block for the web. Tokens, type roles and sizes come from docs/design-spec.md; change them there too. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --canvas: #f4f3f0;
  --ink: #111111;
  --ink-muted: #5c5b57;
  --hairline: #e3e1db;
  --field: #eae8e3;
  --record: #ff5a36;

  --block-flamingo: #fea4bd;
  --block-teal: #8fdfd4;
  --block-orchid: #ecb8fb;
  --block-sunflower: #ffcf50;

  --block-ink: #111111;
  --block-chip: rgb(255 255 255 / 70%);
  --block-track: rgb(0 0 0 / 20%);

  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1a1a1c;
    --ink: #eceae5;
    --ink-muted: #8e8c87;
    --hairline: #2e2e31;
    --field: #242426;
    --record: #e5553a;

    --block-flamingo: #e68ea7;
    --block-teal: #6ebdb2;
    --block-orchid: #c997d8;
    --block-sunflower: #f1bc06;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.45 var(--sans);
  font-variation-settings: "opsz" 14;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

/* Phone-width column, centered on wider screens (spec §10). */
.page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.page > main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Type roles (spec §2.1) */
.t-hero,
.t-logo,
.t-title,
.t-display-compact {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  font-variation-settings: "opsz" 96;
}

.t-hero {
  font-size: 4.75rem;
  letter-spacing: -0.03em;
}

.t-logo {
  font-size: 1.875rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.t-title {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.t-display-compact {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.t-headline {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.t-callout {
  margin: 0;
  font-size: 0.875rem;
}

.t-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  font-variation-settings: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-muted);
}

/* The record full stop: 0.2 em wide, its top on the baseline, tucked against the "p". */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.07em;
  border-radius: 50%;
  background: var(--record);
  vertical-align: -0.2em;
}

.block {
  border-radius: 22px;
  color: var(--block-ink);
}

.hero-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--block-sunflower);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.samples {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.flamingo {
  background: var(--block-flamingo);
}

.teal {
  background: var(--block-teal);
}

.orchid {
  background: var(--block-orchid);
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--block-chip);
  font-size: 0.665rem;
  font-weight: 800;
  font-variation-settings: "opsz" 24;
}

/* Miniature waveform: bars 3 wide, 2 apart, 22 tall at most. */
.wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 22px;
  overflow: hidden;
}

.wave i {
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--block-track);
}

.wave i.on {
  background: var(--block-ink);
}

.wave .a {
  height: 6px;
}

.wave .b {
  height: 12px;
}

.wave .c {
  height: 17px;
}

.wave .d {
  height: 22px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Inset panel (spec §4.2, as Welcome's deleted note). */
.panel {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--field);
}

/* Long-form text: the privacy policy. */
.prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose p,
.prose ul {
  margin: 0;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hairline);
}

footer .links {
  display: flex;
  gap: 20px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
