/* Design tokens: change the look of the whole app here. */
:root {
  /* surfaces & text */
  --bg: #f7f6f3;
  --surface: #fff;
  --surface-2: #f2f0ec;
  --ink: #1d1b2c;
  --muted: #6b6880;
  --line: #e8e5df;
  --line-strong: #d5d1c8;

  /* brand */
  --brand: #5046e5;
  --brand-strong: #3f35cf;
  --brand-soft: #eeedfd;
  --brand-ink: #fff;
  --sun: #ffc145;
  --coral: #ff7a59;
  --teal: #2ec4b6;

  /* status */
  --danger: #cf3b3b;
  --danger-soft: #fdeeee;
  --ok: #1f8a55;
  --ok-soft: #e6f5ed;
  --warn: #8a6100;
  --warn-soft: #fff6dc;
  --warn-line: #f1dc9f;

  /* shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(29 27 44 / 6%);
  --shadow: 0 1px 2px rgb(29 27 44 / 5%), 0 6px 20px rgb(29 27 44 / 6%);
  --shadow-lg: 0 2px 6px rgb(29 27 44 / 8%), 0 18px 48px rgb(29 27 44 / 18%);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
#app, .view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgb(80 70 229 / 40%); outline-offset: 2px; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* page layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; flex: 1; }
.container.narrow { max-width: 720px; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  .container { padding: 1.1rem 1rem 2.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
  .desktop-only { display: none !important; }
}
