/* TeleSpeak public pages: the app's studio-dark / warm-paper palette, coral accent, New York serif headings.
   System fonts only, no scripts or third-party requests (fits a privacy policy). Mirrors docs/DESIGN.md. */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --line: #e2ddd3;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #ff6b4a;
  --accent-text: #c4401f;
  --on-accent: #ffffff;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1d1d22;
    --line: #2a2a2e;
    --fg: #ffffff;
    --muted: #a0a0a8;
    --accent: #ff6b4a;
    --accent-text: #ff8a6e;
    --on-accent: #ffffff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 2.5rem 4rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font: 600 1.15rem/1.2 var(--serif); }

nav.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.75rem; }
nav.top .links { display: flex; gap: 1.25rem; font-size: 0.95rem; }
nav.top .links a { color: var(--muted); text-decoration: none; }
nav.top .links a:hover, nav.top .links a[aria-current="page"] { color: var(--fg); }

h1 { font: 600 clamp(2.1rem, 6.5vw, 3rem)/1.1 var(--serif); letter-spacing: -0.01em; margin: 0 0 0.6rem; text-wrap: balance; }
h2 { font: 600 1.4rem/1.3 var(--serif); margin: 2.5rem 0 0.5rem; text-wrap: balance; }
h3 { font: 600 1.05rem/1.4 var(--sans); margin: 1.5rem 0 0.25rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 36rem; }
.updated { color: var(--muted); font-size: 0.9rem; }

/* The coral pill the prompter puts on the word you're saying. */
.pill {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0.3em;
  padding: 0 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.panel p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  color: inherit;
  text-decoration: none;
}
.cards a:hover { border-color: var(--accent); }
.cards strong { display: block; font: 600 1.15rem/1.3 var(--serif); margin-bottom: 0.25rem; }
.cards span { color: var(--muted); font-size: 0.95rem; }

.email { font-weight: 600; user-select: all; }
footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: no-preference) {
  .cards a { transition: border-color 0.15s ease; }
}
