/* ==========================================================================
   bada.style — Flat-Design Revival / Oceanic Botanical Field Guide
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --ink: #1B0A2E;
    --rose: #D4145A;
    --paper: #F7F0E8;
    --muted: #7A6B8A;
    --petal: #E8A0B5;
    --shadow: none;
    --col-count: 6;
    --gutter: 48px;
}

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

::selection {
    background: #E8A0B5;
    color: #1B0A2E;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--paper);
}

body {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-variation-settings: 'wdth' 100;
    color: var(--ink);
    background-color: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enforce flat design */
* {
    border-radius: 0;
}

img, svg {
    display: block;
}

/* --- Typography --- */

/* Display / Hero */
.hero-title {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
    font-weight: 900;
    font-size: 20vw;
    line-height: 0.9;
    color: var(--ink);
    letter-spacing: -0.03em;
    text-align: center;
}

/* Subtitle — Korean */
.hero-subtitle {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
    font-weight: 300;
    font-size: 8vw;
    color: var(--rose);
    letter-spacing: 0.01em;
    text-align: center;
    margin-top: 0.2em;
}

/* Section headings */
.section-heading {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
    font-weight: 100;
    font-size: clamp(36px, 5vw, 72px);
    color: var(--ink);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    transition: font-variation-settings 0.8s ease, font-weight 0.6s ease;
}

.section-heading.in-view {
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
    font-weight: 900;
}

/* Pull quotes / sub-headings */
.pull-quote {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
    font-weight: 300;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--rose);
    letter-spacing: 0.01em;
}

/* Body text */
.body-text {
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 100;
    font-weight: 400;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1.5em;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* Captions / Metadata / Navigation */
.nav-domain,
.specimen-caption,
.specimen-label,
.band-label,
.footer-domain,
.footer-year,
.footer-tagline {
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 75;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Breath zone headings */
.breath-heading {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
    font-weight: 100;
    font-size: clamp(48px, 14vw, 18vw);
    color: var(--ink);
    letter-spacing: -0.03em;
    text-align: center;
    transition: font-variation-settings 0.8s ease, font-weight 0.6s ease;
}

.breath-heading.in-view {
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
    font-weight: 900;
}

/* --- Navigation --- */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

#site-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--gutter);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-domain {
    font-size: 13px;
    color: var(--ink);
}

.nav-rule {
    height: 1px;
    background-color: var(--ink);
    margin: 0 var(--gutter);
}

#nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-hamburger:hover .hamburger-line {
    background-color: var(--rose);
}

/* --- Skeleton Overlay --- */
#skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#skeleton-overlay.skeleton-hidden {
    opacity: 0;
}

