/* postp.day Stylesheet */

:root {
    --primary-burgundy: #6A2A3A;
    --secondary-burgundy: #7A3A4A;
    --tertiary-burgundy: #8A4A5A;
    --rose-pink: #D44A6A;
    --near-black: #2A2025;
    --light-beige: #F0EBE5;
    --off-white: #F5F0EC;
    --taupe: #D8D0C8;
    --shadow-dark: #5A1A2A;
    --shadow-darkest: #4A1020;
    --accent-mauve: #6A5A5E;
    --accent-gold: #B89A50;

    --font-serif-display: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-serif-body: 'IBM Plex Serif', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: var(--near-black);
    font-family: var(--font-serif-body);
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif-display);
    font-weight: 900;
    color: var(--primary-burgundy);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--secondary-burgundy);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--tertiary-burgundy);
}

p {
    margin-bottom: 1.2em;
    max-width: 65ch;
}

blockquote {
    font-family: var(--font-serif-body);
    font-size: 1.1em;
    font-style: italic;
    color: var(--tertiary-burgundy);
    border-left: 4px solid var(--rose-pink);
    padding-left: 1.5em;
    margin: 1.5em 0;
}

.attribution {
    font-size: 0.9em;
    color: var(--secondary-burgundy);
    margin-top: 0.5em;
}

/* Inflated Text Effect */

.inflated {
    font-family: var(--font-serif-display);
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    text-shadow:
        0 1px 0 var(--shadow-dark),
        0 2px 0 #6A2A3A,
        0 3px 0 #7A3A4A,
        0 4px 0 #8A4A5A,
        0 5px 0 #9A5A6A,
        0 6px 8px rgba(74, 16, 32, 0.3);
    line-height: 1;
    color: var(--rose-pink);
    letter-spacing: -0.02em;
}

.inflated-small {
    font-family: var(--font-serif-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 4rem);
    text-shadow:
        0 1px 0 var(--shadow-dark),
        0 2px 0 #6A2A3A,
        0 3px 0 #7A3A4A,
        0 4px 0 #8A4A5A,
        0 5px 0 #9A5A6A,
        0 6px 8px rgba(74, 16, 32, 0.2);
    color: var(--rose-pink);
    letter-spacing: -0.02em;
}

/* Spread Layout */

.spread {
    min-height: 100vh;
    padding: 8vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-beige) 100%);
    border-top: 1px solid var(--taupe);
}

.spread:first-of-type {
    border-top: none;
}

.spread-content {
    width: 100%;
    max-width: 1200px;
}

/* Cover Spread */

