* {
    box-sizing: border-box;
}

:root {
    --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-display: Baskerville, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --font-ui: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    --text: #1c1613;
    --muted: rgba(28, 22, 19, 0.78);
    --surface: rgba(255, 250, 242, 0.74);
    --border: rgba(28, 22, 19, 0.12);
    --sticky-top: 96px;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.58;
    background: #fff4ea;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -2;
    background: repeating-linear-gradient(100deg,
            rgba(255, 90, 104, 0.34) 0 94px,
            rgba(255, 156, 63, 0.34) 94px 188px,
            rgba(255, 241, 74, 0.34) 188px 282px,
            rgba(69, 207, 93, 0.34) 282px 376px,
            rgba(64, 153, 255, 0.34) 376px 470px,
            rgba(161, 79, 255, 0.34) 470px 564px);
    animation: rainbow-drift 14s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.58), transparent 32%),
        linear-gradient(180deg, rgba(255, 250, 242, 0.78), rgba(255, 244, 234, 0.94));
}

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

.page-header,
.page-main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-nav a {
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-label-mobile {
    display: none;
}

.page-nav a[aria-current="page"] {
    background: #fff;
}

.page-main {
    display: grid;
    gap: 24px;
    padding-bottom: 40px;
}

.page-main > section {
    scroll-margin-top: var(--sticky-top);
}

.hero-grid,
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
}

.hero-grid {
    align-items: center;
}

.hero-copy,
.panel-card,
.channel-card,
.split-copy {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 18px 36px rgba(28, 22, 19, 0.1);
    backdrop-filter: blur(10px);
}

.eyebrow,
.card-label {
    margin: 0 0 0.85rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(28, 22, 19, 0.62);
}

h1,
h2 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

h1 {
    font-size: clamp(2.25rem, 4.2vw, 4.4rem);
}

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

p,
ul,
blockquote {
    margin: 0 0 1em;
    color: var(--muted);
}

ul {
    padding-left: 1.15em;
}

.lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #1c1613;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: #1c1613;
    border-color: var(--border);
}

.hero-collage {
    position: relative;
    min-height: clamp(360px, 52svh, 560px);
}

.hero-photo {
    position: absolute;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 40px rgba(28, 22, 19, 0.14);
}

.hero-photo-main {
    top: 18px;
    left: 4%;
    width: 92%;
    height: calc(100% - 54px);
    object-fit: cover;
    border-radius: 34px;
    transform: rotate(-3deg);
}

.hero-photo-side {
    right: 0;
    bottom: 32px;
    width: 42%;
    padding: 14px;
    border-radius: 28px;
    transform: rotate(8deg);
}

.sticker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.58rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sticker-top {
    top: 0;
    right: 12%;
}

.sticker-bottom {
    left: 14%;
    bottom: 0;
}

.panel-grid,
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.channels-section {
    display: grid;
    gap: 18px;
}

.channel-card strong {
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
}

.split-copy blockquote {
    margin: 1.4rem 0 0;
    padding: 1rem 1.1rem;
    border-left: 3px solid rgba(28, 22, 19, 0.22);
    background: rgba(255, 255, 255, 0.4);
    color: #1c1613;
}

.split-media {
    display: grid;
    gap: 18px;
}

.split-media img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 18px 36px rgba(28, 22, 19, 0.12);
}

@keyframes rainbow-drift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(240px, 0, 0);
    }
}

@media (max-width: 920px) {
    .hero-grid,
    .split-section,
    .panel-grid,
    .channels-grid {
        grid-template-columns: 1fr;
    }

    .hero-collage {
        min-height: clamp(300px, 46svh, 460px);
    }
}

@media (min-width: 921px) and (min-height: 680px) {
    .page-main > section {
        position: sticky;
        top: var(--sticky-top);
    }
}

@media (max-width: 720px) {
    .page-header {
        position: static;
        top: auto;
        z-index: auto;
        width: auto;
        margin: 0;
        padding: 0;
        backdrop-filter: none;
    }

    .page-main {
        width: min(100%, calc(100% - 24px));
        padding-top: calc(92px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    .brand {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: 12px;
        z-index: 31;
        min-width: 72px;
        padding: 0.78rem 0.72rem;
        text-align: center;
    }

    .page-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: auto;
        gap: 8px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 26px;
        background: rgba(255, 250, 242, 0.88);
        box-shadow:
            0 -16px 34px rgba(28, 22, 19, 0.16),
            0 18px 36px rgba(28, 22, 19, 0.18);
        backdrop-filter: blur(16px);
    }

    .page-nav a {
        min-width: 0;
        min-height: 100%;
        padding: 0.78rem 0.45rem;
        text-align: center;
        white-space: normal;
        line-height: 1.1;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
    }

    .nav-label-full {
        display: none;
    }

    .nav-label-mobile {
        display: inline;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-collage {
        min-height: clamp(260px, 42svh, 360px);
    }

    .hero-photo-main {
        left: 2%;
        width: 96%;
        height: calc(100% - 54px);
    }

    .hero-photo-side {
        width: 48%;
    }
}
