/* ========================================
   STORIOGRAPHER.NET - COMPLETE STYLESHEET
   Inflated-3D Aesthetic with Sharp Angles
   ======================================== */

/* ========================================
   ROOT VARIABLES & PALETTE
   ======================================== */

:root {
    --fired-clay: #B4602E;
    --terracotta-blush: #D4845A;
    --raw-sienna: #C97D3C;
    --parchment-cream: #F2E6D4;
    --sage-frost: #C8D4B8;
    --espresso-bark: #2A1810;
    --kiln-smoke: #7A6355;
    --ember-glow: #E85D3A;

    --hero-gradient: radial-gradient(ellipse at 30% 60%, #D4845A 0%, #B4602E 40%, #2A1810 100%);
    --warm-gradient: linear-gradient(165deg, #B4602E 0%, #C97D3C 50%, #D4845A 100%);
    --botanical-overlay: linear-gradient(to bottom, rgba(200, 212, 184, 0.08) 0%, transparent 60%);
}

/* ========================================
   GLOBAL RESET & TYPOGRAPHY
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--espresso-bark);
    color: var(--kiln-smoke);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Anybody', cursive;
    font-variation-settings: 'wdth' 130;
    letter-spacing: -0.02em;
    color: var(--espresso-bark);
}

p {
    margin-bottom: 1.5rem;
}

blockquote {
    border-left: 4px solid var(--raw-sienna);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.6;
    color: var(--kiln-smoke);
    font-style: italic;
}

/* ========================================
   HERO SECTION - THE CANOPY
   ======================================== */

.canopy {
    width: 100vw;
    height: 100vh;
    background: var(--espresso-bark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.canopy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    opacity: 0;
    animation: gradientFadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes gradientFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.title-word {
    font-family: 'Anybody', cursive;
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 800;
    font-variation-settings: 'wdth' 100;
    color: var(--parchment-cream);
    text-shadow:
        1px 1px 0 #C97D3C,
        2px 2px 0 #B4602E,
        3px 4px 1px #9A4F22,
        4px 6px 2px rgba(42, 24, 16, 0.4),
        5px 8px 4px rgba(42, 24, 16, 0.3),
        6px 10px 8px rgba(42, 24, 16, 0.2),
        7px 14px 14px rgba(42, 24, 16, 0.15),
        8px 18px 22px rgba(42, 24, 16, 0.1);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: titleInflate 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.8s;
}

.title-word:nth-child(3) {
    animation-delay: 1s;
}

@keyframes titleInflate {
    from {
        opacity: 0;
        font-variation-settings: 'wdth' 50;
    }
    to {
        opacity: 1;
        font-variation-settings: 'wdth' 150;
    }
}

.diagonal-slash {
    width: 120px;
    height: 60px;
    opacity: 0;
    animation: slashDraw 0.6s ease-out 2.2s forwards;
    stroke: var(--raw-sienna);
}

@keyframes slashDraw {
    from {
        stroke-dasharray: 150;
        stroke-dashoffset: 150;
        opacity: 0;
    }
    to {
        stroke-dasharray: 150;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.hero-subtitle {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--raw-sienna);
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 2.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   SLASH ZONE TRANSITION
   ======================================== */

.slash-zone {
    width: 100vw;
    height: 40vh;
    background: var(--warm-gradient);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.fern-divider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fern-stem {
    width: 2px;
    height: 80%;
    background-color: var(--sage-frost);
    position: relative;
}

.leaflets {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.leaflet {
    position: absolute;
    width: 40px;
    height: 15px;
    background-color: rgba(200, 212, 184, 0.4);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(calc(30deg * var(--i))) translateY(-80px);
    border-radius: 0 80% 0 80%;
}

/* ========================================
   STRATA SECTIONS
   ======================================== */

.strata {
    width: 100vw;
    min-height: 90vh;
    padding: 8rem clamp(2rem, 8vw, 12rem);
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    animation: breathe 6s ease-in-out infinite;
}

.strata-1, .strata-3, .strata-5 {
    background-color: var(--fired-clay);
    color: var(--parchment-cream);
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}

.strata-2, .strata-4 {
    background-color: var(--parchment-cream);
    color: var(--espresso-bark);
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
}

.strata-content {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.strata-1 .strata-content,
.strata-3 .strata-content,
.strata-5 .strata-content {
    margin-left: 15vw;
}

.strata-2 .strata-content,
.strata-4 .strata-content {
    margin-right: 15vw;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: inset 0 0 40px rgba(180, 95, 56, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow: inset 0 0 80px rgba(180, 95, 56, 0.12);
        transform: scale(1.003);
    }
}

/* ========================================
   STRATA TYPOGRAPHY
   ======================================== */

.section-label {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--raw-sienna);
    margin-bottom: 1rem;
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 20px;
    background-color: var(--raw-sienna);
    margin-right: 1rem;
    vertical-align: middle;
    transform: rotate(15deg);
}

.strata-heading {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    transition: font-variation-settings 0.6s ease-out, text-shadow 0.4s ease-out;
}

.strata-1 .strata-heading,
.strata-3 .strata-heading,
.strata-5 .strata-heading {
    color: var(--parchment-cream);
}

.strata-2 .strata-heading,
.strata-4 .strata-heading {
    color: var(--espresso-bark);
}

.strata-heading:hover {
    font-variation-settings: 'wdth' 150;
}

.strata-body {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    margin-bottom: 1.5rem;
}

.strata-1 .strata-body,
.strata-3 .strata-body,
.strata-5 .strata-body {
    color: var(--parchment-cream);
}

.strata-2 .strata-body,
.strata-4 .strata-body {
    color: var(--kiln-smoke);
}

.pull-quote {
    position: relative;
    transform: skewX(-5deg);
    padding: 2rem;
    border: none;
    border-left: 4px solid var(--raw-sienna);
    background-color: rgba(201, 125, 60, 0.1);
    margin: 2rem 0;
}

.pull-quote::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--raw-sienna);
}

/* ========================================
   BOTANICAL ELEMENTS
   ======================================== */

.pressed-flower {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 5%;
    opacity: 0.15;
    pointer-events: none;
}

.strata-1 .pressed-flower,
.strata-3 .pressed-flower,
.strata-5 .pressed-flower {
    right: 5%;
}

.strata-2 .pressed-flower,
.strata-4 .pressed-flower {
    left: 5%;
}

.pressed-flower::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--raw-sienna);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pressed-flower::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background:
        conic-gradient(from 0deg, transparent 0deg 72deg, var(--terracotta-blush) 72deg 144deg),
        conic-gradient(from 72deg, transparent 0deg 72deg, var(--terracotta-blush) 72deg 144deg),
        conic-gradient(from 144deg, transparent 0deg 72deg, var(--terracotta-blush) 72deg 144deg),
        conic-gradient(from 216deg, transparent 0deg 72deg, var(--terracotta-blush) 72deg 144deg),
        conic-gradient(from 288deg, transparent 0deg 72deg, var(--terracotta-blush) 72deg 144deg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ========================================
   ROOT SYSTEM FOOTER
   ======================================== */

.root-system {
    width: 100vw;
    min-height: 60vh;
    background-color: var(--espresso-bark);
    color: var(--sage-frost);
    padding: 4rem clamp(2rem, 8vw, 12rem);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.root-network {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.root-primary,
.root-secondary {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 50ch;
}

.footer-text {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--sage-frost);
}

.footer-meta {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--raw-sienna);
}

/* ========================================
   MAGNETIC INTERACTION
   ======================================== */

.magnetic {
    cursor: pointer;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .title-word {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .strata {
        padding: 4rem 1.5rem;
    }

    .strata-1 .strata-content,
    .strata-3 .strata-content,
    .strata-5 .strata-content,
    .strata-2 .strata-content,
    .strata-4 .strata-content {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        gap: 0.5rem;
    }

    .diagonal-slash {
        width: 80px;
        height: 40px;
    }

    .pressed-flower {
        width: 80px;
        height: 80px;
        opacity: 0.1;
    }

    .strata-1, .strata-3, .strata-5 {
        clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
    }

    .strata-2, .strata-4 {
        clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    }
}

@media (max-width: 480px) {
    .title-word {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .hero-title {
        flex-direction: column;
        gap: 0.25rem;
    }

    .diagonal-slash {
        width: 60px;
        height: 30px;
        margin: 0 auto;
    }

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

    .pull-quote {
        font-size: clamp(1rem, 2vw, 1.3rem);
        padding: 1.5rem;
    }

    blockquote {
        font-size: clamp(1rem, 2vw, 1.3rem);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
