/*
 * Fave — global styles (tokens, reset, ticker, header, hero base, shared .section-title).
 * Page-specific rules: css/index.css, css/findfave.css, css/flavors.css, css/shop.css, css/story.css
 * (each HTML page links css/style.css first, then its page stylesheet).
 */

:root {
    --pink: #E91E63;
    --yellow: #FFEB3B;
    --orange: #FF9800;
    --ink: #1a1a1a;
    --page-pad: clamp(1rem, 4vw, 2.5rem);
    --header-h: 4.25rem;
    --radius-card: clamp(1.25rem, 3vw, 2.75rem);
    --radius-bento: clamp(1.5rem, 3.5vw, 2.5rem);
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --page-grey: #e4e4e4;
    --green-accent: #48b854;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: #fff;
}

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

a {
    color: inherit;
}

/* ——— Tickers ——— */

.ticker {
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    padding: 0.55rem 0;
}

.ticker--top {
    background: var(--yellow);
    color: var(--ink);
}

.ticker--bottom {
    background: var(--orange);
    color: #fff;
    font-family: var(--mono);
}

.ticker__track {
    display: inline-flex;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.ticker__track--slow {
    animation-duration: 36s;
}

.ticker__segment {
    padding-right: 2rem;
    color: var(--pink);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
}

/* ——— Header ——— */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    padding: 0.65rem var(--page-pad);
    background: var(--pink);
    color: #fff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.logo {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 800;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: lowercase;
    line-height: 1;
}

.header__drawer {
    display: contents;
}

.nav-main {
    justify-self: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    justify-self: end;
}

.nav-toggle__bar {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 2.25rem);
}

.nav__list a {
    color: var(--yellow);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav__list a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.nav__social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    justify-self: end;
}

.social-dot {
    width: 1.85rem;
    height: 1.85rem;
    background: var(--yellow);
    flex-shrink: 0;
}

.nav__follow {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
    }

    .header__drawer {
        display: flex;
        flex-direction: column;
        grid-column: 1 / -1;
        grid-row: 2;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
        padding: 0;
        gap: 1.25rem;
    }

    .header.nav-open .header__drawer {
        max-height: 22rem;
        opacity: 1;
        padding-top: 0.75rem;
        padding-bottom: 0.35rem;
    }

    .nav-main {
        justify-self: stretch;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .nav__social {
        justify-self: stretch;
        flex-wrap: wrap;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* ——— Hero ——— */

.hero {
    width: 100%;
    background: #111;
}

.hero__media {
    display: block;
    width: 100%;
    max-height: min(85vh, 920px);
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: min(85vh, 920px);
    object-fit: cover;
    object-position: 100% center;
    display: block;
}

/* Mobile: full image visible, full width — no forced crop */
@media (max-width: 600px) {
    .hero__media {
        max-height: none;
        overflow: visible;
    }

    .hero__media img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }
}

.section-title {
    margin: clamp(2rem, 6vw, 3.5rem) auto clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
}
.nav__list a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
