/* gabs.reviews - Goblincore Review Platform */
/* CSS Custom Properties */
:root {
    --loam: #2B1D0E;
    --umber: #5C4033;
    --copper: #C4956A;
    --gold: #8B6914;
    --ember: #D4764E;
    --rose: #E8A087;
    --cream: #F5E6C8;
    --cream-light: #E8D5B8;
    --moss: #6B7B3A;
    --dark-mid: #3D2B1F;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Literata', Georgia, serif;
    color: var(--cream);
    background: linear-gradient(170deg, var(--loam) 0%, var(--dark-mid) 40%, var(--umber) 70%, var(--loam) 100%);
    overflow-x: hidden;
}

/* Typography */
.site-title, .section-heading {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
}

.site-subtitle, .card-label, .card-tag, .review-tag, .floor-korean {
    font-family: 'Caveat', cursive;
}

/* Section: The Entrance */
.section {
    min-height: 100vh;
    position: relative;
}

.section-entrance {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marble-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(196, 149, 106, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 118, 78, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 105, 20, 0.2) 0%, transparent 60%),
        conic-gradient(from 45deg at 30% 40%, rgba(92, 64, 51, 0.3), rgba(245, 230, 200, 0.1), rgba(92, 64, 51, 0.3)),
        conic-gradient(from 200deg at 70% 60%, rgba(196, 149, 106, 0.2), rgba(43, 29, 14, 0.4), rgba(196, 149, 106, 0.2)),
        linear-gradient(170deg, var(--loam) 0%, var(--dark-mid) 50%, var(--loam) 100%);
    background-size: 200% 200%;
    animation: marbleShift 120s linear infinite;
    filter: contrast(1.5) saturate(0.8);
}

.section-entrance:hover .marble-bg {
    animation-duration: 60s;
}

@keyframes marbleShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 0%; }
}

.entrance-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.site-title {
    font-size: clamp(40px, 7vw, 88px);
    color: var(--cream);
    margin-bottom: 0.2em;
}

.site-subtitle {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--copper);
    margin-bottom: 0.5em;
}

.site-tagline {
    font-family: 'Literata', serif;
    font-style: italic;
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--rose);
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin-bottom: 2em;
}

.fern-invite {
    color: var(--moss);
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}

/* Section: The Collection Table */
.section-collection {
    padding: 8vh 5vw;
    background: linear-gradient(180deg, var(--loam) 0%, var(--dark-mid) 100%);
}

.section-heading {
    font-size: clamp(32px, 5vw, 64px);
    color: var(--cream);
    text-align: left;
    margin-left: 10%;
    margin-bottom: 2em;
}

.card-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 5%;
}

.specimen-card {
    background: rgba(43, 29, 14, 0.85);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    width: 320px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.specimen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.specimen-card:nth-child(1) { margin-top: 0px; }
.specimen-card:nth-child(2) { margin-top: 8px; }
.specimen-card:nth-child(3) { margin-top: -4px; }

.specimen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(43, 29, 14, 0.3);
    border-color: var(--ember);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-marble {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(196, 149, 106, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(232, 160, 135, 0.4) 0%, transparent 50%),
        conic-gradient(from 120deg at 50% 50%, rgba(139, 105, 20, 0.3), rgba(92, 64, 51, 0.2), rgba(139, 105, 20, 0.3)),
        linear-gradient(135deg, var(--umber) 0%, var(--dark-mid) 100%);
    mix-blend-mode: normal;
}

.card-marble::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rose);
    mix-blend-mode: overlay;
    opacity: 0.3;
}

.card-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--gold);
    background: rgba(43, 29, 14, 0.7);
    padding: 2px 8px;
    border-radius: 2px;
}

.card-body {
    padding: 1.2rem;
}

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 0.6em;
}

.card-text {
    font-family: 'Literata', serif;
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(245, 230, 200, 0.85);
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin-bottom: 1em;
}

.card-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5em;
}

.card-rating .acorn,
.review-rating .acorn {
    width: 20px;
    height: 24px;
    color: var(--gold);
    transition: color 400ms ease;
}

.card-rating .acorn.filled .acorn-body,
.review-rating .acorn.filled .acorn-body {
    fill: var(--ember);
    stroke: var(--ember);
}

.card-rating .acorn.filled .acorn-cap,
.review-rating .acorn.filled .acorn-cap {
    fill: var(--gold);
    stroke: var(--gold);
}

.card-tag {
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--gold);
}

/* Section: The Deep Shelf */
.section-deep-shelf {
    padding: 8vh 0;
    background: linear-gradient(180deg, var(--dark-mid) 0%, var(--loam) 50%, var(--dark-mid) 100%);
}

.section-deep-shelf .section-heading {
    margin-bottom: 1em;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 10%;
    color: var(--copper);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--copper);
}

.review-block {
    display: flex;
    width: 80%;
    margin: 0 auto 0 10%;
    background: rgba(43, 29, 14, 0.5);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    overflow: hidden;
    scroll-margin-top: 2rem;
}

