/* ==========================================================================
   FrozenSips — design system
   Midnight-bar aesthetic: near-black canvas, frosted glass panels,
   icy cyan + warm amber accents. Fraunces (display) / Outfit (UI).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Outfit:wght@300..800&display=swap');

:root {
    --ink: #05070d;
    --canvas: #0a0e1a;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.09);
    --border-bright: rgba(154, 214, 255, 0.35);
    --text: #eef1f9;
    --muted: #98a1b8;
    --faint: #6b7490;
    --ice: #8fd7ff;
    --ice-deep: #3aa7e0;
    --amber: #f2b566;
    --amber-deep: #d98b3a;
    --rose: #f597a1;
    --gold-grad: linear-gradient(120deg, #f6c77e, #eda15c 55%, #f6d7a2);
    --ice-grad: linear-gradient(120deg, #bfe9ff, #6ec3f2 60%, #dff4ff);
    --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.65);
    --shadow-sm: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
    --radius: 22px;
    --font-display: "Fraunces", Georgia, serif;
    --font-ui: "Outfit", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-ui);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text);
    background-color: var(--ink);
    background-image:
        radial-gradient(1100px 620px at 12% -8%, rgba(66, 148, 214, 0.16), transparent 60%),
        radial-gradient(900px 560px at 92% 4%, rgba(233, 155, 90, 0.10), transparent 55%),
        radial-gradient(1000px 720px at 50% 115%, rgba(120, 90, 220, 0.12), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(143, 215, 255, 0.28); }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 14px;
}
.eyebrow--ice { color: var(--ice); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

.display-xl {
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}
.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; }
.display-md { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; }

.text-gradient-ice {
    background: var(--ice-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-gradient-gold {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.italic-flair { font-style: italic; font-weight: 300; }

.lede {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 54ch;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px clamp(20px, 4vw, 44px);
    background: linear-gradient(rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.62));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.site-brand .brand-flake {
    color: var(--ice);
    font-size: 1rem;
    animation: flake-spin 14s linear infinite;
    display: inline-block;
}
@keyframes flake-spin { to { transform: rotate(360deg); } }
.site-brand em { font-style: italic; color: var(--ice); }

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 30px);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.site-nav a { position: relative; padding: 6px 0; transition: color 0.25s; }
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--ice-grad);
    transition: right 0.35s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.nav-cta {
    padding: 9px 18px;
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    color: var(--ice);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    background: rgba(143, 215, 255, 0.12);
    box-shadow: 0 0 24px rgba(110, 195, 242, 0.25);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Layout shells
   -------------------------------------------------------------------------- */
.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 44px) 90px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(48px, 8vh, 110px) clamp(20px, 4vw, 44px) clamp(50px, 7vh, 90px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__copy-block { animation: rise-in 0.9s var(--ease) both; }
.hero__title { margin: 0 0 22px; }
.hero__title .line { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--gold-grad);
    color: #241505;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    box-shadow: 0 12px 30px -10px rgba(237, 161, 92, 0.55);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(237, 161, 92, 0.7); }
.button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.button--ghost:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 26px rgba(110, 195, 242, 0.2);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(22px, 3.5vw, 46px);
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat .stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
}
.stat .stat-label {
    margin-top: 7px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--faint);
}

