/* Poche — design system. Bright lime + forest green, heavy type, big numbers,
   rounded cards, pill buttons. Self-hosted Inter / Inter Tight (OFL), no third-party calls. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --lime: #9fe870;
  --lime-soft: #e2f6d5;
  --forest: #163300;
  --ink: #0e0f0c;
  --muted: #454745;
  --faint: #6a6c6a;
  --bg: #ffffff;
  --surface: #f2f5ef;
  --card: #ffffff;
  --line: #e3e7df;
  --warn: #ffd11a;
  --warn-soft: #fff5cc;
  --danger: #a8200d;
  --danger-soft: #fbe5e1;
  --sky: #a0e1e1;
  --pink: #ffc091;
  --radius: 24px;
  --radius-s: 16px;
  --shadow: 0 1px 2px rgba(14, 15, 12, .04), 0 4px 12px rgba(14, 15, 12, .04), 0 16px 40px rgba(22, 51, 0, .06);
  --shadow-lg: 0 2px 4px rgba(14, 15, 12, .04), 0 24px 64px rgba(22, 51, 0, .14);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f6f2; --muted: #c5c9c2; --faint: #9a9f97; --bg: #0f120e; --surface: #181c16; --card: #1d221b;
    --line: #2c3329; --lime-soft: #23361a; --warn-soft: #3a3210; --danger-soft: #3d1a14; --danger: #ff8a75; --forest: #163300;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f4f6f2; --muted: #c5c9c2; --faint: #9a9f97; --bg: #0f120e; --surface: #181c16; --card: #1d221b;
  --line: #2c3329; --lime-soft: #23361a; --warn-soft: #3a3210; --danger-soft: #3d1a14; --danger: #ff8a75;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
::selection { background: var(--lime); color: var(--forest); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Type ---- */
.display { font-family: var(--display); font-size: clamp(44px, 9vw, 104px); line-height: .92; font-weight: 900; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
h1, .h1 { font-family: var(--display); font-size: clamp(30px, 6vw, 44px); line-height: 1.02; font-weight: 850; letter-spacing: -.035em; margin: 0 0 8px; text-wrap: balance; }
h2, .h2 { font-family: var(--display); font-size: 23px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
h3, .h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.012em; }
.big { font-family: var(--display); font-size: clamp(44px, 12vw, 68px); font-weight: 900; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Buttons ---- */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .15s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: var(--forest); box-shadow: inset 0 -2px 0 rgba(22, 51, 0, .08); }
.btn-primary:hover { background: #8edc5d; }
.btn-dark { background: var(--forest); color: var(--lime); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-link { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 8px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Cards & pills ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-flat { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.card-forest { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 24px; }
.card-forest .muted { color: #cfe8bf; }
.card-lime { background: var(--lime); color: var(--forest); border-radius: var(--radius); padding: 24px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--muted); white-space: nowrap; }
.pill-lime { background: var(--lime); color: var(--forest); }
.pill-soft { background: var(--lime-soft); color: var(--ink); }
.pill-warn { background: var(--warn-soft); color: var(--ink); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }

/* ---- Forms ---- */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-s); border: 2px solid var(--line); background: var(--card); font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; }
:root[data-theme="dark"] .field input:focus { border-color: var(--lime); }
.check { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 600; }
.check input { width: 24px; height: 24px; accent-color: var(--forest); flex: none; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.stack-l > * + * { margin-top: 24px; }

/* ---- Toggle ---- */
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--lime); }
