/* ronri.org - Street-Philosophy Zine */
/* Color Palette */
:root {
    --raw-linen: #f0e8dc;
    --dark-earth: #3b3226;
    --charred-umber: #2d2418;
    --stone-gray: #8a7d6b;
    --warm-ochre: #c4956a;
    --faded-indigo: #5e6b7a;
    --dried-sage: #8a9876;
    --warm-parchment: #e8ddd0;
    --concrete-light: #453d30;
    --concrete-mid: #4a4238;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--raw-linen);
    color: var(--charred-umber);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.06;
    filter: url(#grain-filter);
    background: rgba(0,0,0,0.15);
}

/* Typography */
.section-headline,
.evidence-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    letter-spacing: -0.03em;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--warm-ochre);
    position: relative;
}

.section-headline::before,
.evidence-headline::before {
    content: attr(data-text);
    position: absolute;
    top: 1px;
    left: 1.5px;
    color: var(--faded-indigo);
    opacity: 0.4;
    z-index: -1;
}

.hw-bold {
    font-weight: 800;
}

.hw-light {
    font-weight: 300;
}

.section-annotation {
    font-family: 'Inclusive Sans', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--stone-gray);
    display: block;
    margin-bottom: 2rem;
}

/* ======================== */
/* SECTION 1: THE PREMISE   */
/* ======================== */
.section-premise {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.premise-image {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
}

.premise-image .duotone-img {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 70%, var(--charred-umber) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, var(--warm-ochre) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, var(--dark-earth) 0%, var(--charred-umber) 100%);
    filter: contrast(1.1);
}

.premise-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, var(--warm-ochre), var(--charred-umber));
    mix-blend-mode: multiply;
    opacity: 0.5;
}

.premise-content {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    padding: 0 calc(100% / 12);
    z-index: 2;
}

.premise-statement {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.58;
    color: var(--warm-parchment);
    max-width: calc(100% * 8 / 12);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.2s ease-out 0.6s, transform 1.2s ease-out 0.6s;
}

.premise-statement.visible {
    opacity: 1;
    transform: translateY(0);
}

.premise-domain {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--warm-parchment);
    opacity: 0;
    transition: opacity 1.2s ease-out;
    z-index: 2;
}

.premise-domain.visible {
    opacity: 0.7;
}

/* ========================== */
/* SECTION 2: THE ARGUMENT    */
/* ========================== */
.section-argument {
    position: relative;
    background-color: var(--raw-linen);
    padding: 12vh 0 8vh;
    z-index: 3;
}

.argument-content {
    width: calc(100% * 10 / 12);
    margin-left: calc(100% / 12);
    padding: 0 1rem;
}

.argument-content .section-headline {
    margin-bottom: 4vh;
}

.argument-content p {
    margin-bottom: 2.5rem;
    max-width: 55ch;
}

/* Full-bleed blockquote */
.full-bleed-quote {
    width: 100vw;
    background-color: var(--dark-earth);
    padding: 8vh 0;
    margin: 6vh 0;
    position: relative;
}

.full-bleed-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1.5px 1.5px at 20% 30%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 70%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, var(--concrete-light) 0%, transparent 100%);
    opacity: 0.06;
}

.quote-inner {
    width: calc(100% * 8 / 12);
    margin-left: calc(100% * 2 / 12);
    padding-left: 2rem;
    border-left: 3px solid var(--warm-ochre);
}

.quote-inner p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.58;
    color: var(--warm-parchment);
    margin-bottom: 1rem;
}

.quote-inner cite {
    font-style: normal;
    color: var(--stone-gray);
}

/* ======================== */
/* LEAF VEIN DIVIDERS       */
/* ======================== */
.leaf-divider {
    width: 100vw;
    height: 80px;
    opacity: 0.3;
    margin: 8vh 0;
    overflow: hidden;
}

.leaf-divider svg {
    width: 100%;
    height: 100%;
}

.leaf-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.leaf-divider.drawn .leaf-path {
    stroke-dashoffset: 0;
}

.leaf-divider-inner {
    height: 60px;
}

/* ======================== */
/* SECTION 3: THE EVIDENCE  */
/* ======================== */
.section-evidence {
    position: relative;
    background-color: var(--raw-linen);
    padding: 4vh 0 8vh;
}

