:root {
  --ink: #18211c;
  --muted: #66706a;
  --green: #28664b;
  --green-dark: #1d513a;
  --orange: #e8773f;
  --cream: #fff7e9;
  --soft: #f4f7f3;
  --paper: #ffffff;
  --line: #dfe5df;
  --shadow: 0 12px 35px rgba(31, 62, 45, 0.09);
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: white; border-radius: 50%; background: var(--green); box-shadow: 0 5px 12px rgba(29,81,58,.19); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark .logo-pour { color: #ffb078; }
.brand-words { display: flex; align-items: baseline; gap: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.brand-words span::after { content: " &"; color: var(--ink); }
.brand-words strong { color: var(--orange); font-weight: 700; }
.desktop-nav { display: flex; gap: 32px; color: #47534c; font-size: 14px; font-weight: 500; }
.desktop-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.saved-button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.saved-button svg { width: 17px; }
.favorite-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: white; border-radius: 10px; background: var(--green); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; }
.icon-button svg { width: 20px; }
.menu-button { display: none; }

.hero {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; width: min(1200px, calc(100% - 48px));
  margin: 0 auto; padding: 68px 0 62px;
}
.hero-content { align-self: center; max-width: 650px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 560px; margin: 22px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search-shell { position: relative; width: 100%; }
.search-form {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 7px 7px 17px;
  border: 2px solid var(--green); border-radius: 12px; background: white; box-shadow: var(--shadow);
}
.search-form svg { flex: 0 0 auto; width: 21px; color: var(--green); }
.search-form input { min-width: 0; flex: 1; padding: 10px 0; border: 0; outline: 0; color: var(--ink); font-size: 15px; }
.search-form button, .button {
  min-height: 44px; padding: 0 21px; color: white; border: 0; border-radius: 8px; background: var(--green);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s;
}
.search-form button:hover, .button:hover { background: var(--green-dark); transform: translateY(-1px); }
.search-suggestions {
  position: absolute; z-index: 15; top: calc(100% + 8px); right: 0; left: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgba(25,55,38,.16);
}
.suggestion-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 13px; color: var(--ink); border: 0; border-bottom: 1px solid #edf0ed; background: white; text-align: left; cursor: pointer; }
.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover, .suggestion-item.active { background: #f1f7f3; }
.suggestion-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.suggestion-placeholder { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); border-radius: 8px; background: #e8f2eb; }
.suggestion-placeholder svg { width: 19px; }
.suggestion-copy { min-width: 0; }
.suggestion-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy span { color: var(--muted); font-size: 10px; }
.suggestion-kind { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.hero-links a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-photo {
  position: relative; min-height: 470px; overflow: hidden; border-radius: 24px;
  background: url("assets/cocktail-hero.png") 67% center / cover no-repeat; box-shadow: var(--shadow);
  cursor: pointer;
}
.photo-badge {
  position: absolute; right: 18px; bottom: 18px; left: 18px; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 3px 20px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
}
.photo-badge span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.photo-badge strong { grid-column: 1; font-size: 19px; }
.surprise-button { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 7px; padding: 9px 11px; color: var(--green); border: 0; border-radius: 8px; background: #eaf4ee; font-size: 11px; font-weight: 700; cursor: pointer; }
.surprise-button svg { width: 15px; }

.section-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 34px; }
.section-intro h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.section-intro > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 42px; }
.filter-chip { padding: 10px 17px; color: #4c5750; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.filter-chip:hover, .filter-chip.active { color: white; border-color: var(--green); background: var(--green); }
.results-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.results-meta p { margin: 0; font-size: 20px; font-weight: 700; }
.results-meta span { color: var(--muted); font-size: 11px; }
.cocktail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cocktail-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 4px 15px rgba(30,60,42,.05); cursor: pointer; animation: liftIn .4s ease-out both; transition: transform .2s, box-shadow .2s; }
.cocktail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { position: relative; aspect-ratio: 1.35; overflow: hidden; background: var(--soft); }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.13), transparent 45%); }
.card-art { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cocktail-card:hover .card-art { transform: scale(1.025); }
.save-button { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); border: 0; border-radius: 50%; background: rgba(255,255,255,.93); cursor: pointer; }
.save-button svg { width: 17px; }
.save-button.saved { color: white; background: var(--green); }
.card-number { display: none; }
.card-body { padding: 18px; }
.card-kicker { display: flex; gap: 7px; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.card-body h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.2; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.button-outline { display: flex; align-items: center; justify-content: center; margin: 38px auto 0; color: var(--green); border: 1px solid var(--green); background: white; line-height: 1; text-align: center; }
.button-outline:hover { color: white; }
.load-more {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 166px;
  height: 44px;
  padding: 0 20px !important;
  margin: 38px auto 0 !important;
  line-height: normal !important;
  text-align: center !important;
}
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.promo-wrap { display: flex; justify-content: center; padding: 22px 24px; background: transparent; border: 0; }
.promo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a938d; border: 1px dashed #bfc8c1; border-radius: 8px; background: #eef1ee; text-align: center; }
.promo-slot { position: relative; overflow: hidden; }
.promo-slot span { margin-bottom: 5px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.promo-slot strong { font-size: 12px; font-weight: 500; }
.promo-slot span { position: absolute; left: 10px; top: 9px; margin: 0; padding: 3px 6px; color: #e9f4ee; border-radius: 4px; background: rgba(16, 32, 24, .63); font-size: 8px; }
.promo-creative { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-banner { width: min(728px, 100%); aspect-ratio: 728 / 90; min-height: 0; }
.promo-wrap-wide { padding-top: 30px; padding-bottom: 30px; background: transparent; }
.promo-wide { width: min(970px, 100%); aspect-ratio: 970 / 90; min-height: 0; }
.promo-wrap-footer { padding-top: 32px; padding-bottom: 32px; }
.promo-footer { width: min(728px, 100%); aspect-ratio: 728 / 90; min-height: 0; }
.promo-hit-area { position: absolute; display: block; border-radius: 8px; background: transparent; }
.promo-hit-area:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.promo-hit-area-banner,
.promo-hit-area-footer { top: 26.67%; right: 4.12%; width: 19.51%; height: 46.67%; }
.promo-hit-area-wide { top: 26.67%; right: 3.3%; width: 17.32%; height: 46.67%; }
.promo-hit-area-rectangle { left: 11.33%; right: 11.33%; bottom: 12.8%; height: 19.2%; }
.sponsor-layout {
  display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 80px; width: min(1000px, calc(100% - 48px));
  margin: 18px auto 38px; padding: 34px; border: 0; border-radius: 16px; background: var(--cream);
}
.sponsor-copy span { color: var(--orange); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.sponsor-copy h2 { max-width: 540px; margin: 10px 0; font-size: 29px; line-height: 1.2; }
.sponsor-copy p { max-width: 530px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.promo-rectangle { width: min(300px, 100%); aspect-ratio: 300 / 250; min-height: 0; }

.basics { border-top: 1px solid var(--line); }
.basics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.basics-grid article { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 27px; color: var(--green); border-radius: 12px; background: #dfeee4; }
.step-icon svg { width: 22px; }
.step-number { position: absolute; top: 28px; right: 28px; color: #a0aaa3; font-size: 12px; font-weight: 700; }
.basics-grid h3 { margin: 0 0 8px; font-size: 20px; }
.basics-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.step-tip { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid #d9e1da; }
.step-tip strong { color: var(--green); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.step-tip span { color: #536058; font-size: 12px; line-height: 1.5; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 50px max(24px, calc((100vw - 1200px) / 2)) 25px; color: #dce6df; background: #173d2c; }
.footer-main p { margin: 15px 0 0; color: #a9bbaf; font-size: 13px; }
.footer-brand .brand-mark { color: var(--green-dark); background: white; box-shadow: none; }
.footer-brand .brand-words span::after { color: white; }
.footer-links { display: flex; align-items: center; gap: 28px; color: #bdd0c3; font-size: 12px; }
.copyright { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 20px; color: #819c89; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }

.recipe-dialog { width: min(900px, calc(100% - 30px)); max-height: 90vh; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.3); -webkit-overflow-scrolling: touch; }
.recipe-dialog::backdrop { background: rgba(15,30,20,.68); }
.dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; color: var(--ink); border-radius: 50%; background: rgba(255,255,255,.92); }
.recipe-layout { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 600px; }
.recipe-visual { min-height: 370px; overflow: hidden; }
.recipe-visual .card-art { display: block; width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.recipe-detail { padding: 48px; overflow-y: auto; }
.recipe-detail .eyebrow { margin-bottom: 10px; }
.recipe-detail h2 { margin: 0 0 10px; font-size: 42px; line-height: 1.1; }
.recipe-description { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.recipe-stats { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.recipe-stats span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.recipe-stats svg { width: 15px; color: var(--green); }
.recipe-detail h3 { margin: 25px 0 10px; font-size: 18px; }
.ingredient-list, .method-list { margin: 0; padding: 0; list-style: none; }
.ingredient-list li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ingredient-list span:last-child { color: var(--muted); text-align: right; }
.method-list { counter-reset: method; }
.method-list li { position: relative; padding: 0 0 14px 30px; color: var(--muted); font-size: 13px; line-height: 1.55; counter-increment: method; }
.method-list li::before { content: counter(method); position: absolute; left: 0; display: grid; place-items: center; width: 20px; height: 20px; color: white; border-radius: 50%; background: var(--green); font-size: 9px; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; padding: 13px 17px; color: white; border-radius: 8px; background: var(--green); font-size: 12px; transform: translateY(70px); opacity: 0; transition: .25s; }
.toast.visible { transform: translateY(0); opacity: 1; }

@keyframes liftIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-content { max-width: 700px; }
  .hero-photo { min-height: 390px; }
  .cocktail-grid, .basics-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-layout { grid-template-columns: 1fr; gap: 28px; }
  .recipe-layout { grid-template-columns: 1fr; overflow-y: auto; max-height: 90vh; }
  .recipe-visual { min-height: 280px; }
  .recipe-visual .card-art { min-height: 360px; }
}

@media (max-width: 620px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-words { font-size: 18px; }
  .saved-button > span:not(.favorite-count) { display: none; }
  .hero, .section-shell, .sponsor-layout { width: min(100% - 32px, 1200px); }
  .hero { gap: 28px; padding: 38px 0 44px; }
  h1 { font-size: 48px; }
  .hero-copy { font-size: 15px; }
  .search-form { gap: 8px; padding-left: 12px; }
  .search-form button { padding: 0 14px; }
  .hero-links { gap: 9px; }
  .hero-photo { min-height: 340px; border-radius: 16px; }
  .photo-badge { grid-template-columns: 1fr; }
  .surprise-button { grid-column: 1; grid-row: auto; margin-top: 8px; justify-self: start; }
  .section-shell { padding: 58px 0; }
  .section-intro { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 27px; }
  .section-intro h2 { font-size: 34px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 8px; scrollbar-width: none; }
  .filter-chip { flex: 0 0 auto; }
  .cocktail-grid, .basics-grid { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 1.5; }
  .results-meta { align-items: start; flex-direction: column; gap: 5px; }
  .sponsor-layout { margin-top: 8px; padding: 22px; }
  .promo-rectangle { width: 100%; min-height: 250px; }
  .sponsor-copy h2 { font-size: 24px; }
  footer { grid-template-columns: 1fr; padding: 42px 20px 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
  .recipe-detail { padding: 34px 22px; overflow-y: visible; }
  .recipe-detail h2 { font-size: 34px; }
}
