/* voting.wiki — chrome + leather + dopamine */

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

:root {
    --chrome-dark: #2a2a30;
    --chrome-mid: #4a4a54;
    --chrome-hi: #8a8a98;
    --chrome-bright: #c0c0cc;
    --leather: #5a4030;
    --leather-light: #8a7060;
    --text: #eeeef0;
    --gold: #d4a830;
}

html, body {
    background: var(--chrome-dark);
    color: var(--text);
    font-family: "Lato", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

.page {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #2a2a30 0%, #3a3a44 50%, #2a2a30 100%);
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.leather-edge {
    height: 100%;
    background: var(--leather);
    position: relative;
    overflow: hidden;
}

.leather-edge-left {
    border-right: 4px solid var(--gold);
}

.leather-edge-right {
    border-left: 4px solid var(--gold);
}

.leather-edge-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: var(--leather);
    border-left: 3px solid var(--gold);
}

.leather-noise {
    position: absolute;
    inset: 0;
    background: var(--leather);
    filter: url(#leather);
    opacity: 0.65;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(138, 112, 96, 0.4), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(60, 40, 28, 0.5), transparent 50%);
    background-blend-mode: overlay;
}

.hero-panel {
    text-align: center;
    padding: 60px 32px;
    position: relative;
    border: 1px solid var(--chrome-hi);
    background: linear-gradient(180deg, rgba(74, 74, 84, 0.3) 0%, rgba(42, 42, 48, 0.4) 100%);
    margin: 0 24px;
    box-shadow:
        0 0 0 1px rgba(192, 192, 204, 0.1) inset,
        0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--chrome-mid);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-family: "Noto Sans Mono", monospace;
    font-size: 12px;
    color: var(--chrome-bright);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 4px 14px;
    border: 1px solid var(--chrome-hi);
    background: rgba(74, 74, 84, 0.3);
}

.hero-title {
    font-family: "EB Garamond", serif;
    font-weight: 700;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #f0f0f4 0%, #b0b0bc 50%, #707080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.title-dot {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    background: none;
}

