/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
    --cream:       #f7f5f0;
    --warm-white:  #faf9f6;
    --parchment:   #efece6;
    --bone:        #e4e0d8;
    --tan:         #d1cdc4;
    --stone:       #a8a49b;
    --flint:       #7a766e;
    --charcoal:    #4a4641;
    --ink:         #2c2926;
    --black:       #1a1816;
    --red:         #c41e3a;
    --red-soft:    #d4354f;
    --red-wash:    rgba(196, 30, 58, 0.12);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--red);
    color: var(--warm-white);
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════════════════════════
   PAPER GRAIN OVERLAY
   ═══════════════════════════════════════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    background: var(--warm-white);
    border-bottom: 1px solid var(--bone);
}

/* Subtle radial warmth */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red-wash) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
}

.hero-overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-overline .hero-dot {
    color: var(--red);
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 0.85;
    text-align: center;
    color: var(--black);
    position: relative;
    opacity: 0;
    animation: fade-up 1.2s var(--ease-out-expo) 0.5s forwards;
}

.letter-accent {
    color: var(--red);
    font-style: italic;
}

.hero-rule {
    width: 60px;
    height: 2px;
    background: var(--red);
    margin: 2.5rem 0;
    border: none;
    opacity: 0;
    animation: scale-in 1s var(--ease-out-expo) 0.8s forwards;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--flint);
    text-align: center;
    max-width: 500px;
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) 1s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) 1.4s forwards;
}

.hero-scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--stone), transparent);
    animation: arrow-bob 2s ease-in-out infinite;
}

@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ═══════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════ */
.section {
    padding: 8rem 2rem;
    position: relative;
}

/* ═══════════════════════════════════════
   INTRO / MANIFESTO QUOTE
   ═══════════════════════════════════════ */
.intro {
    border-bottom: 1px solid var(--bone);
    background: var(--cream);
    padding: 10rem 2rem;
}

.intro-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.intro-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 3rem;
}

.intro-headline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--black);
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}

.intro-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--charcoal);
    max-width: 540px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   PILLAR BLOCKS
   ═══════════════════════════════════════ */
.pillar-block {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    gap: 5rem;
    max-width: 900px;
    margin: 0 auto;
}

#reading, #staycation {
    background-color: var(--warm-white);
    border-bottom: 1px solid var(--bone);
}

#exercise, #thrift {
    background-color: var(--cream);
    border-bottom: 1px solid var(--bone);
}

.pillar-block.reverse {
    grid-template-columns: 1.2fr 1.2fr;
}

.pillar-block.reverse .pillar-visual {
    order: 2;
}

.pillar-block.reverse .pillar-info {
    order: 1;
}

.pillar-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.pillar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info / Text side */
.pillar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.pillar-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 1.5rem;
}

.pillar-word {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}

.pillar-accent {
    color: var(--red);
    font-weight: 900;
}

.pillar-more {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pillar-more-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 500;
}

.pillar-more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pillar-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-decoration: none;
    color: var(--charcoal);
    background: var(--parchment);
    border: 1px solid var(--bone);
    border-radius: 4px;
    transition: all 0.2s var(--ease-out-expo);
}

.pillar-more-link:hover {
    color: var(--red);
    background: var(--warm-white);
    border-color: var(--red-soft);
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.08);
    transform: translateY(-1.5px);
}

.pillar-meaning {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 2rem;
}

.pillar-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--charcoal);
    margin-bottom: 2rem;
    max-width: 420px;
}

.quote-carousel {
    position: relative;
    max-width: 400px;
    padding-left: 1.5rem;
    border-left: 2px solid var(--red);
}

.quote-slide {
    display: none;
}

.quote-slide.active {
    display: block;
    animation: quote-fade 0.4s ease;
}

@keyframes quote-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--flint);
    margin-bottom: 0.6rem;
}

.quote-author {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone);
}

.quote-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.quote-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tan);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.quote-dot:hover {
    background: var(--stone);
}

.quote-dot.active {
    background: var(--red);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════
   CLOSING / FOOTER
   ═══════════════════════════════════════ */
.footer-manifesto {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--warm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-manifesto-thought {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--charcoal);
    max-width: 500px;
}

.footer-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: var(--charcoal);
    background: var(--parchment);
    border: 1px solid var(--bone);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    margin: 0.4rem 0 0.8rem 0;
}

.footer-print-btn:hover {
    color: var(--red);
    background: var(--warm-white);
    border-color: var(--red-soft);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.08);
    transform: translateY(-1.5px);
}

.footer-print-btn:active {
    transform: translateY(0);
}

.print-icon {
    stroke-width: 2.2px;
}