.evidence-annotation {
    display: block;
    padding: 0 calc(100% * 2 / 12) 4vh;
}

.evidence-image {
    width: 100vw;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.evidence-image .duotone-img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1);
}

#evidence-img-1 .duotone-img,
#evidence-img-1 {
    background:
        radial-gradient(ellipse at 40% 60%, #6b6b5e 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, #8a8070 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, #4a4a3e 0%, transparent 60%),
        linear-gradient(180deg, #7a7060 0%, #5a5040 40%, #3a3020 100%);
}

#evidence-img-2 .duotone-img,
#evidence-img-2 {
    background:
        radial-gradient(ellipse at 30% 40%, #9a9a90 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, #7a7a72 0%, transparent 45%),
        radial-gradient(ellipse at 50% 20%, #b0b0a8 0%, transparent 40%),
        linear-gradient(160deg, #a0a098 0%, #808078 40%, #505048 100%);
}

#evidence-img-3 .duotone-img,
#evidence-img-3 {
    background:
        radial-gradient(ellipse at 35% 55%, #5e6e50 0%, transparent 40%),
        radial-gradient(ellipse at 65% 35%, #8a8a78 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, #4a5a3e 0%, transparent 45%),
        linear-gradient(175deg, #7a7a68 0%, #5a6a4a 40%, #3a4a2a 100%);
}

.evidence-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, var(--warm-ochre), var(--charred-umber));
    mix-blend-mode: multiply;
    opacity: 0.6;
}

.evidence-image.anim-scale .duotone-img {
    transform: scale(1.03);
    transition: transform 800ms ease-out;
}

.evidence-image.anim-scale.scaled .duotone-img {
    transform: scale(1);
}

.evidence-text {
    width: calc(100% * 8 / 12);
    margin-left: calc(100% * 2 / 12);
    padding: 6vh 1rem 0;
}

.evidence-text p {
    margin-bottom: 2rem;
    max-width: 55ch;
}

.evidence-headline {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 3vh;
}

/* Spacing between evidence pairs */
.evidence-text + .leaf-divider-inner {
    margin-top: 12vh;
}

/* ======================== */
/* SECTION 4: THE TURN      */
/* ======================== */
.section-turn {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--dark-earth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-turn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 15% 25%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(3px 3px at 45% 65%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 15%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 30% 80%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 45%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(4px 4px at 55% 35%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(2px 2px at 10% 90%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(3px 3px at 90% 75%, var(--concrete-mid) 0%, transparent 100%);
    opacity: 0.06;
}

.turn-content {
    width: calc(100% * 8 / 12);
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.turn-quote {
    border: none;
    padding: 0;
    margin: 0;
}

.turn-quote p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.58;
    color: var(--warm-parchment);
}

.turn-quote.pulse-active {
    animation: quote-pulse 4s ease-in-out 3;
}

@keyframes quote-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 149, 106, 0); }
    50% { box-shadow: 0 0 40px 8px rgba(196, 149, 106, 0.08); }
}

/* ========================== */
/* SECTION 5: THE CONCLUSION  */
/* ========================== */
.section-conclusion {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--dark-earth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(3px 3px at 50% 70%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 20%, var(--concrete-light) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 35% 85%, var(--concrete-mid) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 50%, var(--concrete-light) 0%, transparent 100%);
    opacity: 0.06;
}

.conclusion-content {
    text-align: center;
    width: calc(100% * 8 / 12);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.conclusion-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.6;
    color: var(--warm-parchment);
    margin-bottom: 4rem;
}

.conclusion-text em {
    font-style: italic;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
}

.conclusion-rule {
    border: none;
    border-top: 1px solid var(--stone-gray);
    width: 120px;
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.conclusion-colophon {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--warm-ochre);
}

/* ======================== */
/* ANIMATIONS               */
/* ======================== */
.anim-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.anim-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Registration error effect on headlines */
.section-headline .riso-shadow,
.evidence-headline .riso-shadow {
    position: absolute;
    top: 1px;
    left: 1.5px;
    color: var(--faded-indigo);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Ensure no rounded corners anywhere */
* {
    border-radius: 0 !important;
}