@font-face {
    font-family: spicyRice;
    src: url("fonts/SpicyRice-Regular.ttf");
}

@font-face {
    font-family: univers;
    src: url("fonts/univers.woff");
}

:root {
    --paper: #f7efd9;
    --paper-deep: #edd08b;
    --ink: #23211c;
    --muted-ink: #5a5446;
    --acid: #b0d400;
    --cyan: #b6fded;
    --orange: #ff8e32;
    --card: rgba(255, 249, 236, 0.84);
    --shadow: rgba(35, 33, 28, 0.16);
    --border: rgba(35, 33, 28, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: univers, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(182, 253, 237, 0.92), transparent 26%),
        radial-gradient(circle at right 12% top 24%, rgba(255, 142, 50, 0.34), transparent 15%),
        linear-gradient(135deg, #fff8eb 0%, var(--paper) 42%, #efe2bc 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
    animation: drift 16s ease-in-out infinite;
}

body::before {
    right: -6rem;
    bottom: 5rem;
    background: rgba(176, 212, 0, 0.45);
}

body::after {
    left: -8rem;
    top: 10rem;
    background: rgba(182, 253, 237, 0.72);
    animation-delay: -7s;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: center;
    min-height: 72vh;
    padding: 1rem 0 2rem;
}

.hero-copy {
    position: relative;
    padding: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(255, 247, 230, 0.72));
    box-shadow: 0 22px 50px var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px dashed rgba(35, 33, 28, 0.18);
    border-radius: 1.35rem;
    pointer-events: none;
}

.eyebrow,
.section-kicker,
.intro-label {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

h1,
h2 {
    margin: 0;
    font-family: spicyRice, serif;
    font-weight: 400;
    line-height: 1;
}

h1 {
    max-width: 9ch;
    font-size: clamp(3.5rem, 7vw, 6.4rem);
    text-wrap: balance;
}

.hero-text,
.intro-card p:not(.intro-label) {
    margin: 1.25rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    color: var(--muted-ink);
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-notes a {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(176, 212, 0, 0.18);
    border: 1px solid rgba(35, 33, 28, 0.08);
    box-shadow: inset 0 -2px 0 rgba(35, 33, 28, 0.06);
    color: var(--ink);
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.hero-notes a:hover,
.hero-notes a:focus-visible {
    transform: translateY(-2px);
    background: rgba(182, 253, 237, 0.76);
    border-color: rgba(35, 33, 28, 0.14);
    box-shadow:
        inset 0 -2px 0 rgba(35, 33, 28, 0.06),
        0 10px 20px rgba(35, 33, 28, 0.08);
}

.hero-notes a:focus-visible {
    outline: 3px solid rgba(255, 142, 50, 0.42);
    outline-offset: 2px;
}

.hero-art {
    margin: 0;
    display: grid;
    gap: 1rem;
    justify-items: end;
}

.art-frame {
    position: relative;
    width: min(100%, 560px);
    padding: 1rem;
    border-radius: 2.25rem;
    background:
        linear-gradient(155deg, rgba(176, 212, 0, 0.14), rgba(182, 253, 237, 0.56)),
        rgba(255, 252, 246, 0.84);
    border: 1px solid rgba(35, 33, 28, 0.1);
    box-shadow: 0 32px 60px rgba(35, 33, 28, 0.18);
    overflow: hidden;
}

.art-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(35, 33, 28, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 33, 28, 0.06) 1px, transparent 1px);
    background-size: 2rem 2rem;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-art img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.55rem;
    background: #fff;
}

.hero-art figcaption {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(35, 33, 28, 0.88);
    color: #fff8eb;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
}

.hero-art figcaption::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 142, 50, 0.2);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.intro-card,
.link-section {
    position: relative;
    scroll-margin-top: 1rem;
    border-radius: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(35, 33, 28, 0.1);
    overflow: hidden;
}

.intro-card {
    grid-column: span 12;
    padding: 1.4rem 1.5rem 1.5rem;
    background:
        linear-gradient(120deg, rgba(182, 253, 237, 0.78), rgba(255, 255, 255, 0.68) 55%, rgba(255, 142, 50, 0.22)),
        var(--card);
}

.link-section {
    grid-column: span 6;
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.95), rgba(255, 246, 225, 0.8));
}

.link-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.6rem;
    background: linear-gradient(180deg, var(--acid), var(--orange));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem 0.75rem 1.8rem;
}

.section-heading h2 {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.link-list {
    display: grid;
    gap: 0.8rem;
    padding: 0 1.1rem 1.2rem 1.8rem;
}

.link-list a {
    position: relative;
    display: block;
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: 1.15rem;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(35, 33, 28, 0.08);
    box-shadow: 0 10px 22px rgba(35, 33, 28, 0.08);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.link-list a::after {
    content: "->";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: spicyRice, serif;
    font-size: 1rem;
    color: var(--orange);
}

.link-list a:hover,
.link-list a:focus-visible {
    transform: translateY(-3px);
    background: rgba(182, 253, 237, 0.56);
    border-color: rgba(35, 33, 28, 0.16);
    box-shadow: 0 16px 28px rgba(35, 33, 28, 0.14);
}

.link-list a:focus-visible {
    outline: 3px solid rgba(255, 142, 50, 0.42);
    outline-offset: 2px;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(1.8rem, -1.2rem, 0) scale(1.06);
    }
}

@media (max-width: 960px) {
    .page-shell {
        width: min(1180px, calc(100% - 1.25rem));
        padding-top: 1.25rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.25rem;
    }

    .hero-copy,
    .art-frame {
        border-radius: 1.6rem;
    }

    .hero-art {
        justify-items: stretch;
    }

    .hero-art figcaption {
        justify-self: start;
    }

    .link-section {
        grid-column: span 12;
    }
}

@media (max-width: 640px) {
    body::before,
    body::after {
        width: 14rem;
        height: 14rem;
    }

    .page-shell {
        width: min(1180px, calc(100% - 1rem));
        padding-bottom: 2rem;
    }

    .hero-copy,
    .intro-card,
    .section-heading,
    .link-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-copy {
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
    }

    h1 {
        font-size: clamp(2.8rem, 16vw, 4.1rem);
    }

    .hero-text,
    .intro-card p:not(.intro-label),
    .link-list a {
        font-size: 1rem;
    }

    .link-list a {
        padding-right: 2.8rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 0.4rem;
    }
}