/* Featured pour — the framed hero photo */
.hero__feature {
    position: relative;
    animation: rise-in 0.9s var(--ease) 0.15s both;
}
.feature-frame {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
    transform: rotate(2.2deg);
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.feature-frame:hover { transform: rotate(0.6deg) translateY(-6px); }
.feature-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0) 46%, rgba(5, 7, 13, 0.88) 100%);
    pointer-events: none;
}
.feature-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.9s var(--ease);
}
.feature-frame:hover img { transform: scale(1.06); }
.feature-caption {
    position: absolute;
    z-index: 3;
    left: 24px;
    right: 24px;
    bottom: 22px;
}
.feature-caption .eyebrow { margin-bottom: 8px; }
.feature-caption h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature-caption .feature-cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ice);
}
.feature-badge {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(5, 7, 13, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(246, 199, 126, 0.4);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--amber);
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Marquee ticker
   -------------------------------------------------------------------------- */
.ticker {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 0;
    margin-bottom: clamp(48px, 7vh, 84px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: ticker-scroll 45s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.25s;
}
.ticker__item:hover { color: var(--ice); }
.ticker__item::after { content: "✦"; font-style: normal; font-size: 0.6rem; color: var(--amber-deep); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Section heads + filter bar
   -------------------------------------------------------------------------- */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.section-head .section-description { max-width: 44ch; color: var(--muted); line-height: 1.7; margin: 0; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
}
.search-field {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.search-field:focus-within {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 4px rgba(110, 195, 242, 0.12);
}
.search-field svg { flex: none; opacity: 0.5; }
.search-field input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.search-field input::placeholder { color: var(--faint); }

.sort-toggle { display: flex; gap: 8px; }
.sort-toggle button {
    padding: 11px 20px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}
.sort-toggle button:hover { color: var(--text); border-color: var(--border-bright); }
.sort-toggle button.is-active {
    background: rgba(143, 215, 255, 0.12);
    border-color: var(--border-bright);
    color: var(--ice);
}

.empty-note {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Cocktail cards
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(20px, 2.6vw, 34px);
}

.cocktail-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.cocktail-card.in-view { opacity: 1; transform: none; }
.cocktail-card.is-hidden { display: none; }

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.card-link:hover {
    transform: translateY(-8px);
    border-color: var(--border-bright);
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.7), 0 0 40px -8px rgba(110, 195, 242, 0.18);
}

.card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.card-link:hover .card-media img { transform: scale(1.07); }
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.18) 0%, rgba(5, 7, 13, 0) 32%, rgba(5, 7, 13, 0) 60%, rgba(5, 7, 13, 0.62) 100%);
    pointer-events: none;
}

.card-index {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 16px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.rating-chip {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(5, 7, 13, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber);
}

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-body h3 { font-size: 1.32rem; line-height: 1.2; }
.card-body .card-teaser {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}
.card-foot .view-cue { color: var(--ice); display: inline-flex; align-items: center; gap: 7px; transition: gap 0.3s var(--ease); }
.card-link:hover .view-cue { gap: 12px; }

/* Stars — partial fill via gradient clip, driven by --rating */
.stars {
    --rating: 0;
    position: relative;
    display: inline-block;
    font-size: 0.86rem;
    line-height: 1;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.18);
}
.stars::before { content: "★★★★★"; }
.stars::after {
    content: "★★★★★";
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: calc(var(--rating) / 5 * 100%);
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Ingredient chip cloud
   -------------------------------------------------------------------------- */
.ingredients-section { margin-top: clamp(60px, 9vh, 110px); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.ingredient-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--muted);
    transition: all 0.25s var(--ease);
}
.ingredient-chip:hover {
    color: var(--text);
    border-color: rgba(246, 199, 126, 0.45);
    background: rgba(246, 199, 126, 0.07);
    transform: translateY(-2px);
}
.chip-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(246, 199, 126, 0.14);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--amber);
}

/* --------------------------------------------------------------------------
   Ingredient page — combination filter
   -------------------------------------------------------------------------- */
.combo-head { margin-top: 34px; }
.combo-panel { margin-bottom: clamp(24px, 4vh, 40px); }
.combo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.combo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.combo-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(143, 215, 255, 0.1);
    border: 1px solid var(--border-bright);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ice);
}
.combo-chip--base {
    background: rgba(246, 199, 126, 0.1);
    border-color: rgba(246, 199, 126, 0.45);
    color: var(--amber);
}
.combo-chip button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.combo-chip button:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.1); }
.combo-select {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.combo-select:hover, .combo-select:focus {
    border-color: var(--border-bright);
    outline: none;
    box-shadow: 0 0 0 4px rgba(110, 195, 242, 0.12);
}
.combo-select option { background: #10141f; color: var(--text); }
.combo-count {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
}
.combo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Detail page
   -------------------------------------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 30px 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s, gap 0.3s var(--ease);
}
.back-link:hover { color: var(--ice); gap: 13px; }

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
    padding: clamp(24px, 4vh, 56px) 0 clamp(36px, 5vh, 64px);
}
.detail-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.6deg);
    animation: rise-in 0.8s var(--ease) both;
}
.detail-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-copy { animation: rise-in 0.8s var(--ease) 0.12s both; }
.detail-copy h1 { margin-bottom: 18px; }
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 22px 0 26px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.meta-pill strong { color: var(--text); font-weight: 600; }
.meta-pill--gold { border-color: rgba(246, 199, 126, 0.35); color: var(--amber); }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(20px, 3vw, 34px);
    margin-bottom: clamp(20px, 3vw, 34px);
}

