/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SangBleu Kingdom', 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   SANGBLEU KINGDOM FONT LOADING (WebS only)
   ============================================ */

/* Light (300) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-Light-WebS.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Light Italic (300 italic) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-LightItalic-WebS.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-Regular-WebS.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Regular Italic (400 italic) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-RegularItalic-WebS.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium (500) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-Medium-WebS.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Medium Italic (500 italic) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-MediumItalic-WebS.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-Bold-WebS.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic (700 italic) */
@font-face {
    font-family: 'SangBleu Kingdom';
    src: url('../assets/fonts/SangBleuKingdom-BoldItalic-WebS.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ============================================
   COLOR SYSTEM — CYANOTYPE PALETTE
   ============================================ */

:root {
    /* Text */
    --text-main: #003153;
    --text-subtle: #9f9e97;

    /* Cyanotype range */
    --cyanotype-classic: #164F73;
    --cyanotype-dark: #041D26;

    /* Background */
    --bg-main: #fffff2;
}

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

h1, h2, h3 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
    background-color: transparent;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 500;
}

.nav-separator {
    color: var(--text-subtle);
    font-size: 0.875rem;
}

.nav-right {
    display: flex;
    align-items: center;
}

.author-name {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--text-main);
    font-weight: 500;
}

/* ============================================
   HERO SECTION (INDEX)
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.scroll-hint {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: var(--bg-main);
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* ============================================
   SPLIT SECTION (READ / JOIN) DESKTOP
   ============================================ */

   .split-section {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 100vh;
}



/* READ section specific: no min-height */
.read-section {
    min-height: auto;
    padding: clamp(2rem, 4vh, 3rem) 0;
}

.split-left {
    grid-column: 1;
    padding-left: clamp(2rem, 5vw, 4rem);
    padding-right: clamp(1rem, 2vw, 2rem);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.split-right {
    grid-column: 2;
    display: block;
    padding-top: clamp(2rem, 5vw, 4rem);
}




.section-label,
.tile-title {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
}


.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 49, 83, 0.2);
}


/* READ grid: left-aligned, fixed-width tiles */
.read-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: 0;              /* remove horizontal padding */
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--text-subtle);
    max-width: 400px;
}

/* ============================================
   TILES (GENERAL)
   ============================================ */

.tile {
    position: relative;
    flex: 1;
    display: block;
    overflow: hidden;
}

.tile img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.tile-border {
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-content {
    text-align: center;
}

.tile-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.1em;
}

/* ============================================
   READ TILES (DESKTOP)
   ============================================ */

.read-tile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: none;
    overflow: visible;
    max-width: 320px;
}

.tile-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.tile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tile-title {
    margin: 0;
}


.tile-subtitle {
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    color: var(--text-subtle);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   JOIN TILES (DESKTOP)
   ============================================ */

.join-section {
    min-height: auto;
    padding: clamp(2rem, 4vh, 3rem) 0;
}

.join-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: 0;              /* remove horizontal padding */
}

.join-tile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: none;
    overflow: visible;
    max-width: 320px;
}

.join-tile .tile-image-wrapper {
    aspect-ratio: 4 / 5;
}

/* ============================================
   LISTEN SECTION
   ============================================ */

.listen-section {
    min-height: auto;
    padding: clamp(3rem, 6vh, 6rem) 0;
}

.listen-grid {
    display: flex;
    align-items: flex-start;
    padding: 0;
}

.listen-content {
    text-align: left;
}

.listen-text {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--text-main);
}

/* ============================================
   ESSAY PAGE — HEADER
   ============================================ */

.essay-header {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(4rem, 10vh, 8rem) clamp(2rem, 5vw, 4rem) clamp(3rem, 6vh, 5rem);
    text-align: center;
}

.essay-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.essay-dek {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.essay-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text-subtle);
}

.essay-author,
.essay-date {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ESSAY PAGE — HERO IMAGE
   ============================================ */

.essay-hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.essay-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   ESSAY PAGE — BODY
   ============================================ */

.essay-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem) clamp(4rem, 10vh, 8rem);
}

.essay-body p {
    margin-bottom: 1.5rem;
}

.essay-body p:first-of-type::first-letter {
    font-size: 3.5em;
    line-height: 0.9;
    float: left;
    margin: 0.1em 0.1em 0 0;
    color: var(--cyanotype-classic);
}

/* ============================================
   ESSAY PAGE — INLINE IMAGES
   ============================================ */

.essay-image {
    margin: clamp(2rem, 5vh, 3rem) 0;
}

.essay-image img {
    width: 100%;
    height: auto;
    display: block;
}

.essay-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.caption-text {
    font-style: italic;
}

.caption-credit {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* ============================================
   ESSAY NAV
   ============================================ */

.essay-nav {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem clamp(2rem, 5vw, 4rem) 4rem;
}

.nav-link {
    display: inline-block;
    color: var(--text-subtle);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .split-left {
        min-height: 40vh;
    }

    .split-right {
        min-height: 60vh;
    }

    .tile {
        min-height: 33.33vh;
    }

    .scroll-hint {
        font-size: 1.5rem;
    }

    /* Header mobile */
    .site-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem clamp(2rem, 5vw, 4rem);
    }

    .nav-left {
        order: 1;
    }

    .nav-right {
        order: 2;
    }

    /* READ section mobile */
    .read-section {
        padding: clamp(2rem, 4vh, 3rem) 0;
    }

    .read-section .split-left {
        min-height: auto;
        padding-bottom: 1rem;
    }

    .read-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .read-tile {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }

    .tile-image-wrapper {
        flex: 0 0 50%;
        aspect-ratio: 4 / 5;
    }

    .tile-meta {
        flex: 1;
        justify-content: center;
    }

    /* JOIN section mobile */
    .join-section {
        padding: clamp(2rem, 4vh, 3rem) 0;
    }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .join-tile {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }

    .join-tile .tile-image-wrapper {
        flex: 0 0 50%;
        aspect-ratio: 4 / 5;
    }

    /* LISTEN section mobile */
    .listen-grid {
        padding: clamp(1.5rem, 4vw, 2rem);
    }
}
