/* Lumen — warm editorial portfolio theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --lumen-ink: #2a1f1c;
    --lumen-ink-soft: #3f2e2e;
    --lumen-body: #5c4b42;
    --lumen-muted: #8c7c6f;
    --lumen-cream: #fbf7f2;
    --lumen-cream-deep: #f3ebe3;
    --lumen-surface: #ffffff;
    --lumen-border: #e8ddd3;
    --lumen-accent: #c17f59;
    --lumen-accent-hover: #a86a45;
    --lumen-accent-soft: rgba(193, 127, 89, 0.12);
    --lumen-sage: #7a9b8a;
    --lumen-shadow: 0 4px 24px -4px rgba(42, 31, 28, 0.08);
    --lumen-shadow-lg: 0 20px 50px -12px rgba(42, 31, 28, 0.15);
    --lumen-radius: 1.5rem;
    --lumen-radius-lg: 2rem;
}

html:has(.lumen-body) {
    scroll-behavior: smooth;
}

.lumen-body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--lumen-ink-soft);
    background-color: var(--lumen-cream);
    -webkit-font-smoothing: antialiased;
}

.lumen-body ::selection {
    background: rgba(193, 127, 89, 0.22);
    color: var(--lumen-ink);
}

.lumen-body .rich-content {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--lumen-body);
}

.lumen-body .rich-content h2,
.lumen-body .rich-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--lumen-ink);
    letter-spacing: -0.02em;
}

.lumen-body .rich-content a {
    color: var(--lumen-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.lumen-body .rich-content a:hover {
    color: var(--lumen-accent-hover);
}

.lumen-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lumen-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lumen-accent);
}

.lumen-grain::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lumen-sidebar {
    background: linear-gradient(180deg, var(--lumen-surface) 0%, #fefcfa 100%);
    border-right: 1px solid var(--lumen-border);
    box-shadow: 4px 0 24px -8px rgba(42, 31, 28, 0.06);
}

.lumen-sidebar-brand {
    position: relative;
}

.lumen-sidebar-brand::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.25rem;
    height: 1px;
    background: linear-gradient(90deg, var(--lumen-accent) 0%, transparent 100%);
    opacity: 0.35;
}

.lumen-avatar-ring {
    box-shadow:
        0 0 0 3px var(--lumen-surface),
        0 0 0 4px var(--lumen-border),
        var(--lumen-shadow);
}

.lumen-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    color: var(--lumen-body);
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.lumen-nav-link:hover {
    background: var(--lumen-accent-soft);
    color: var(--lumen-accent);
    padding-left: 1rem;
}

.lumen-nav-link.is-active {
    background: var(--lumen-cream-deep);
    color: var(--lumen-accent);
    font-weight: 600;
    border-left-color: var(--lumen-accent);
}

.lumen-warm-bg {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(193, 127, 89, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(122, 155, 138, 0.1) 0%, transparent 50%),
        linear-gradient(165deg, var(--lumen-cream) 0%, var(--lumen-cream-deep) 100%);
}

.lumen-hero-photo {
    position: relative;
}

.lumen-hero-photo::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border-radius: var(--lumen-radius-lg);
    border: 1px solid var(--lumen-border);
    z-index: 0;
    pointer-events: none;
}

.lumen-hero-photo-inner {
    position: relative;
    z-index: 1;
    border-radius: var(--lumen-radius-lg);
    overflow: hidden;
    box-shadow:
        var(--lumen-shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.lumen-hero-photo-inner img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lumen-hero-photo:hover .lumen-hero-photo-inner img {
    transform: scale(1.03);
}

.lumen-card {
    background: var(--lumen-surface);
    border: 1px solid var(--lumen-border);
    border-radius: var(--lumen-radius-lg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.lumen-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lumen-shadow-lg);
    border-color: rgba(193, 127, 89, 0.35);
}

.lumen-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--lumen-accent) 0%, var(--lumen-accent-hover) 100%);
    box-shadow: 0 4px 14px -2px rgba(193, 127, 89, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lumen-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 20px -4px rgba(193, 127, 89, 0.5);
    transform: translateY(-1px);
}

.lumen-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8125rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lumen-ink-soft);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(193, 127, 89, 0.25);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lumen-btn-ghost:hover {
    background: var(--lumen-surface);
    border-color: var(--lumen-accent);
    color: var(--lumen-accent);
}

.lumen-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lumen-accent);
    background: var(--lumen-surface);
    border: 1px solid var(--lumen-border);
}

.lumen-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--lumen-ink);
    letter-spacing: -0.02em;
}

.lumen-section-head .lumen-section-title::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lumen-accent), rgba(193, 127, 89, 0.15));
}

.lumen-stat-card {
    background: linear-gradient(165deg, var(--lumen-surface) 0%, #fefcfa 100%);
    border: 1px solid var(--lumen-border);
    border-radius: var(--lumen-radius);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lumen-stat-card:hover {
    border-color: rgba(193, 127, 89, 0.35);
    box-shadow: var(--lumen-shadow);
}

.lumen-section-band {
    background: linear-gradient(180deg, rgba(251, 247, 242, 0) 0%, var(--lumen-cream-deep) 8%, var(--lumen-cream-deep) 92%, rgba(251, 247, 242, 0) 100%);
}

.section-anchor {
    scroll-margin-top: 5.5rem;
}

.lumen-timeline-line {
    position: relative;
    padding-left: 1.5rem;
}

.lumen-timeline-line::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--lumen-accent) 0%, var(--lumen-border) 100%);
    border-radius: 2px;
}

.lumen-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.lumen-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lumen-surface);
    border: 2px solid var(--lumen-accent);
    box-shadow: 0 0 0 3px var(--lumen-accent-soft);
}

.lumen-cta-band {
    background: linear-gradient(145deg, var(--lumen-ink) 0%, #3d2c28 45%, #2a1f1c 100%);
    position: relative;
    overflow: hidden;
}

.lumen-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(193, 127, 89, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(122, 155, 138, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.lumen-gallery-tile {
    border-radius: var(--lumen-radius);
    overflow: hidden;
    border: 1px solid var(--lumen-border);
    background: var(--lumen-cream-deep);
    box-shadow: var(--lumen-shadow);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.lumen-gallery-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--lumen-shadow-lg);
    border-color: rgba(193, 127, 89, 0.3);
}

.lumen-gallery-tile img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lumen-gallery-tile:hover img {
    transform: scale(1.04);
}

.lumen-quote-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--lumen-accent);
    opacity: 0.35;
}

/* Legacy alias used in article cards */
.warm-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.warm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lumen-shadow-lg);
    border-color: rgba(193, 127, 89, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    html:has(.lumen-body) {
        scroll-behavior: auto;
    }
    .lumen-card,
    .warm-card,
    .lumen-btn-primary,
    .lumen-nav-link,
    .lumen-gallery-tile,
    .lumen-hero-photo-inner img {
        transition: none;
    }
    .lumen-card:hover,
    .warm-card:hover,
    .lumen-gallery-tile:hover,
    .lumen-hero-photo:hover .lumen-hero-photo-inner img {
        transform: none;
    }
}