.panel {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    padding: clamp(26px, 3.4vw, 42px);
    box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.55rem; margin-bottom: 20px; }
.panel-kicker {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ice);
    margin: 0 0 10px;
}
.instructions-text { color: var(--muted); line-height: 1.9; font-size: 1.02rem; margin: 0; }
.instructions-text em { color: var(--text); }

.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 2px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-link {
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}
.ingredient-link:hover { color: var(--ice); border-color: var(--ice); }
.ingredient-amount {
    flex: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--amber);
    white-space: nowrap;
}

.gallery-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.5s var(--ease), border-color 0.4s;
}
.gallery-grid img:hover { transform: scale(1.025); border-color: var(--border-bright); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 40px clamp(20px, 4vw, 44px) 52px;
    text-align: center;
    color: var(--faint);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}
.site-footer .foot-brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--muted);
    display: block;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Responsive + motion preferences
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 42px; }
    .hero__feature { max-width: 460px; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-photo { max-width: 460px; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-header { flex-direction: column; gap: 12px; }
    .site-nav { flex-wrap: wrap; justify-content: center; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .card-media { aspect-ratio: 3 / 4; }
    .card-body { padding: 14px 14px 16px; }
    .card-body h3 { font-size: 1.05rem; }
    .card-body .card-teaser { display: none; }
}
@media (max-width: 460px) {
    .card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .cocktail-card { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Ingredient pages — combination filter (/<ingredient>-cocktails/)
   -------------------------------------------------------------------------- */
.combo-head { padding-top: clamp(20px, 4vh, 40px); }
.combo-panel { margin-bottom: clamp(26px, 4vh, 44px); }
.combo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}
.combo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.combo-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border-radius: 999px;
    background: rgba(143, 215, 255, 0.1);
    border: 1px solid var(--border-bright);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ice);
}
.combo-chip--base {
    background: rgba(246, 199, 126, 0.1);
    border-color: rgba(246, 199, 126, 0.4);
    color: var(--amber);
}
.combo-chip button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.combo-chip button:hover { opacity: 1; }
.combo-select {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.combo-select:hover, .combo-select:focus {
    outline: none;
    border-color: var(--border-bright);
    box-shadow: 0 0 0 4px rgba(110, 195, 242, 0.12);
}
.combo-select option { background: var(--canvas); color: var(--text); }
.combo-count { margin: 20px 0 0; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.03em; }
.combo-empty {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Admin — login + dashboard
   -------------------------------------------------------------------------- */
.admin-lede { color: var(--muted); line-height: 1.7; margin: 0 0 22px; }

.login-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 40px clamp(16px, 4vw, 44px);
}
.login-card { width: min(460px, 100%); }
.login-card h1 { margin-bottom: 12px; }

.admin-shell { padding-top: clamp(28px, 5vh, 52px); }
.admin-head { align-items: center; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-actions .button { white-space: nowrap; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}
.admin-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(20px, 2.6vw, 30px);
}
.admin-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-card__head h3 { font-size: 1.3rem; margin-bottom: 6px; }
.admin-card__thumb {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* Form controls */
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--border-bright);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(110, 195, 242, 0.12);
}
.form-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-field--inline { flex-direction: row; align-items: center; justify-content: space-between; }
.form-field--inline input { width: 110px; text-align: center; }

.ingredient-editor { display: flex; flex-direction: column; gap: 10px; }
.ingredient-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
}

