/* Skin "classic" (Ledger), ADR 0047, palette and type in ai/tasks/SKINS/design.md. Load order: tokens.css, this file, eink.css.
   Colours live in the blocks that exclude e-ink, so the e-ink tokens always win; the last block only turns the skin's web font, motion and shadows off. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); 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: "Source Serif 4 Fallback"; src: local("Georgia"); size-adjust: 95%; ascent-override: 98%; descent-override: 33%; line-gap-override: 0%; }

:root[data-skin="classic"] {
  --pd-font-display: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  --pd-font-body: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  --pd-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pd-font: var(--pd-font-ui);
  --pd-text-xs: 0.8125rem; --pd-text-sm: 0.9375rem; --pd-text-md: 1.1875rem; --pd-text-lg: 1.5rem;
  --pd-text-xl: 1.75rem; --pd-text-2xl: 2.25rem; --pd-text-3xl: 3rem;
  --pd-text-hero: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --pd-leading: 1.6; --pd-leading-tight: 1.2; --pd-tracking-display: 0; --pd-weight-display: 600;
  --pd-radius-xs: 2px; --pd-radius-sm: 3px; --pd-radius: 4px; --pd-radius-lg: 6px; --pd-radius-pill: 999px;
  --pd-border-w: 1px;
  --pd-density: 1.125;
  --pd-space-1: calc(4px * var(--pd-density)); --pd-space-2: calc(8px * var(--pd-density)); --pd-space-3: calc(12px * var(--pd-density));
  --pd-space-4: calc(16px * var(--pd-density)); --pd-space-5: calc(24px * var(--pd-density)); --pd-space-6: calc(32px * var(--pd-density));
  --pd-space-7: calc(48px * var(--pd-density));
  --pd-aside-w: 18.75rem; --pd-measure: 72ch;
  --pd-duration: 0ms; --pd-ease: linear; --pd-motion: 0;
  --pd-pattern: none;
}
:root[data-skin="classic"][data-density="compact"] { --pd-density: 0.9; --pd-section-space: 24px; }
:root[data-skin="classic"]:not([data-theme="dark"]):not([data-theme="eink"]) {
  --pd-bg: #f6f2ea; --pd-surface: #fffdf8; --pd-surface-2: #ede7da;
  --pd-ink: #1c1a17; --pd-muted: #5a544b; --pd-line: #d9d2c5;
  --pd-accent: #7a1f2b; --pd-accent-ink: #ffffff; --pd-accent-soft: #f3e4e5;
  --pd-accent-2: #1f3a5f; --pd-accent-2-ink: #ffffff;
  --pd-ok: #2f6b3a; --pd-warn: #8a5a0a; --pd-danger: #8f1d22; --pd-info: #1f3a5f; --pd-danger-ink: #ffffff;
  --pd-nav-bg: #fffdf8; --pd-nav-ink: #1c1a17; --pd-nav-active: #f3e4e5;
  --pd-hero-bg: #ede7da; --pd-hero-ink: #1c1a17;
  --pd-selection: rgba(122, 31, 43, 0.2); --pd-scrim: rgba(28, 26, 23, 0.55);
  --pd-focus: 0 0 0 3px #1f3a5f;
  --pd-shadow: none; --pd-shadow-raised: none; --pd-shadow-hard: none;
  --pd-texture: url("../../skins/classic/assets/background.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="classic"]:not([data-theme="light"]):not([data-theme="eink"]) {
    --pd-bg: #15130f; --pd-surface: #1e1b16; --pd-surface-2: #28241d;
    --pd-ink: #ece6da; --pd-muted: #aaa294; --pd-line: #3a342b;
    --pd-accent: #e38a95; --pd-accent-ink: #15130f; --pd-accent-soft: #3a2226;
    --pd-accent-2: #9db8dc; --pd-accent-2-ink: #15130f;
    --pd-ok: #8fc79a; --pd-warn: #d9b25f; --pd-danger: #e38a95; --pd-info: #9db8dc; --pd-danger-ink: #15130f;
    --pd-nav-bg: #1e1b16; --pd-nav-ink: #ece6da; --pd-nav-active: #3a2226;
    --pd-hero-bg: #28241d; --pd-hero-ink: #ece6da;
    --pd-selection: rgba(227, 138, 149, 0.3); --pd-scrim: rgba(0, 0, 0, 0.6);
    --pd-focus: 0 0 0 3px #9db8dc;
    --pd-texture: url("../../skins/classic/assets/background-dark.svg");
    color-scheme: dark;
  }
}
:root[data-skin="classic"][data-theme="dark"] {
  --pd-bg: #15130f; --pd-surface: #1e1b16; --pd-surface-2: #28241d;
  --pd-ink: #ece6da; --pd-muted: #aaa294; --pd-line: #3a342b;
  --pd-accent: #e38a95; --pd-accent-ink: #15130f; --pd-accent-soft: #3a2226;
  --pd-accent-2: #9db8dc; --pd-accent-2-ink: #15130f;
  --pd-ok: #8fc79a; --pd-warn: #d9b25f; --pd-danger: #e38a95; --pd-info: #9db8dc; --pd-danger-ink: #15130f;
  --pd-nav-bg: #1e1b16; --pd-nav-ink: #ece6da; --pd-nav-active: #3a2226;
  --pd-hero-bg: #28241d; --pd-hero-ink: #ece6da;
  --pd-selection: rgba(227, 138, 149, 0.3); --pd-scrim: rgba(0, 0, 0, 0.6);
  --pd-focus: 0 0 0 3px #9db8dc;
  --pd-shadow: none; --pd-shadow-raised: none; --pd-shadow-hard: none;
  --pd-texture: url("../../skins/classic/assets/background-dark.svg");
  color-scheme: dark;
}
/* E-ink keeps the skin's layout and radii; it drops web fonts and texture (classic has no motion or shadow to drop). */
:root[data-skin="classic"][data-theme="eink"] {
  --pd-font-display: Georgia, serif; --pd-font-body: Georgia, serif;
  --pd-text-sm: 1rem; --pd-text-xs: 0.875rem;
  --pd-shadow-raised: none; --pd-shadow-hard: none; --pd-texture: none; --pd-pattern: none;
}