.cover-spread {
    background: linear-gradient(135deg, var(--light-beige) 0%, #E8DFD7 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.domain-name {
    margin-bottom: 0.5em;
    animation: fade-in-up 1s ease-out;
}

.domain-subtitle {
    font-family: var(--font-serif-body);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--secondary-burgundy);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Intro Spread */

.intro-spread {
    background: linear-gradient(135deg, var(--off-white) 0%, #FDFAF5 100%);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column {
    display: flex;
    flex-direction: column;
}

.column p {
    margin-bottom: 1.2em;
}

.column ul {
    list-style-position: inside;
    margin-left: 1em;
    margin-bottom: 1.2em;
}

.column li {
    margin-bottom: 0.5em;
    color: var(--tertiary-burgundy);
}

.section-heading {
    color: var(--primary-burgundy);
}

.section-heading.centered {
    text-align: center;
    width: 100%;
}

/* Diagram Spread */

.diagram-spread {
    background: linear-gradient(135deg, #FAF7F3 0%, var(--light-beige) 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.glitch-diagram {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 2rem 0;
    filter: drop-shadow(0 4px 8px rgba(74, 16, 32, 0.15));
}

.venn-circle {
    fill: none;
    stroke: var(--accent-mauve);
    stroke-width: 3;
    opacity: 0.8;
}

.diagram-text {
    font-family: var(--font-serif-body);
    font-weight: 600;
    font-size: 16px;
    fill: var(--rose-pink);
    text-anchor: middle;
}

.diagram-caption {
    font-size: 0.9em;
    color: var(--tertiary-burgundy);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Three Column Spread */

.three-column-spread {
    background: linear-gradient(135deg, var(--off-white) 0%, #F9F6F1 100%);
}

.three-column {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 2rem;
}

.sidebar {
    font-size: 0.85em;
    line-height: 1.5;
    color: var(--accent-mauve);
}

.sidebar h3 {
    font-size: 0.95rem;
    margin-top: 0;
    color: var(--secondary-burgundy);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.6em;
    color: var(--tertiary-burgundy);
}

.main-text {
    max-width: 65ch;
}

.main-text h2 {
    margin-top: 0;
}

.main-text ul {
    list-style-position: inside;
    margin-left: 1em;
    margin-bottom: 1.2em;
}

.main-text li {
    margin-bottom: 0.5em;
    color: var(--secondary-burgundy);
}

/* Fullbleed Spread */

.fullbleed-spread {
    background: linear-gradient(135deg, #F5F0EC 0%, #EBE5DD 100%);
    flex-direction: column;
}

.fullbleed {
    width: 100%;
}

.glitch-art-full {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    filter: drop-shadow(0 8px 16px rgba(74, 16, 32, 0.2));
}

.glitch-bg {
    fill: var(--light-beige);
}

.crystal {
    fill: var(--taupe);
    stroke: var(--secondary-burgundy);
    stroke-width: 2;
}

.crystal:nth-child(1) {
    animation: glitch-shift 3s infinite;
}

.crystal:nth-child(2) {
    animation: glitch-shift 3.5s infinite;
    animation-delay: 0.3s;
}

.crystal:nth-child(3) {
    animation: glitch-shift 4s infinite;
    animation-delay: 0.6s;
}

.crystal:nth-child(4) {
    animation: glitch-shift 3.2s infinite;
    animation-delay: 0.9s;
}

.crystal:nth-child(5) {
    animation: glitch-shift 3.8s infinite;
    animation-delay: 1.2s;
}

.image-caption {
    font-size: 0.9em;
    color: var(--tertiary-burgundy);
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
}

/* Conclusion Spread */

.conclusion-spread {
    background: linear-gradient(135deg, var(--light-beige) 0%, #F0EBE5 100%);
}

/* Footer Spread */

.footer-spread {
    background: linear-gradient(135deg, var(--near-black) 0%, #3A3035 100%);
    color: var(--light-beige);
}

.centered-footer {
    text-align: center;
}

.footer-spread h3 {
    color: var(--rose-pink);
    margin-bottom: 0.5em;
}

.footer-spread p {
    color: var(--taupe);
    font-size: 0.95em;
}

.footer-meta {
    font-size: 0.8em;
    color: var(--secondary-burgundy);
    margin-top: 1.5em;
    opacity: 0.8;
}

/* Flourish */

.flourish {
    text-align: center;
    font-size: 1.2em;
    color: var(--rose-pink);
    margin-top: 1.5em;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Animations */

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

@keyframes glitch-shift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: translate(2px, -1px);
        opacity: 0.8;
    }
}

/* Responsive Design */

@media (max-width: 768px) {
    .spread {
        padding: 6vh 4vw;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .three-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        border-left: 3px solid var(--rose-pink);
        padding-left: 1rem;
    }

    .inflated {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .inflated-small {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    .glitch-diagram,
    .glitch-art-full {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: clamp(13px, 3vw, 16px);
    }

    .spread {
        padding: 4vh 3vw;
    }

    .spread-content {
        max-width: 100%;
    }

    h2 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .inflated {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .inflated-small {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .sidebar {
        font-size: 0.8em;
    }

    .two-column,
    .three-column {
        gap: 1rem;
    }
}