.hero-subtitle {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: clamp(18px, 2.4vw, 26px);
    color: var(--text);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle em {
    color: var(--gold);
    font-style: italic;
}

.hero-meter {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto 24px;
    font-family: "Noto Sans Mono", monospace;
    font-size: 12px;
    color: var(--chrome-bright);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meter-track {
    flex: 1;
    height: 8px;
    background: var(--chrome-dark);
    border: 1px solid var(--chrome-hi);
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, #f0c850 100%);
    transition: width 400ms ease-out;
    box-shadow: 0 0 8px rgba(212, 168, 48, 0.5);
}

.meter-pct {
    color: var(--gold);
    min-width: 40px;
    text-align: right;
}

.hero-hint {
    font-family: "Noto Sans Mono", monospace;
    font-size: 11px;
    color: var(--chrome-hi);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Topics */
.topic {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.topic-1 {
    background: linear-gradient(180deg, #2a2a30 0%, #34343c 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-bottom: -40px;
}

.topic-2 {
    background: linear-gradient(180deg, #34343c 0%, #2a2a30 100%);
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-bottom: -40px;
}

.topic-3 {
    background: linear-gradient(180deg, #2a2a30 0%, #383840 100%);
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-bottom: -40px;
}

.topic-4 {
    background: linear-gradient(180deg, #383840 0%, #2a2a30 100%);
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-bottom: -40px;
}

.topic-5 {
    background: linear-gradient(180deg, #2a2a30 0%, #1f1f25 100%);
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
}

.chrome-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--chrome-bright) 0%, var(--chrome-hi) 50%, var(--chrome-mid) 100%);
}

.topic-inner {
    max-width: 800px;
    padding: 0 clamp(32px, 6vw, 80px);
    margin-left: clamp(40px, 8vw, 100px);
}

.topic-num {
    font-family: "Noto Sans Mono", monospace;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 4px 12px;
}

.topic-title {
    font-family: "EB Garamond", serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.topic-lede {
    font-family: "Lato", sans-serif;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 18px;
    font-weight: 400;
}

.topic-body {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(238, 238, 240, 0.8);
    margin-bottom: 28px;
}

/* Stats */
.topic-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    border-top: 1px solid var(--chrome-mid);
    padding-top: 24px;
}

.topic-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: "Noto Sans Mono", monospace;
    font-weight: 500;
    font-size: 28px;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: var(--chrome-bright);
    line-height: 1.4;
}

/* Rounds list */
.rounds-list {
    list-style: none;
    margin-top: 24px;
    border-left: 2px solid var(--gold);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rounds-list li {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: var(--text);
    position: relative;
}

.rounds-list li::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #f0d870, #d4a830 50%, #8a6810 100%);
    border-radius: 50%;
}

.round-tag {
    display: inline-block;
    font-family: "Noto Sans Mono", monospace;
    font-size: 12px;
    color: var(--gold);
    background: rgba(212, 168, 48, 0.1);
    padding: 2px 8px;
    margin-right: 8px;
    border: 1px solid rgba(212, 168, 48, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Approval grid */
.approval-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.approval-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(74, 74, 84, 0.6) 0%, rgba(42, 42, 48, 0.6) 100%);
    border: 1px solid var(--chrome-hi);
    font-family: "Lato", sans-serif;
    font-size: 15px;
    color: var(--text);
}

.approval-card .check {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 35%, #f0d870, var(--gold) 50%, #8a6810 100%);
    color: var(--chrome-dark);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.approval-card.minus .check {
    background: radial-gradient(circle at 35% 35%, #c0c0cc, #8a8a98 50%, #4a4a54 100%);
    color: var(--text);
}

/* Code tally */
.code-tally {
    margin-top: 24px;
    background: var(--chrome-dark);
    color: var(--gold);
    padding: 18px 22px;
    font-family: "Noto Sans Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
    border-left: 4px solid var(--gold);
    border-top: 1px solid var(--chrome-mid);
    border-right: 1px solid var(--chrome-mid);
    border-bottom: 1px solid var(--chrome-mid);
    overflow-x: auto;
    white-space: pre;
}

/* Quote */
.topic-quote {
    margin-top: 24px;
    padding: 24px 28px;
    border-left: 4px solid var(--gold);
    background: linear-gradient(180deg, rgba(74, 74, 84, 0.3) 0%, rgba(42, 42, 48, 0.4) 100%);
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.5;
    color: var(--text);
    border-top: 1px solid var(--chrome-mid);
    border-right: 1px solid var(--chrome-mid);
    border-bottom: 1px solid var(--chrome-mid);
}

/* Slide reveal */
.slide-reveal {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.slide-reveal.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Achievements */
.achievements {
    background: linear-gradient(180deg, #1f1f25 0%, #14141a 100%);
    padding: 80px 24px 64px;
    text-align: center;
    position: relative;
    border-top: 4px solid var(--gold);
}

.achievements-title {
    font-family: "EB Garamond", serif;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--gold);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    transition: opacity 400ms ease, transform 400ms ease;
}

.badge.unlocked {
    opacity: 1;
    transform: translateY(-2px);
}

.badge-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 35%, var(--chrome-bright), var(--chrome-hi) 40%, var(--chrome-mid) 80%);
    border-radius: 50%;
    font-family: "EB Garamond", serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--chrome-dark);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.badge.unlocked .badge-num {
    background: radial-gradient(circle at 35% 35%, #f0d870, var(--gold) 50%, #8a6810 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.25),
        0 0 18px rgba(212, 168, 48, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.badge-label {
    font-family: "Noto Sans Mono", monospace;
    font-size: 11px;
    color: var(--chrome-bright);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge.unlocked .badge-label {
    color: var(--gold);
}

.footer-meta {
    font-family: "Noto Sans Mono", monospace;
    font-size: 12px;
    color: var(--chrome-hi);
    letter-spacing: 0.12em;
}

/* Responsive */
@media (max-width: 760px) {
    .hero {
        grid-template-columns: 30px 1fr 30px;
    }
    .topic-stats {
        grid-template-columns: 1fr;
    }
    .approval-grid {
        grid-template-columns: 1fr;
    }
    .topic-inner {
        margin-left: 24px;
        margin-right: 24px;
    }
    .leather-edge-side {
        width: 24px;
    }
}
