:root {
  --ink: #0d1b2a;
  --sea: #1b6ca8;
  --foam: #f4f8fb;
  --warn: #7a4b00;
  --card: #ffffff;
  --line: #d3dee8;
  --muted: #52606d;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--foam); }
header, main, footer { max-width: 42rem; margin: 0 auto; padding: 1rem 1.25rem; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.mark { font-weight: 800; font-size: 1.3rem; color: var(--sea); text-decoration: none; letter-spacing: -0.02em; }
nav a { margin-left: 1rem; color: inherit; }
h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.02em; }
.tagline { font-size: 1.25rem; color: var(--sea); margin-top: -0.75rem; }
.button, button { display: inline-block; background: var(--sea); color: #fff; border: 0; border-radius: 0.5rem; padding: 0.6rem 1.1rem; font: inherit; text-decoration: none; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: progress; }
.placeholder { margin: 0; padding: 0.5rem 1rem; background: #ffe08a; color: #3d2c00; text-align: center; font-weight: 700; }
.warning { background: #fff4d6; color: var(--warn); padding: 0.75rem 1rem; border-radius: 0.5rem; }
textarea { width: 100%; font: inherit; padding: 0.6rem; border-radius: 0.5rem; border: 1px solid #9fb3c8; }
label { display: block; margin: 1rem 0 0.35rem; }
#chat .q { font-weight: 600; margin-top: 1rem; }
#chat .a { white-space: pre-wrap; }
.small, footer { font-size: 0.85rem; color: #52606d; }
footer a { color: inherit; }

/* Home: one screen, mobile first. */
.home main { padding-top: 2rem; padding-bottom: 2rem; }
.home h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; }
.nowrap { white-space: nowrap; color: var(--sea); }
.lede { font-size: 1.2rem; margin: 0 0 2rem; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.promises li { background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem 1.1rem; }
.promises h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.promises p { margin: 0; }
.note { margin-top: 1.5rem; color: var(--muted); }
.home footer { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); }
.home footer p { margin: 0.5rem 0; }
.home footer .tagline { font-size: 0.95rem; margin: 0.5rem 0; }
@media (min-width: 48rem) {
  .home main { padding-top: 4rem; }
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6edf3; --foam: #0b1520; --sea: #6cb4ee; --card: #13202d; --line: #26384a; --muted: #9aa9b8; }
  .warning { background: #3a2c07; color: #ffd98a; }
  textarea { background: #13202d; color: var(--ink); }
  .small, footer { color: #9aa9b8; }
}
