/* dd-kit base: Jost, color tokens (light + dark), and a few plain building blocks.
   <link rel="stylesheet" href="/kit/base.css"> then override the tokens in your own CSS. */

@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url('fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url('fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-display: swap; src: url('fonts/jost-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --font: 'Jost', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --bg: #f5f2ea;
  --panel: #fffdf8;
  --ink: #232019;
  --muted: #6f685b;
  --line: #e2dccd;
  --accent: #2f6f62;
  --danger: #a33a2a;
  --radius: 10px;
  --gap: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --panel: #1e1c19;
    --ink: #ece6d8;
    --muted: #9c9483;
    --line: #34302a;
    --accent: #6fb3a3;
    --danger: #e07a68;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
a { color: var(--accent); }
small, .muted { color: var(--muted); }
code, pre { font-family: var(--mono); font-size: 0.9em; }

/* .page: a centered column with the 16px phone gutter. */
.page { max-width: 760px; margin: 0 auto; padding: 24px var(--gap) 64px; }

/* .row: things side by side that wrap on a phone. */
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row > input, .row > textarea { flex: 1 1 220px; }

/* .list: a plain list with hairlines. */
.list { list-style: none; margin: 16px 0; padding: 0; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); }

input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px;
}
button {
  background: var(--accent); color: var(--bg); border: 0; border-radius: var(--radius); padding: 8px 16px; font-weight: 500; cursor: pointer;
}
button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); }
