/* ============================================
   polytics.club — Mid-Century Political Lounge
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f0e8d8;
    --cream-light: #f5efe3;
    --teal: #2a6b6e;
    --espresso: #3d2b1f;
    --deep-brown: #1e1510;
    --charcoal: #1a1613;
    --tan: #b8a891;
    --amber: #c9913a;
    --terracotta: #c4563a;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--espresso);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Paper-Aged Texture (applied to body) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.04) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* --- Section Base --- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.section__inner {
    max-width: 720px;
    width: 100%;
}

.section__inner--text {
    max-width: 640px;
}

.section__label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 1rem;
}

.section__heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--deep-brown);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section__rule {
    width: 60px;
    height: 3px;
    background-color: var(--amber);
    margin-bottom: 2rem;
}

.section__body {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--espresso);
    margin-bottom: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
}

/* --- Hero --- */
.section--hero {
    flex-direction: column;
    background-color: var(--charcoal);
    color: var(--cream);
}

.section--hero .section__inner {
    text-align: center;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(6rem, 15vw, 14rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--cream);
    line-height: 0.9;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero__title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__rule {
    width: 80px;
    height: 3px;
    background-color: var(--amber);
    margin: 2rem auto;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.hero__rule.visible {
    opacity: 1;
}

.hero__subtitle {
    font-family: var(--font-ui);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tan);
    opacity: 0;
    transition: opacity 0.8s ease 0.8s;
}

.hero__subtitle.visible {
    opacity: 1;
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.8s ease 1.2s;
}

.scroll-cue.visible {
    opacity: 1;
}

.scroll-cue__text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tan);
}

.scroll-cue__line {
    width: 1px;
    height: 40px;
    background: var(--tan);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Platform (Mission) --- */
.section--platform {
    background-color: var(--cream);
}

/* --- Debate Floor --- */
.section--debate {
    background-color: var(--cream-light);
}

.debate__grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 1rem;
}

.debate__item {
    border-left: 3px solid var(--teal);
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.debate__item.visible {
    opacity: 1;
    transform: translateY(0);
}

.debate__number {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--teal);
    display: block;
    margin-bottom: 0.35rem;
}

.debate__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.debate__desc {
    font-size: 0.95rem;
    color: var(--espresso);
    line-height: 1.7;
}

/* --- Editorial (Quote) --- */
.section--editorial {
    background-color: var(--espresso);
    color: var(--cream);
}

.section--editorial .section__label {
    color: var(--amber);
}

.section--editorial .section__heading {
    color: var(--cream);
}

.section--editorial .section__rule {
    background-color: var(--terracotta);
}

.section--editorial .section__body {
    color: var(--tan);
}

.editorial__quote {
    border-left: 3px solid var(--amber);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.editorial__quote p {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--cream-light);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.editorial__quote cite {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.08em;
    color: var(--tan);
}

/* --- Caucus (CTA) --- */
.section--caucus {
    background-color: var(--charcoal);
    color: var(--cream);
}

.section--caucus .section__label {
    color: var(--amber);
}

.section--caucus .section__heading {
    color: var(--cream);
}

.section--caucus .section__body {
    color: var(--tan);
}

.caucus__cta {
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--charcoal);
    background-color: var(--amber);
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

.cta-button:hover {
    background-color: var(--terracotta);
    color: var(--cream);
    transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
    background-color: var(--deep-brown);
    padding: 2rem;
    text-align: center;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer__mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--tan);
}

.footer__year {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--tan);
    opacity: 0.6;
}

/* --- Scroll Reveal (general) --- */
.section--platform .section__inner,
.section--editorial .section__inner,
.section--caucus .section__inner {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section--platform .section__inner.visible,
.section--editorial .section__inner.visible,
.section--caucus .section__inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Horizontal rules on sections (decorative topline) --- */
.section--debate::before,
.section--editorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tan), transparent);
    opacity: 0.3;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .section {
        padding: 3rem 1.25rem;
    }

    .hero__title {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }
}
