/* Skin "art" (Atelier), 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 fonts, motion and shadows off.
   --pd-accent (orange) is a fill, never a text colour (3.1:1 on white); text on it is --pd-accent-ink. */
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-italic-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: "Fraunces"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-italic-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: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-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: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/space-grotesk-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: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/space-grotesk-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: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 105%; ascent-override: 90%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 94%; descent-override: 26%; line-gap-override: 0%; }

:root[data-skin="art"] {
  --pd-font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --pd-font-body: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --pd-font-ui: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --pd-font: var(--pd-font-ui);
  --pd-text-xs: 0.75rem; --pd-text-sm: 0.875rem; --pd-text-md: 1rem; --pd-text-lg: 1.25rem;
  --pd-text-xl: 1.5rem; --pd-text-2xl: 2.25rem; --pd-text-3xl: 3.5rem;
  --pd-text-hero: clamp(3rem, 2rem + 6vw, 7.5rem);
  --pd-leading: 1.45; --pd-leading-tight: 0.95; --pd-tracking-display: -0.01em; --pd-weight-display: 700;
  --pd-radius-xs: 0; --pd-radius-sm: 4px; --pd-radius: 8px; --pd-radius-lg: 16px; --pd-radius-pill: 999px;
  --pd-border-w: 2px;
  --pd-density: 1;
  --pd-space-1: 4px; --pd-space-2: 8px; --pd-space-3: 12px; --pd-space-4: 16px; --pd-space-5: 24px; --pd-space-6: 32px; --pd-space-7: 48px;
  --pd-rail-width: 5.5rem; --pd-aside-w: 22.5rem; --pd-measure: 68ch;
  --pd-duration: 220ms; --pd-ease: cubic-bezier(0.34, 1.56, 0.64, 1); --pd-motion: 1;
  --pd-pattern: none;
}
:root[data-skin="art"][data-density="compact"] { --pd-space-3: 8px; --pd-space-4: 12px; --pd-space-5: 16px; --pd-space-6: 24px; --pd-space-7: 32px; --pd-section-space: 24px; }
:root[data-skin="art"]:not([data-theme="dark"]):not([data-theme="eink"]) {
  --pd-bg: #fff6e9; --pd-surface: #ffffff; --pd-surface-2: #ffe9c7;
  --pd-ink: #141414; --pd-muted: #5a544c; --pd-line: #141414;
  --pd-accent: #ff5a1f; --pd-accent-ink: #141414; --pd-accent-soft: #ffd9c7;
  --pd-accent-2: #1f2fd6; --pd-accent-2-ink: #ffffff;
  --pd-pop-1: #ff5fa2; --pd-pop-2: #c9f04d; --pd-pop-3: #7cd4ff;
  --pd-ok: #1f7a3a; --pd-warn: #8a5a0a; --pd-danger: #c8102e; --pd-info: #1f2fd6; --pd-danger-ink: #ffffff;
  --pd-nav-bg: #ffffff; --pd-nav-ink: #141414; --pd-nav-active: #ffd9c7;
  --pd-hero-bg: #ffe9c7; --pd-hero-ink: #141414;
  --pd-selection: rgba(255, 90, 31, 0.35); --pd-scrim: rgba(20, 20, 20, 0.6);
  --pd-focus: 0 0 0 3px #1f2fd6;
  --pd-shadow: none; --pd-shadow-raised: 6px 6px 0 #141414; --pd-shadow-hard: 4px 4px 0 var(--pd-ink);
  --pd-texture: url("../../skins/art/assets/background.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="art"]:not([data-theme="light"]):not([data-theme="eink"]) {
    --pd-bg: #141414; --pd-surface: #1e1e1e; --pd-surface-2: #2a2522;
    --pd-ink: #fbf3e6; --pd-muted: #bdb3a6; --pd-line: #fbf3e6;
    --pd-accent: #ff7a3d; --pd-accent-ink: #141414; --pd-accent-soft: #4a2a1c;
    --pd-accent-2: #9fb0ff; --pd-accent-2-ink: #141414;
    --pd-ok: #9be39b; --pd-warn: #ffd166; --pd-danger: #ff6b6b; --pd-info: #9fb0ff; --pd-danger-ink: #141414;
    --pd-nav-bg: #1e1e1e; --pd-nav-ink: #fbf3e6; --pd-nav-active: #4a2a1c;
    --pd-hero-bg: #2a2522; --pd-hero-ink: #fbf3e6;
    --pd-selection: rgba(255, 122, 61, 0.4); --pd-scrim: rgba(0, 0, 0, 0.65);
    --pd-focus: 0 0 0 3px #9fb0ff;
    --pd-shadow-raised: 6px 6px 0 #fbf3e6;
    --pd-texture: url("../../skins/art/assets/background-dark.svg");
    color-scheme: dark;
  }
}
:root[data-skin="art"][data-theme="dark"] {
  --pd-bg: #141414; --pd-surface: #1e1e1e; --pd-surface-2: #2a2522;
  --pd-ink: #fbf3e6; --pd-muted: #bdb3a6; --pd-line: #fbf3e6;
  --pd-accent: #ff7a3d; --pd-accent-ink: #141414; --pd-accent-soft: #4a2a1c;
  --pd-accent-2: #9fb0ff; --pd-accent-2-ink: #141414;
  --pd-pop-1: #ff5fa2; --pd-pop-2: #c9f04d; --pd-pop-3: #7cd4ff;
  --pd-ok: #9be39b; --pd-warn: #ffd166; --pd-danger: #ff6b6b; --pd-info: #9fb0ff; --pd-danger-ink: #141414;
  --pd-nav-bg: #1e1e1e; --pd-nav-ink: #fbf3e6; --pd-nav-active: #4a2a1c;
  --pd-hero-bg: #2a2522; --pd-hero-ink: #fbf3e6;
  --pd-selection: rgba(255, 122, 61, 0.4); --pd-scrim: rgba(0, 0, 0, 0.65);
  --pd-focus: 0 0 0 3px #9fb0ff;
  --pd-shadow: none; --pd-shadow-raised: 6px 6px 0 #fbf3e6; --pd-shadow-hard: 4px 4px 0 var(--pd-ink);
  --pd-texture: url("../../skins/art/assets/background-dark.svg");
  color-scheme: dark;
}
/* E-ink keeps the skin's layout and radii; it drops web fonts, motion, hard shadows and texture. */
:root[data-skin="art"][data-theme="eink"] {
  --pd-font-display: Georgia, serif; --pd-font-body: system-ui, sans-serif; --pd-font-ui: system-ui, sans-serif;
  --pd-text-sm: 1rem; --pd-text-xs: 0.875rem;
  --pd-shadow-raised: none; --pd-shadow-hard: none; --pd-texture: none; --pd-pattern: none;
  --pd-duration: 0ms; --pd-motion: 0;
}
/* Atelier colour blobs in inlined artwork become a light grey wash in e-ink. */
:root[data-skin="art"][data-theme="eink"] .pd-blob { fill: var(--pd-surface-2); }
