:root {
  --ink: #0a0a0a;
  --paper: #f1f0eb;
  --muted: #a8a8a0;
  --line: rgba(255,255,255,.14);
  --acid: #d8ff3e;
  --orange: #ff6a2a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.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; }

.topbar { height: 74px; padding: 0 clamp(20px,4vw,64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.brand { font-size: 1.12rem; line-height: 1; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--acid); }
.topbar p { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
.jump { justify-self: end; text-decoration: none; font-size: .84rem; font-weight: 650; }
.jump span { color: var(--acid); margin-left: 8px; }

.hero { min-height: calc(100svh - 74px); display: grid; grid-template-columns: minmax(340px, .9fr) 1.45fr; padding: clamp(18px,2.5vw,36px) clamp(20px,4vw,64px) clamp(48px,6vw,80px); gap: clamp(24px,3vw,48px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; padding: 7vh 0 4vh; }
.eyebrow { margin: 0 0 22px; color: var(--acid); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(4.5rem,9.2vw,9.4rem); font-weight: 800; letter-spacing: -.085em; line-height: .77; text-wrap: balance; }
h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; color: var(--acid); }
.intro { max-width: 470px; color: #c8c8c2; font-size: clamp(1.05rem,1.4vw,1.26rem); line-height: 1.55; margin: clamp(30px,5vh,58px) 0 28px; }
.hero-cta { display: inline-flex; align-items: center; justify-content: space-between; width: min(100%, 250px); border-bottom: 1px solid #fff; padding: 12px 0; text-decoration: none; font-size: .92rem; font-weight: 700; }
.hero-cta span { color: var(--acid); font-size: 1.2rem; }
.hero-image { min-height: 620px; border-radius: 1px; background: #0a0a0a; position: relative; overflow: hidden; }
.hero-image::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.image-label { position: absolute; right: 14px; bottom: 14px; padding: 8px 10px; background: rgba(8,8,8,.72); backdrop-filter: blur(10px); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }

.recipe-section { padding: clamp(76px,10vw,148px) clamp(20px,4vw,64px) 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(3rem,7vw,6.5rem); letter-spacing: -.07em; line-height: .86; margin: 0; }
.result-count { margin: 0 0 4px; color: var(--muted); font-size: .86rem; }
.finder { padding: 24px 0 34px; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; align-items: center; gap: 30px; }
.search-wrap { height: 48px; border-bottom: 1px solid #74746f; display: flex; align-items: center; gap: 12px; }
.search-wrap svg { width: 20px; height: 20px; stroke: var(--acid); stroke-width: 1.8; fill: none; flex: 0 0 auto; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 1rem; }
.search-wrap input::placeholder { color: #777771; }
.filters { display: flex; justify-content: end; gap: 7px; flex-wrap: wrap; }
.filter { border: 1px solid #343432; border-radius: 999px; padding: 10px 15px; background: transparent; color: #a8a8a0; cursor: pointer; transition: .2s ease; min-height: 42px; }
.filter:hover, .filter:focus-visible { border-color: #86867f; color: #fff; }
.filter.active { color: #080808; background: var(--acid); border-color: var(--acid); font-weight: 750; }

.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.recipe-card { min-height: 330px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; color: var(--paper); background: #0a0a0a; cursor: pointer; text-align: left; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .25s ease, color .25s ease; }
.recipe-card::before { content: ''; position: absolute; inset: auto -30% -60% 30%; height: 75%; background: radial-gradient(circle, var(--tone), transparent 68%); opacity: .18; filter: blur(8px); transition: .35s ease; }
.recipe-card:hover, .recipe-card:focus-visible { color: #0b0b0b; background: var(--tone); outline: none; }
.recipe-card:hover::before, .recipe-card:focus-visible::before { opacity: 0; }
.card-top { display: flex; justify-content: space-between; gap: 20px; color: #8e8e87; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.recipe-card:hover .card-top, .recipe-card:focus-visible .card-top { color: rgba(0,0,0,.58); }
.card-name { font-size: clamp(1.8rem,2.35vw,2.7rem); font-weight: 760; letter-spacing: -.055em; line-height: .95; margin: auto 0 16px; max-width: 10ch; position: relative; }
.card-foot { display: flex; justify-content: space-between; align-items: end; position: relative; }
.card-taste { color: #9d9d96; font-family: var(--serif); font-style: italic; font-size: 1rem; }
.recipe-card:hover .card-taste, .recipe-card:focus-visible .card-taste { color: rgba(0,0,0,.65); }
.card-arrow { width: 38px; height: 38px; border: 1px solid #41413e; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; transition: transform .25s ease, border-color .25s ease; }
.recipe-card:hover .card-arrow, .recipe-card:focus-visible .card-arrow { border-color: rgba(0,0,0,.35); transform: rotate(-45deg); }
.photo-tile { grid-column: span 2; min-height: 420px; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--photo) center / cover no-repeat; }
.photo-tile::after { content: attr(data-caption); position: absolute; left: 18px; bottom: 18px; padding: 8px 10px; background: rgba(8,8,8,.72); backdrop-filter: blur(10px); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.empty { text-align: center; padding: 90px 20px; border: 1px solid var(--line); }
.empty p { color: var(--muted); font-family: var(--serif); font-size: 1.35rem; }
.empty button { border: 0; border-bottom: 1px solid var(--acid); padding: 8px 0; color: #fff; background: none; cursor: pointer; }

footer { border-top: 1px solid var(--line); padding: 34px clamp(20px,4vw,64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #85857e; font-size: .78rem; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }

dialog { width: min(900px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid #41413e; padding: 0; color: var(--paper); background: #11110f; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.dialog-shell { padding: clamp(24px,5vw,58px); position: relative; }
.close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #44443f; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.close:hover { background: var(--acid); color: #111; border-color: var(--acid); }
.close svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; }
.dialog-top { display: grid; grid-template-columns: 1fr 120px; gap: 30px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0 34px; }
.dialog-kicker { color: var(--acid); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 16px; }
.dialog-top h2 { font-size: clamp(3.1rem,7vw,6.1rem); max-width: 9ch; }
.dialog-note { color: #aaa9a2; font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin: 18px 0 0; }
.glass-mark { width: 108px; height: 108px; border-radius: 50%; border: 1px solid #5b5b55; display: grid; place-items: center; background: radial-gradient(circle at 48% 38%, var(--dialog-tone), transparent 64%); }
.glass-mark span { width: 36px; height: 48px; border: 2px solid rgba(255,255,255,.72); border-top-width: 5px; transform: perspective(80px) rotateX(-8deg); }
.serve-row { min-height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: #aaa9a2; font-size: .82rem; }
.serve-controls { display: flex; gap: 5px; }
.serve { width: 38px; height: 34px; border: 1px solid #3d3d39; background: transparent; color: #aaa9a2; cursor: pointer; }
.serve.active { background: var(--acid); color: #0a0a0a; border-color: var(--acid); font-weight: 800; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,7vw,76px); padding-top: 36px; }
.dialog-grid h3 { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #85857f; margin: 0 0 20px; }
.ingredients, .method { list-style: none; padding: 0; margin: 0; }
.ingredients li { min-height: 43px; border-bottom: 1px solid #2e2e2b; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-size: .94rem; }
.ingredients strong { color: var(--acid); font-weight: 720; white-space: nowrap; }
.method { counter-reset: steps; }
.method li { counter-increment: steps; display: grid; grid-template-columns: 28px 1fr; gap: 12px; line-height: 1.52; color: #c4c3bd; margin-bottom: 16px; }
.method li::before { content: '0' counter(steps); color: var(--acid); font-size: .7rem; padding-top: 4px; }
.serve-in { margin-top: 22px; display: grid; grid-template-columns: 90px 1fr; gap: 14px; font-size: .83rem; }
.serve-in span { color: #777771; }
.serve-in strong { font-weight: 600; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero-image { min-height: 540px; }
  .finder { grid-template-columns: 1fr; }
  .filters { justify-content: start; }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .photo-tile { grid-column: span 2; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; padding: 0 18px; grid-template-columns: 1fr 1fr; }
  .topbar p { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 20px 18px 64px; gap: 26px; }
  .hero-copy { min-height: 430px; padding: 50px 0 10px; }
  h1 { font-size: clamp(4.4rem,23vw,7.3rem); }
  .intro { max-width: 34ch; margin-top: 36px; }
  .hero-image { min-height: 58svh; order: -1; background-position: 63% center; }
  .recipe-section { padding: 76px 18px 70px; }
  .section-head { align-items: end; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .recipe-card { min-height: 255px; padding: 17px; }
  .card-name { font-size: clamp(1.55rem,7vw,2rem); }
  .photo-tile { grid-column: span 2; min-height: 300px; }
  footer { grid-template-columns: 1fr 1fr; gap: 16px; }
  footer p:first-of-type { display: none; }
  .dialog-shell { padding: 56px 22px 28px; }
  .dialog-top { grid-template-columns: 1fr 72px; gap: 14px; }
  .glass-mark { width: 66px; height: 66px; }
  .glass-mark span { width: 24px; height: 34px; }
  .dialog-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 430px) {
  .hero-image { min-height: 52svh; }
  .recipe-grid { grid-template-columns: 1fr; }
  .photo-tile { grid-column: span 1; min-height: 260px; }
  .recipe-card { min-height: 230px; }
  .section-head h2 { font-size: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Preserve the original cards and image crops with semantic links and images. */
[hidden] { display: none !important; }
.recipe-card { text-decoration: none; }
.hero-image > img, .photo-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.3), transparent 25%); z-index: 1; pointer-events: none; }
.image-label { z-index: 2; }
.recipe-permalink { display: inline-block; margin-top: 18px; color: var(--acid); font-size: .85rem; }
.recipe-page { width: min(900px, calc(100% - 28px)); margin: 36px auto; background: #11110f; border: 1px solid #41413e; }
.recipe-page h1 { font-size: clamp(3.1rem,7vw,6.1rem); max-width: 12ch; line-height: .95; overflow-wrap: anywhere; }
.recipe-page .dialog-grid h2 { font-size: .72rem; letter-spacing: .15em; line-height: normal; text-transform: uppercase; color: #85857f; margin: 0 0 20px; }
.recipe-navigation { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.recipe-navigation a { color: var(--acid); }
@media (max-width: 720px) { .hero-image > img { object-position: 63% center; } }
