/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f3efe6;
  --bg-elev: #faf7f0;
  --surface: #fffdf8;
  --surface-2: #f7f2e8;
  --ink: #1d2622;
  --ink-soft: #5b665f;
  --ink-faint: #8b948d;
  --line: #e4ddcf;
  --line-strong: #d2c9b7;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #dcefe9;
  --accent-ink: #0b4f49;
  --on-accent: #ffffff;
  --danger: #b42318;
  --danger-soft: #fbe9e7;
  --ok: #15803d;
  --ok-soft: #e6f5ea;
  --warn: #b54708;
  --warn-soft: #fdf1e3;

  --sidebar: #122420;
  --sidebar-ink: #edf4ef;
  --sidebar-muted: #9aada4;
  --sidebar-line: rgba(255, 255, 255, 0.09);

  --shadow-sm: 0 1px 2px rgba(29, 38, 34, 0.06), 0 1px 1px rgba(29, 38, 34, 0.04);
  --shadow-md: 0 18px 40px -18px rgba(29, 38, 34, 0.32), 0 3px 10px rgba(29, 38, 34, 0.07);
  --shadow-lg: 0 40px 80px -40px rgba(10, 25, 20, 0.55);
  --radius: 14px;
  --rule: rgba(29, 38, 34, 0.085);
}

[data-theme="dark"] {
  --bg: #0e1412;
  --bg-elev: #121a17;
  --surface: #161e1b;
  --surface-2: #1b2420;
  --ink: #e7ede9;
  --ink-soft: #a4b1aa;
  --ink-faint: #78857e;
  --line: #28332e;
  --line-strong: #38453f;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-ink: #99f6e4;
  --on-accent: #06201c;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);

  --sidebar: #0a100e;
  --sidebar-ink: #edf4ef;
  --sidebar-muted: #91a39a;
  --sidebar-line: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 20px 44px -20px rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 50px 90px -40px rgba(0, 0, 0, 0.85);
  --rule: rgba(231, 237, 233, 0.07);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.18s ease, color 0.18s ease;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon svg {
  display: block;
}