.button--full { width: 100%; justify-content: center; margin-top: auto; }

.flash {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.flash--success { color: #9dffb5; border-color: rgba(120, 255, 170, 0.3); background: rgba(120, 255, 170, 0.06); }
.flash--error { color: #ff8ea2; border-color: rgba(255, 120, 140, 0.3); background: rgba(255, 120, 140, 0.06); }
.login-card .flash { margin-bottom: 18px; }

@media (max-width: 640px) {
    .admin-head { flex-direction: column; align-items: stretch; }
    .admin-actions { width: 100%; }
    .admin-actions form { flex: 1 1 100%; display: flex; }
    .admin-actions .button { flex: 1; justify-content: center; }
    .admin-grid { grid-template-columns: 1fr; }
    .form-field--inline { flex-direction: row; }
}

.form-hint { font-size: 0.78rem; color: var(--faint); line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.form-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ice-deep);
    cursor: pointer;
}

/* Holiday tag chips on cocktail pages */
.cd-meta--holidays { margin-top: 2px; }
a.cd-chip { transition: border-color 0.25s, color 0.25s, background 0.25s; }
a.cd-chip--holiday {
    border-color: rgba(246, 199, 126, 0.4);
    color: var(--amber);
}
a.cd-chip--holiday:hover {
    background: rgba(246, 199, 126, 0.12);
    color: #ffd9a0;
}

.foot-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.foot-links a { color: var(--muted); transition: color 0.25s; }
.foot-links a:hover { color: var(--ice); }

/* AI add-cocktail page */
.add-panel { max-width: 560px; }
.photo-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 2px dashed var(--border-bright);
    border-radius: 20px;
    background: rgba(143, 215, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}
.photo-drop:hover { background: rgba(143, 215, 255, 0.1); }
.photo-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.photo-drop img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    pointer-events: none;
}
.photo-drop__hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    pointer-events: none;
    padding: 20px;
}
.photo-drop__hint small { color: var(--faint); }

/* Shaker overlay */
.mix-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 13, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mix-overlay__inner { text-align: center; padding: 30px; max-width: 340px; }
.mix-shaker {
    font-size: 3.4rem;
    animation: mix-shake 0.9s ease-in-out infinite;
    margin-bottom: 18px;
}
@keyframes mix-shake {
    0%, 100% { transform: rotate(-14deg) translateY(0); }
    25% { transform: rotate(10deg) translateY(-8px); }
    50% { transform: rotate(-10deg) translateY(0); }
    75% { transform: rotate(14deg) translateY(-8px); }
}
.mix-glass {
    position: relative;
    width: 74px;
    height: 96px;
    margin: 0 auto 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top: none;
    border-radius: 0 0 26px 26px;
    overflow: hidden;
}
.mix-glass__liquid {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, var(--ice-deep), var(--amber-deep));
    animation: mix-fill 2.6s ease-in-out infinite;
}
@keyframes mix-fill {
    0% { height: 8%; }
    70% { height: 92%; }
    100% { height: 8%; }
}
.mix-status {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: var(--text);
}
.mix-substatus { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin: 0; }

.button-delete {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 120, 140, 0.35);
    color: #ff8ea2;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}
.button-delete:hover {
    background: rgba(255, 120, 140, 0.1);
    border-color: rgba(255, 120, 140, 0.6);
}

/* display:grid on the class was overriding the hidden attribute, showing the
   overlay on page load and burying the form */
.mix-overlay[hidden] { display: none; }

/* Rating slider on the AI add page */
.rate-row { display: flex; align-items: center; gap: 14px; }
.rate-row input[type="range"] {
    flex: 1;
    padding: 0;
    border: none;
    background: transparent;
    accent-color: var(--ice-deep);
    height: 32px;
    cursor: pointer;
}
.rate-value {
    flex: none;
    min-width: 74px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.rate-value--set {
    color: var(--amber);
    border-color: rgba(246, 199, 126, 0.4);
    background: rgba(246, 199, 126, 0.1);
}
