/* ==============================================
   gabs.reviews — Evolved-Minimal / Candy-Bright
   F-Pattern Editorial Layout
   ============================================== */

/* --- Color Reference ---
   #FAF7F2 - Bone White (background)
   #1A1A1A - Ink Black (text)
   #FF6B9D - Candy Pink (accent 1)
   #9B59F0 - Electric Violet (accent 2)
   #BFFF00 - Acid Lime (accent 3)
   #FF8C42 - Tangerine Pop (accent 4)
   #6A0572 - Deep Orchid (accent 5)
   #E8E4DF - Silk Gray (muted)
*/

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #FAF7F2;
    color: #1A1A1A;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Aurora Background Layer --- */
#aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    transition: opacity 800ms ease;
}

#aurora-bg.pulse {
    opacity: 0.25;
}

#watercolor-layer {
    width: 100%;
    height: 200%;
    will-change: transform;
}

/* --- Fixed Navigation Icons --- */
#nav-icons {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 300ms ease-out;
}

.nav-icon:hover {
    opacity: 1;
}

.nav-icon .icon-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 300ms ease-out;
}

.nav-icon:hover .icon-path {
    stroke-dashoffset: 200;
    animation: redraw-icon 600ms ease-out forwards;
}

@keyframes redraw-icon {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

.nav-label {
    font-family: 'Caveat', cursive;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: #1A1A1A;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.nav-icon:hover .nav-label {
    opacity: 0.7;
    transform: translateX(0);
}

/* --- Sections Base --- */
.viewport-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0;
}

/* ==============================
   OPENING SECTION
   ============================== */
.opening-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    padding-right: 10%;
    min-height: 100vh;
}

.opening-line {
    width: 90%;
    height: 20px;
    margin-bottom: 2rem;
    overflow: visible;
}

.opening-line .draw-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: draw-opening-line 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 200ms forwards;
    will-change: stroke-dashoffset;
}

@keyframes draw-opening-line {
    to { stroke-dashoffset: 0; }
}

.opening-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    text-align: left;
    opacity: 0;
    animation: fade-in-headline 500ms ease 800ms forwards;
}

.opening-headline em {
    font-style: italic;
    color: #FF6B9D;
}

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

.site-name {
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fade-in-headline 400ms ease 1200ms forwards;
}

.lime-dot {
    color: #BFFF00;
    display: inline-block;
    animation: pulse-dot 1200ms ease 1600ms 1;
}

@keyframes pulse-dot {
    0% { transform: scale(1); }
    50% { transform: scale(2.2); color: #BFFF00; }
    100% { transform: scale(1); }
}

/* ==============================
   SVG DIVIDERS
   ============================== */
.svg-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1rem 0;
    overflow: visible;
}

.svg-divider svg {
    width: 100%;
    height: 40px;
    display: block;
}

.svg-divider .draw-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    will-change: stroke-dashoffset;
    transition: stroke-dashoffset 1200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.svg-divider.is-visible .draw-path {
    stroke-dashoffset: 0;
}

/* ==============================
   F-PATTERN CONTENT SECTIONS
   ============================== */
.content-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 6rem 0;
}

.f-spine {
    width: 60%;
    max-width: 780px;
    margin-left: 8%;
    position: relative;
    z-index: 2;
}

.section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease-out, transform 500ms ease-out;
}

.section-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.heading-underline {
    width: clamp(200px, 50%, 400px);
    height: 8px;
    margin-bottom: 2.5rem;
    overflow: visible;
}

.heading-underline .draw-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    will-change: stroke-dashoffset;
    transition: stroke-dashoffset 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-content.is-visible .heading-underline .draw-path {
    stroke-dashoffset: 0;
}

.body-text {
    font-family: 'Karla', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.body-text em {
    font-style: italic;
    color: #6A0572;
}

/* --- Rating Glyphs --- */
.rating-glyphs {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    align-items: center;
}

.rating-glyph {
    width: 32px;
    height: 40px;
}

.rating-glyph[viewBox="0 0 36 24"] {
    width: 36px;
    height: 24px;
}

.rating-glyph .draw-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    will-change: stroke-dashoffset;
    fill: transparent;
    transition: stroke-dashoffset 400ms cubic-bezier(0.25, 0.1, 0.25, 1), fill-opacity 600ms ease 400ms;
}

.rating-glyph:not(.active) .draw-path {
    stroke: #E8E4DF;
}

.rating-glyph.is-drawn .draw-path {
    stroke-dashoffset: 0;
}

.rating-glyph.active.is-drawn .draw-path {
    fill-opacity: 0.15;
}

.rating-glyph.active[class*="is-drawn"] .draw-path[stroke="#FF8C42"] {
    fill: #FF8C42;
    fill-opacity: 0.15;
}

.rating-glyph.active.is-drawn .draw-path[stroke="#9B59F0"] {
    fill: #9B59F0;
    fill-opacity: 0.15;
}

.rating-glyph.active.is-drawn .draw-path[stroke="#FF6B9D"] {
    fill: #FF6B9D;
    fill-opacity: 0.15;
}