.footer-manifesto-credits {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-manifesto-credits a {
    color: var(--stone);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-manifesto-credits a:hover {
    color: var(--red);
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
    margin: 2.2rem 0;
}





/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

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

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .pillar-block {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 4rem 2rem;
        gap: 2.5rem;
    }

    .pillar-block.reverse {
        grid-template-columns: 1fr;
    }

    .pillar-block.reverse .pillar-visual {
        order: 1;
    }

    .pillar-block.reverse .pillar-info {
        order: 2;
    }

    .pillar-visual {
        aspect-ratio: 1 / 1;
        max-width: 384px;
        margin: 0 auto;
    }

    .pillar-info {
        padding: 0;
        max-width: 420px;
        margin: 0 auto;
    }

    .pillar-desc,
    .quote-carousel {
        max-width: 100%;
    }

    .quote-dots {
        justify-content: flex-start;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .intro {
        padding: 6rem 2rem;
    }
}

@media (max-width: 480px) {
    .pillar-block {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .pillar-visual {
        max-width: 336px;
        margin: 0 auto;
    }

    .intro {
        padding: 5rem 1.5rem;
    }

    .intro-headline {
        font-size: 1.4rem;
    }

    .pillar-desc {
        font-size: 0.95rem;
    }

    .quote-text {
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }
}

/* ═══════════════════════════════════════
   PRINT STYLES (Single Page Manifesto)
   ═══════════════════════════════════════ */
@media print {
    @page {
        size: A4 portrait;
        margin: 0.8cm 1.2cm;
    }

    html, body {
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 10.5pt !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Force all sections, backgrounds, and borders to be transparent/white */
    section,
    #reading,
    #exercise,
    #staycation,
    #thrift,
    .pillar-block,
    .hero,
    .footer-manifesto {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
    }

    /* Hide the hero's radial pulse glowing background circle */
    .hero::before {
        display: none !important;
    }

    /* Disable animations and force full opacity/visibility for text */
    .reveal,
    .hero-title,
    .hero-subtitle {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
        animation: none !important;
    }

    /* Hide non-essential sections */
    .intro,
    .hero-overline,
    .hero-rule,
    .hero-scroll-hint,
    .pillar-index,
    .quote-carousel,
    .pillar-more,
    .footer-dot,
    .footer-manifesto-credits,
    .footer-print-btn {
        display: none !important;
    }

    /* Compact Header */
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding: 0 0 1rem 0 !important;
        display: block !important;
        text-align: center !important;
        border-bottom: 1px solid #111111 !important;
        max-width: 700px !important;
        margin: 3.5rem auto 1.5rem auto !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        margin: 0 0 0.2rem 0 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.05em !important;
        color: #111111 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin: 0 auto !important;
        color: #555555 !important;
        max-width: none !important;
    }

    /* 4 Horizontal blocks (side-by-side image and text) */
    .pillar-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important; /* Top-align content */
        justify-content: center !important;
        padding: 1.3rem 0 !important;
        gap: 2.5rem !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        border-bottom: 1px dashed #dddddd !important;
    }

    /* Remove reverse ordering for print so images are consistently on the left */
    .pillar-block.reverse {
        flex-direction: row !important;
    }
    
    .pillar-block.reverse .pillar-visual {
        order: 0 !important;
        margin: 0 !important;
    }
    
    .pillar-block.reverse .pillar-info {
        order: 1 !important;
    }

    /* Compact Images */
    .pillar-visual {
        width: 140px !important;
        height: 140px !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin-top: 0.2rem !important; /* Align top of image container with text baseline cap-height */
    }

    .pillar-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Compact Info */
    .pillar-info {
        flex-grow: 1 !important;
        padding: 0 !important;
        display: block !important;
    }

    .pillar-word {
        font-size: 1.3rem !important;
        margin: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        color: #111111 !important;
    }

    /* Display pillar meaning as inline text next to the title */
    .pillar-meaning {
        font-family: var(--font-mono) !important;
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: var(--red) !important; /* Keep the elegant red accent color */
        display: inline-block !important;
        margin: 0 0 0 0.8rem !important;
        vertical-align: middle !important;
    }

    .pillar-desc {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        margin: 0.4rem 0 0 0 !important;
        color: #333333 !important;
        max-width: none !important;
    }

    /* Simple minimal footer */
    .footer-manifesto {
        margin-top: 1.2rem !important;
        padding: 0.5rem 0 !important;
        text-align: center !important;
    }

    .footer-manifesto-thought {
        font-size: 0.8rem !important;
        color: #555555 !important;
        margin: 0 !important;
        background: transparent !important;
    }
}

