/* thesecond.day
 * flat-design, minimal-navigation, expressive-variable typography
 * aurora palette on a warm-white ground
 */

:root {
    --ground: #faf8f5;
    --text: #2c2c2c;
    --aurora-a: #f0c4b8;   /* Dawn Pink */
    --aurora-b: #c8b4e0;   /* Morning Lavender */
    --aurora-c: #e8d49c;   /* Early Gold */
    --aurora-d: #b8d4e0;   /* Sky Wash */
    --mute: #d0ccc8;       /* Fog Gray */
    --wght: 200;
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: #faf8f5;
    color: #2c2c2c;
    font-family: "Source Sans 3", Inter, system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* ---------------- Navigation ---------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: #faf8f5;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.nav-brand {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    transition: opacity 240ms ease-out;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* ---------------- Main stacking ---------------- */
main {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vh, 8rem);
}

.module {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* ---------------- Reveal pattern ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    will-change: opacity, transform;
}

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

/* ---------------- Aurora decorative curves ---------------- */
.aurora-curves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.aurora-curves.subtle path {
    opacity: 0.06;
}

/* ---------------- Module 1: Statement ---------------- */
.module-statement {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 4rem);
    background-color: #faf8f5;
}

.statement-inner {
    max-width: 60rem;
    text-align: center;
}

.display-headline {
    font-family: "Epilogue", Inter, sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #2c2c2c;
    font-variation-settings: 'wght' var(--wght);
    transition: font-variation-settings 120ms linear;
}

.statement-sub {
    margin-top: clamp(1.5rem, 3vh, 2.5rem);
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #2c2c2c;
    letter-spacing: 0.04em;
}

/* ---------------- Module 2: Gradient Field ---------------- */
.module-gradient {
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(240, 196, 184, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 70% 60%, rgba(200, 180, 224, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(232, 212, 156, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184, 212, 224, 0.5) 0%, transparent 60%),
        #faf8f5;
    background-size: 180% 180%, 170% 170%, 160% 160%, 190% 190%, 100% 100%;
    background-repeat: no-repeat;
    animation: mesh-drift 30s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
    0% {
        background-position:
            20% 30%,
            70% 60%,
            50% 80%,
            80% 20%,
            0 0;
    }
    50% {
        background-position:
            35% 50%,
            55% 45%,
            40% 65%,
            65% 35%,
            0 0;
    }
    100% {
        background-position:
            15% 45%,
            75% 70%,
            60% 85%,
            85% 25%,
            0 0;
    }
}

.gradient-label {
    position: relative;
    padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #2c2c2c;
    font-family: "Source Sans 3", Inter, sans-serif;
}

.label-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2c2c2c;
}

.label-text {
    font-family: "Epilogue", Inter, sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

/* ---------------- Module 3: Text Column ---------------- */
.module-text {
    padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    justify-content: center;
}

.text-column {
    max-width: 42ch;
    width: 100%;
}

.eyebrow {
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2c2c2c;
    margin-bottom: 2rem;
}

.column-heading {
    font-family: "Epilogue", Inter, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #2c2c2c;
    font-variation-settings: 'wght' 500;
    margin-bottom: 2rem;
}

.body-paragraph {
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    color: #2c2c2c;
    margin-bottom: 1.25rem;
}

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

/* ---------------- Module 4: Split ---------------- */
.module-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.split-left {
    background-color: #f0c4b8;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 6vh, 4rem);
}

.split-right {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 6vh, 4rem);
}

.split-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 30% 40%, rgba(200, 180, 224, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 55% 50% at 70% 70%, rgba(184, 212, 224, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 55% 20%, rgba(232, 212, 156, 0.5) 0%, transparent 55%),
        #faf8f5;
    background-size: 180% 180%, 170% 170%, 160% 160%, 100% 100%;
    background-repeat: no-repeat;
    animation: mesh-drift 35s ease-in-out infinite alternate-reverse;
}

.split-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #2c2c2c;
}

.split-index {
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.split-title {
    font-family: "Epilogue", Inter, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1;
    font-variation-settings: 'wght' 300;
    color: #2c2c2c;
}

.split-seam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2c2c2c;
    padding: 0 1rem;
    background-color: transparent;
}

.split-seam::before,
.split-seam::after {
    content: "";
    display: inline-block;
    width: clamp(2rem, 4vw, 4rem);
    height: 1px;
    background-color: #d0ccc8;
    vertical-align: middle;
    margin: 0 0.75rem;
}

/* ---------------- Module 5: Closing ---------------- */
.module-closing {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vh, 6rem) clamp(1.5rem, 4vw, 4rem);
    background-color: #faf8f5;
}

.closing-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.closing-phrase {
    font-family: "Epilogue", Inter, sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    font-variation-settings: 'wght' 400;
    color: #2c2c2c;
    letter-spacing: -0.005em;
}

.closing-mark {
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #2c2c2c;
    letter-spacing: 0.04em;
}

.closing-meta {
    font-family: "Source Sans 3", Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: #d0ccc8;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------------- Small screens ---------------- */
@media (max-width: 720px) {
    .module-split {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .split-seam {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .split-seam::before,
    .split-seam::after {
        width: clamp(1rem, 6vw, 2.5rem);
    }
    .nav-links {
        gap: 1rem;
    }
}
