/* Desk Cats shared design tokens + basic components (options page, website).
 * Cosy cream, soft charcoal, peach / sage / butter accents, 20px cards. Fonts are bundled locally. */
@font-face { font-family: Fredoka; src: url(../fonts/fredoka-latin-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Fredoka; src: url(../fonts/fredoka-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0; }

:root {
  --bg: #FFF8EE; --card: #FFFFFF; --ink: #3D3330; --muted: #8A7468; --line: #EADFD2;
  --peach: #F2A28C; --sage: #A9D3AB; --butter: #F4CF63; --outline: #4A3B36; --focus: #6FA8DC;
  --shadow: 0 2px 0 rgba(74, 59, 54, .08), 0 10px 24px rgba(74, 59, 54, .08);
  --head: Fredoka, ui-rounded, system-ui, sans-serif; --body: Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #26201E; --card: #332B28; --ink: #F6EDE3; --muted: #B9A79A; --line: #4A3F3A; --outline: #1B1615; --shadow: 0 2px 0 rgba(0, 0, 0, .25); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
a { color: inherit; }
.card { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.btn { cursor: pointer; font: 600 14px var(--head); color: #3D3330; background: #fff; border: 2px solid var(--outline); border-radius: 999px; padding: 8px 16px; box-shadow: 0 3px 0 rgba(74, 59, 54, .22); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px) scale(1.03); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--sage); } .btn.warn { background: #F7C1AE; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type=text], input[type=time], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 7px 10px; min-width: 0; max-width: 100%;
}
input[type=color] { width: 44px; height: 34px; padding: 2px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
input[type=range] { accent-color: var(--peach); width: 100%; }
.hint { font-size: 13px; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch span:after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.34, 1.6, .5, 1); }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span:after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