.rating-glyph.active.is-drawn .draw-path[stroke="#6A0572"] {
    fill: #6A0572;
    fill-opacity: 0.15;
}

/* --- Watercolor Accents (right negative space) --- */
.watercolor-accent {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 800ms ease;
}

.watercolor-accent.is-visible {
    opacity: 1;
}

.accent-right-1 {
    top: 10%;
    right: 5%;
}

.accent-right-2 {
    top: 15%;
    right: 3%;
}

.accent-right-3 {
    top: 5%;
    right: 6%;
}

.accent-right-4 {
    top: 12%;
    right: 4%;
}

.accent-right-5 {
    top: 8%;
    right: 5%;
}

/* --- Splatter Dots --- */
.splatter-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.splatter-dot {
    position: absolute;
}

/* --- Margin Scrawls --- */
.margin-scrawl {
    font-family: 'Caveat', cursive;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: #9B59F0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
    margin-top: 1.5rem;
    position: relative;
}

.margin-scrawl-right {
    text-align: right;
    margin-left: auto;
    max-width: 300px;
}

.section-content.is-visible .margin-scrawl {
    opacity: 0.7;
    transform: translateY(0);
    transition-delay: 600ms;
}

/* ==============================
   PULL-QUOTE CROSS-STROKES
   ============================== */
.pull-quote-crossstroke {
    position: relative;
    z-index: 2;
    margin-left: 45%;
    width: 50%;
    padding: 3rem 2rem;
    transform: rotate(-1.5deg);
    opacity: 0;
    transition: opacity 400ms ease-out, transform 500ms ease-out;
}

.pull-quote-crossstroke.is-visible {
    opacity: 1;
}

.pull-quote-mark {
    font-family: 'Libre Baskerville', serif;
    font-size: 8rem;
    line-height: 0;
    color: #FF6B9D;
    opacity: 0.08;
    position: absolute;
    top: 1rem;
    left: -1rem;
    pointer-events: none;
    user-select: none;
}

.pull-quote-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1A1A1A;
}

.watercolor-splash {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.splash-1 {
    bottom: -10px;
    right: -20px;
}

.splash-2 {
    top: -15px;
    left: -25px;
}

.splash-3 {
    bottom: -5px;
    right: -15px;
}

/* ==============================
   CLOSING SECTION
   ============================== */
.closing-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 1;
}

.closing-content {
    max-width: 900px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.closing-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    text-align: center;
}

.closing-headline em {
    font-style: italic;
    color: #FF6B9D;
}

.closing-flourish {
    width: clamp(200px, 60%, 400px);
    height: 60px;
    margin: 2rem auto 0;
    overflow: visible;
}

.closing-flourish .draw-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    will-change: stroke-dashoffset;
    transition: stroke-dashoffset 1000ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.closing-content.is-visible .closing-flourish .draw-path {
    stroke-dashoffset: 0;
}

/* ==============================
   ANIMATION CLASSES
   ============================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease-out, transform 500ms ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   AURORA KEYFRAMES
   ============================== */
@keyframes aurora-drift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 0%; }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .f-spine {
        width: 70%;
        margin-left: 6%;
    }

    .pull-quote-crossstroke {
        margin-left: 30%;
        width: 65%;
    }

    .watercolor-accent {
        display: none;
    }
}

@media (max-width: 768px) {
    .f-spine {
        width: 88%;
        margin-left: 6%;
    }

    .pull-quote-crossstroke {
        margin-left: 10%;
        width: 85%;
        padding: 2rem 1rem;
    }

    .opening-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .opening-headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .section-heading {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .closing-headline {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    #nav-icons {
        bottom: 1rem;
        left: 1rem;
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-label {
        display: none;
    }

    .splatter-dots {
        display: none;
    }

    .pull-quote-mark {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .f-spine {
        width: 92%;
        margin-left: 4%;
    }

    .content-section {
        padding: 4rem 0;
    }

    .pull-quote-crossstroke {
        margin-left: 5%;
        width: 90%;
        transform: rotate(0deg);
    }
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .opening-line .draw-path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .opening-headline {
        animation: none;
        opacity: 1;
    }

    .site-name {
        animation: none;
        opacity: 1;
    }

    .lime-dot {
        animation: none;
    }

    .svg-divider .draw-path {
        transition: none;
        stroke-dashoffset: 0;
    }

    .section-content {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .heading-underline .draw-path {
        transition: none;
        stroke-dashoffset: 0;
    }

    .rating-glyph .draw-path {
        transition: none;
        stroke-dashoffset: 0;
    }

    .pull-quote-crossstroke {
        transition: none;
        opacity: 1;
    }

    .closing-content {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .closing-flourish .draw-path {
        transition: none;
        stroke-dashoffset: 0;
    }

    .fade-in-up {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .margin-scrawl {
        transition: none;
        opacity: 0.7;
        transform: none;
    }

    .watercolor-accent {
        transition: none;
        opacity: 1;
    }

    #aurora-bg {
        transition: none;
    }

    .nav-icon .icon-path {
        transition: none;
    }

    .nav-icon:hover .icon-path {
        animation: none;
    }
}