.review-fern {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: bottom center;
    color: var(--moss);
    transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-block {
    position: relative;
}

.review-fern.unfurled {
    transform: translateY(-50%) scaleY(1);
}

.review-image {
    width: 40%;
    min-height: 200px;
    flex-shrink: 0;
}

.review-marble {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(196, 149, 106, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 70%, rgba(212, 118, 78, 0.3) 0%, transparent 50%),
        conic-gradient(from 90deg at 50% 50%, rgba(92, 64, 51, 0.4), rgba(139, 105, 20, 0.2), rgba(92, 64, 51, 0.4)),
        linear-gradient(160deg, var(--umber) 0%, var(--loam) 100%);
    filter: contrast(1.3) saturate(0.9);
}

.review-content {
    padding: 1.5rem 2rem;
    flex: 1;
}

.review-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.5vw, 32px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 0.4em;
}

.review-tag {
    display: inline-block;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--gold);
    margin-bottom: 1em;
}

.review-text {
    font-family: 'Literata', serif;
    font-size: clamp(16px, 1.8vw, 20px);
    color: #E8D5B8;
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin-bottom: 1.2em;
}

.review-rating {
    display: flex;
    gap: 4px;
}

/* Section: The Clearing */
.section-clearing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    position: relative;
}

.section-clearing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(196, 149, 106, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 30% 30%, rgba(139, 105, 20, 0.05) 0%, transparent 50%);
}

.clearing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 4rem 2rem;
}

.pull-quote {
    border-top: 1px solid var(--copper);
    border-bottom: 1px solid var(--copper);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.pull-quote p {
    font-family: 'Literata', serif;
    font-style: italic;
    font-size: clamp(20px, 3vw, 36px);
    color: var(--loam);
    line-height: 1.5;
}

.bracket-fungus {
    color: var(--copper);
}

/* Section: The Forest Floor */
.section-floor {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--loam);
    overflow: hidden;
}

.floor-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
}

.floor-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.oak-leaf {
    position: absolute;
    color: var(--cream);
    opacity: 0.08;
}

.leaf-1 {
    top: 15%;
    left: 10%;
    transform: rotate(25deg);
}

.leaf-2 {
    top: 60%;
    right: 15%;
    transform: rotate(-15deg);
}

.leaf-3 {
    bottom: 10%;
    left: 40%;
    transform: rotate(45deg);
}

.floor-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.floor-korean {
    font-size: 24px;
    color: var(--copper);
    margin-bottom: 0.5em;
}

.floor-subtitle {
    font-family: 'Literata', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--copper);
    opacity: 0.7;
    margin-bottom: 2em;
}

.floor-copy {
    font-family: 'Literata', serif;
    font-size: 14px;
    color: var(--copper);
    opacity: 0.5;
}

/* Burrow Navigation */
.burrow-nav {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.burrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--umber);
    border: 1.5px solid var(--gold);
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 300ms ease, background 300ms ease;
    position: relative;
    z-index: 2;
}

.burrow-btn:hover {
    background: var(--dark-mid);
}

.burrow-nav.open .burrow-btn {
    transform: rotate(45deg);
}

.burrow-link {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--loam);
    border: 1px solid var(--gold);
    color: var(--cream);
    font-family: 'Caveat', cursive;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: scale(0);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
    pointer-events: none;
}

.burrow-nav.open .burrow-link {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    font-size: 11px;
    width: auto;
    height: auto;
    padding: 6px 12px;
    white-space: nowrap;
}

.burrow-nav.open .burrow-link[data-index="0"] {
    bottom: 70px;
    right: 40px;
    transition-delay: 0ms;
}

.burrow-nav.open .burrow-link[data-index="1"] {
    bottom: 105px;
    right: 20px;
    transition-delay: 80ms;
}

.burrow-nav.open .burrow-link[data-index="2"] {
    bottom: 130px;
    right: -10px;
    transition-delay: 160ms;
}

.burrow-nav.open .burrow-link[data-index="3"] {
    bottom: 145px;
    right: -45px;
    transition-delay: 240ms;
}

.burrow-nav.open .burrow-link[data-index="4"] {
    bottom: 148px;
    right: -85px;
    transition-delay: 320ms;
}

.burrow-link:hover {
    background: var(--umber);
    border-color: var(--ember);
}

/* Responsive */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        align-items: center;
    }

    .specimen-card {
        width: 90%;
        max-width: 360px;
    }

    .specimen-card:nth-child(1),
    .specimen-card:nth-child(2),
    .specimen-card:nth-child(3) {
        margin-top: 0;
    }

    .review-block {
        flex-direction: column;
        width: 90%;
        margin-left: 5%;
    }

    .review-image {
        width: 100%;
        min-height: 150px;
    }

    .review-fern {
        display: none;
    }

    .section-heading {
        margin-left: 5%;
    }

    .divider {
        margin: 2rem 5%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
