/* dilemma.studio - Wabi-sabi + Dashboard Hybrid */

:root {
    --bg-deep: #1C1914;
    --bg-surface: #2A241D;
    --bg-elevated: #3D352B;
    --text-primary: #E8DFD0;
    --text-secondary: #A89A86;
    --accent-amber: #C4944A;
    --accent-verdigris: #7A9B8E;
    --accent-terracotta: #A65D4E;
    --border: #8B7355;
    --vein: #6B5E50;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Navigation Strip */
.nav-strip {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
    padding: 12px 0;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-dot:nth-child(odd) {
    background-color: var(--text-primary);
}

.nav-dot:nth-child(even) {
    background-color: var(--accent-amber);
}

.nav-dot.active {
    transform: perspective(200px) rotateY(5deg);
    box-shadow: 0 0 12px rgba(196, 148, 74, 0.4), 0 0 4px rgba(196, 148, 74, 0.8);
    animation: amber-pulse 4s ease-in-out infinite;
}

@keyframes amber-pulse {
    0%, 100% { transform: perspective(200px) rotateY(5deg) scale(1); }
    50% { transform: perspective(200px) rotateY(5deg) scale(1.04); }
}

/* Page Grid */
.page-grid {
    display: grid;
    grid-template-columns: 100px 1fr 240px;
    min-height: 100vh;
    margin-left: 32px;
    gap: 24px;
}

/* Left Gutter */
.left-gutter {
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    justify-content: flex-start;
    padding-left: 8px;
}

.status-indicator {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.status-indicator svg {
    width: 48px;
    height: 48px;
    display: block;
}

.status-indicator::after {
    content: attr(data-label);
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.status-indicator:hover {
    transform: perspective(300px) rotateX(5deg) rotateY(-5deg);
}

.status-indicator:hover::after {
    opacity: 1;
}

/* Main Content */
.main-content {
    padding: 0 24px;
    max-width: 900px;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 48px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(72px, 12vw, 200px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.hero-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
    opacity: 0.5;
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Marble Divider */
.marble-divider {
    width: 100%;
    height: 4px;
    margin: 0 0 48px 0;
}

.marble-divider svg {
    width: 100%;
    height: 4px;
    display: block;
}

/* Dilemma Sections */
.dilemma-section {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Column Divider */
.column-divider {
    margin: 40px auto;
    width: 4px;
    height: 120px;
    opacity: 0.6;
}

.column-divider svg {
    width: 4px;
    height: 100%;
    display: block;
}

/* Dilemma Cards */
.dilemma-card {
    position: relative;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 40px rgba(139, 115, 85, 0.08);
    clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
    overflow: hidden;
    transition: transform 0.3s ease-out;
    will-change: transform;
    background-color: var(--bg-surface);
}

.card-marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.14;
    pointer-events: none;
}

.card-marble-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 40px 48px;
}

.card-index {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-amber);
}

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.card-body p {
    margin-bottom: 20px;
    color: var(--text-primary);
    max-width: 65ch;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body em {
    font-style: italic;
    color: var(--accent-verdigris);
}

.card-meta {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--vein);
}

.card-meta .mono-label {
    color: var(--accent-amber);
    font-size: 11px;
}

/* Foxing marks - paper aging effect */
.dilemma-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(196, 148, 74, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(196, 148, 74, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(196, 148, 74, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 15%, rgba(196, 148, 74, 0.03) 0%, transparent 35%),
        radial-gradient(ellipse at 25% 55%, rgba(196, 148, 74, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Card entrance animation */
.dilemma-card.card-hidden {
    opacity: 0;
    transform: translateY(30px) rotateX(2deg);
}

.dilemma-card.card-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1), transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Right Rail */
.right-rail {
    padding-top: 60vh;
    padding-right: 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vein) transparent;
}

.right-rail::-webkit-scrollbar {
    width: 4px;
}

.right-rail::-webkit-scrollbar-track {
    background: transparent;
}

.right-rail::-webkit-scrollbar-thumb {
    background-color: var(--vein);
    border-radius: 2px;
}

.annotation {
    margin-bottom: 48px;
    padding-left: 12px;
    border-left: 1px solid var(--vein);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.annotation:hover {
    opacity: 1;
}

.annotation-ref {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-amber);
    font-size: 11px;
}

.annotation-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.annotation-text em {
    color: var(--accent-verdigris);
}

/* Footer */
.site-footer {
    padding: 80px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-line {
    width: 60px;
    height: 1px;
    background-color: var(--border);
    margin-bottom: 8px;
}

.footer-year {
    color: var(--vein);
}

/* Responsive */
@media (max-width: 900px) {
    .page-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .nav-strip {
        display: none;
    }

    .left-gutter {
        display: none;
    }

    .right-rail {
        position: static;
        height: auto;
        overflow: visible;
        padding-top: 24px;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 48px;
    }

    .main-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .card-content {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: clamp(48px, 15vw, 120px);
    }
}
