/* ==========================================================================
   Lumo Studio Stylesheet (css/style.css)
   Nordic Editorial Minimalist Palette & Accessibility States
   ========================================================================== */
:root {
    --bg-primary: #F6F5F2;
    --bg-secondary: #ECEAE4;
    --bg-elevated: #FFFFFF;
    --text-primary: #181817;
    --text-secondary: #5C5A55;
    --text-muted: #8C8981;
    --border-hairline: rgba(24, 24, 23, 0.11);
    --font-scale: 1;
}

html.dark {
    --bg-primary: #121211;
    --bg-secondary: #1B1B19;
    --bg-elevated: #222220;
    --text-primary: #F2F0EA;
    --text-secondary: #A6A39B;
    --text-muted: #6E6C66;
    --border-hairline: rgba(242, 240, 234, 0.11);
}

html.high-contrast {
    --bg-primary: #000000 !important;
    --bg-secondary: #111111 !important;
    --text-primary: #FFFFFF !important;
    --text-secondary: #EFEFEF !important;
    --text-muted: #D6D6D6 !important;
    --bg-elevated: #000000 !important;
    --border-hairline: #FFFFFF !important;
}

/* Motion: Off (set from the accessibility bar) */
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
    transition: none !important;
    animation: none !important;
}

html {
    font-size: calc(16px * var(--font-scale));
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.45s ease, color 0.35s ease;
}

.font-serif-editorial { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-mono-index { font-family: 'JetBrains Mono', monospace; }
.hairline-t { border-top: 1px solid var(--border-hairline); }
.hairline-b { border-bottom: 1px solid var(--border-hairline); }
.hairline-l { border-left: 1px solid var(--border-hairline); }
.hairline-r { border-right: 1px solid var(--border-hairline); }
.hairline-box { border: 1px solid var(--border-hairline); }
.surface-secondary { background-color: var(--bg-secondary); }
.surface-elevated { background-color: var(--bg-elevated); }
.text-ink { color: var(--text-primary); }
.text-stone { color: var(--text-secondary); }
.text-ash { color: var(--text-muted); }

/* Tailwind can't apply an opacity modifier to a CSS variable colour
   (bg-[var(--bg-primary)]/95), so those classes produced no styles.
   These rules give the header and project rows their intended backgrounds. */
.bg-\[var\(--bg-primary\)\]\/95 { background-color: color-mix(in srgb, var(--bg-primary) 95%, transparent); }
.hover\:bg-\[var\(--bg-secondary\)\]\/60:hover { background-color: color-mix(in srgb, var(--bg-secondary) 60%, transparent); }