/* ===== Tokens ===== */
:root {
    --cream: #F5EEE1;
    --paper: #FFFBF4;
    --caramel: #C4854F;
    --caramel-dark: #9C6435;
    --ink: #3E2E22;
    --ink-soft: #6B5A4A;
    --blush: #E8AFAE;
    --sage: #7C8B5B;
    --line: #E4D8C3;

    --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    --radius-ear: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --wrap: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 .4em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
    color: var(--ink-soft);
}

.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--caramel-dark);
    margin: 0 0 .6em;
}

a {
    color: inherit;
}

/* ===== Progress ear (signature scroll indicator) ===== */
.progress-ear {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--caramel), var(--blush));
    border-radius: 0 6px 6px 0;
    z-index: 1000;
    transition: width .1s linear;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
    background: var(--caramel);
    color: var(--paper);
    box-shadow: 0 6px 0 var(--caramel-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--caramel-dark);
}

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-small {
    padding: .5em 1.2em;
    font-size: .85rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(8px);
    background: rgba(245, 238, 225, .85);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--ink);
}

.logo span {
    color: var(--caramel);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-soft);
    position: relative;
    padding-bottom: 4px;
}

.nav a:hover {
    color: var(--caramel-dark);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    padding: 70px 0 40px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-media {
    position: relative;
}

.hero-blob {
    position: absolute;
    inset: -10% -10% -10% -10%;
    background: radial-gradient(circle at 30% 30%, var(--blush), transparent 60%),
        radial-gradient(circle at 70% 70%, var(--sage), transparent 55%);
    opacity: .35;
    z-index: -1;
    filter: blur(10px);
}

/* Signature element: ear-shaped image frames */
.ear-frame {
    border-radius: var(--radius-ear);
    overflow: hidden;
    border: 6px solid var(--paper);
    box-shadow: 0 20px 40px -18px rgba(62, 46, 34, .35);
    background: var(--paper);
}

.ear-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ear-frame--big {
    aspect-ratio: 4/5;
}

.ear-frame--mid {
    aspect-ratio: 4/3;
    max-width: 420px;
    margin: 0 auto 28px;
}

.ear-frame--float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1.2deg);
    }
}

/* ===== Facts strip ===== */
.facts {
    padding: 10px 0 60px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.fact-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-soft);
    font-weight: 600;
}

.fact-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--caramel-dark);
}

/* ===== Sections ===== */
.section {
    padding: 70px 0;
}

.section--alt {
    background: var(--paper);
}

.section-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.section-grid--reverse {
    grid-template-columns: 1.2fr .8fr;
}

.section-grid--reverse .section-head {
    order: 2;
}

.section-grid--reverse .section-body {
    order: 1;
}

.section-head {
    position: sticky;
    top: 100px;
}

.section-body p {
    max-width: 68ch;
}

/* checklist */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--sage);
    border-radius: var(--radius-ear);
}

.check-list--health li::before {
    background: var(--blush);
}

.check-list strong {
    color: var(--ink);
}

/* trait grid */
.trait-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.trait-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

.section--alt .trait-card {
    background: var(--cream);
}

.trait-card h3 {
    color: var(--caramel-dark);
}

.trait-card p {
    margin: 0;
    font-size: .95rem;
}

/* diet bars */
.diet-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0;
    max-width: 560px;
}

.diet-row {
    display: grid;
    grid-template-columns: 150px 1fr 44px;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.bar {
    height: 10px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--caramel));
    border-radius: 999px;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer p {
    margin: 0;
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ear-frame--float {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {

    .section-grid,
    .section-grid--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-grid--reverse .section-head,
    .section-grid--reverse .section-body {
        order: initial;
    }

    .section-head {
        position: static;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-130%);
        transition: transform .3s ease;
    }

    .nav.open {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }

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

    .diet-row {
        grid-template-columns: 100px 1fr 36px;
        font-size: .82rem;
    }
}

@media (max-width: 520px) {
    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero {
        padding-top: 40px;
    }

    .section {
        padding: 50px 0;
    }

    .wrap {
        padding: 0 18px;
    }
}