.skeleton-hero {
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.skeleton-line {
    background-color: var(--paper);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--petal);
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-title {
    width: 60%;
    height: 60px;
    margin-bottom: 20px;
}

.skeleton-subtitle {
    width: 30%;
    height: 40px;
}

/* --- Sections (General) --- */
.section {
    position: relative;
    overflow: hidden;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--paper);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-content.visible {
    opacity: 1;
}

.hero-kelp {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(30vw);
    width: 120px;
    height: 80vh;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-kelp.visible {
    opacity: 1;
}

/* --- Botanical Band --- */
.botanical-band {
    width: 100%;
    height: 150px;
    background-color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.botanical-band .wave-pattern,
.botanical-band .kelp-band-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.botanical-band-alt {
    background-color: var(--ink);
}

.band-label {
    position: absolute;
    bottom: 10px;
    right: var(--gutter);
    font-size: 11px;
    color: var(--muted);
    z-index: 2;
}

.band-label-light {
    color: var(--muted);
}

/* --- Grid Container --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gutter);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    align-items: start;
}

/* --- Offset Text Sections --- */
.offset-text-section {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.offset-left .offset-text-col {
    grid-column: 1 / 3;
}

.offset-left .watermark-col {
    grid-column: 4 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offset-right .watermark-col {
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offset-right .offset-text-col {
    grid-column: 5 / 7;
}

.watermark-char {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
    font-weight: 900;
    font-size: clamp(120px, 18vw, 300px);
    color: var(--ink);
    opacity: 0.06;
    line-height: 1;
    user-select: none;
}

/* --- Split Editorial --- */
.split-editorial {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.split-editorial .editorial-illustration {
    grid-column: 1 / 4;
    background-color: var(--ink);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.split-editorial .editorial-text {
    grid-column: 5 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-editorial-reversed .editorial-text {
    grid-column: 1 / 3;
}

.split-editorial-reversed .editorial-illustration {
    grid-column: 4 / 7;
}

/* Anemone SVG */
.anemone-svg {
    width: 100%;
    max-width: 320px;
}

.anemone-svg .draw-path {
    stroke: var(--paper);
}

.anemone-svg .anemone-center {
    stroke: var(--rose);
}

.anemone-svg .anemone-tentacle:nth-child(11),
.anemone-svg .anemone-tentacle:nth-child(12),
.anemone-svg .anemone-tentacle:nth-child(13),
.anemone-svg .anemone-tentacle:nth-child(14) {
    stroke: var(--rose);
}

.specimen-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 20px;
    text-align: center;
}

.editorial-illustration .specimen-label {
    color: var(--petal);
}

/* Coral SVG */
.coral-svg {
    width: 100%;
    max-width: 320px;
}

.coral-svg .draw-path {
    stroke: var(--paper);
}

/* --- Specimen Grid --- */
.specimen-grid-container {
    background-color: var(--ink);
    padding: 40px;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.specimen-item {
    text-align: center;
}

.specimen-item svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.specimen-item .draw-path {
    stroke: var(--paper);
}

.specimen-item svg .draw-path[stroke="#D4145A"] {
    stroke: var(--rose);
}

.specimen-caption {
    font-size: 10px;
    color: var(--petal);
    display: block;
}

/* --- Breath Zones --- */
.breath-zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--paper);
}

.breath-zone-mid,
.breath-zone-lower,
.breath-zone-final {
    min-height: 100vh;
}

.breath-content {
    text-align: center;
    position: relative;
}

.breath-botanical {
    display: inline-block;
    margin-top: 40px;
}

.breath-botanical-rose {
    width: 200px;
    height: 200px;
}

.breath-botanical-final {
    width: 400px;
    height: 150px;
}

/* --- SVG Draw Paths --- */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: none;
}

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

/* --- Footer --- */
#site-footer {
    padding: 80px var(--gutter) 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-rule {
    height: 1px;
    background-color: var(--ink);
    margin-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.footer-domain {
    font-size: 13px;
    color: var(--ink);
}

.footer-year {
    font-size: 12px;
    color: var(--muted);
}

.footer-tagline {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
    font-weight: 300;
    font-size: 18px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
}

/* --- Section Reveal --- */
[data-scroll-section] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-scroll-section].section-visible {
    opacity: 1;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--paper);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --gutter: 32px;
    }

    .hero-title {
        font-size: 22vw;
    }

    .hero-subtitle {
        font-size: 10vw;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .offset-left .offset-text-col {
        grid-column: 1 / 3;
    }

    .offset-left .watermark-col {
        grid-column: 3 / 5;
    }

    .offset-right .watermark-col {
        grid-column: 1 / 3;
    }

    .offset-right .offset-text-col {
        grid-column: 3 / 5;
    }

    .split-editorial .editorial-illustration {
        grid-column: 1 / 3;
    }

    .split-editorial .editorial-text {
        grid-column: 3 / 5;
    }

    .split-editorial-reversed .editorial-text {
        grid-column: 1 / 3;
    }

    .split-editorial-reversed .editorial-illustration {
        grid-column: 3 / 5;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 24px;
    }

    .hero-title {
        font-size: 26vw;
    }

    .hero-subtitle {
        font-size: 12vw;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .offset-left .offset-text-col,
    .offset-left .watermark-col,
    .offset-right .watermark-col,
    .offset-right .offset-text-col,
    .split-editorial .editorial-illustration,
    .split-editorial .editorial-text,
    .split-editorial-reversed .editorial-text,
    .split-editorial-reversed .editorial-illustration {
        grid-column: 1 / -1;
    }

    .watermark-col {
        display: none !important;
    }

    .offset-text-section {
        padding: 80px 0;
        min-height: auto;
    }

    .split-editorial {
        padding: 80px 0;
        min-height: auto;
    }

    .breath-heading {
        font-size: 16vw;
    }

    .nav-inner {
        padding: 1rem var(--gutter);
    }

    .section-heading {
        font-size: clamp(28px, 7vw, 48px);
    }

    .hero-kelp {
        transform: translateX(20vw);
        width: 80px;
        height: 60vh;
    }

    .breath-botanical-final {
        width: 280px;
    }

    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 16px;
    }

    .hero-title {
        font-size: 28vw;
    }

    .body-text {
        font-size: 16px;
    }
}
