
:root {
  --bg: #0d110e;
  --bg-soft: #131a15;
  --panel: rgba(24, 32, 26, .86);
  --panel-solid: #18201a;
  --line: rgba(231, 210, 162, .14);
  --text: #f4f0e7;
  --muted: #a9b0a7;
  --gold: #d7ad62;
  --gold-light: #f0d28f;
  --green: #8eb789;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, #253127 0, transparent 37rem),
    linear-gradient(180deg, #101510, var(--bg) 60%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  z-index: -1;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
code {
  color: var(--gold-light);
  background: rgba(215,173,98,.10);
  border: 1px solid rgba(215,173,98,.17);
  padding: .1rem .35rem;
  border-radius: 6px;
}
.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .09;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #d0a14c; top: 14rem; right: -12rem; }
.ambient-two { background: #5d9a63; top: 58rem; left: -14rem; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: .08em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215,173,98,.38);
  color: var(--gold-light);
  transform: rotate(45deg);
  border-radius: 8px;
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand strong { display: block; font-size: .82rem; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav { display: flex; gap: 28px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s ease;
}
nav a:hover { color: var(--text); }

main, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 100px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 50%;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(215,173,98,.18);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 42px rgba(215,173,98,.025),
    0 0 0 84px rgba(215,173,98,.018);
  background:
    radial-gradient(circle, rgba(215,173,98,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(215,173,98,.07), transparent 58%);
}
.hero::before {
  content: "BREW";
  position: absolute;
  right: 4.5%;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  font-family: Georgia, serif;
  font-size: 5.7rem;
  letter-spacing: .18em;
  color: rgba(240,210,143,.1);
  z-index: 1;
}
.eyebrow, .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 750;
}
.hero h1 {
  max-width: 800px;
  margin: 22px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.4rem);
  line-height: .89;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero h1 em {
  color: var(--gold-light);
  font-weight: 400;
}
.hero > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold-light); color: #182018; }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 58px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: Georgia, serif; font-size: 1.65rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }

.process-section, .recipes-section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.035em;
}
.section-heading > p {
  max-width: 390px;
  margin: 0 0 6px;
  color: var(--muted);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.016);
}
.process-card {
  min-height: 330px;
  padding: 28px;
  position: relative;
  border-right: 1px solid var(--line);
}
.process-card:last-child { border-right: 0; }
.step-number {
  color: rgba(240,210,143,.45);
  font-size: .72rem;
  letter-spacing: .15em;
}
.step-icon {
  margin: 42px 0 25px;
  color: var(--gold-light);
  font-size: 2rem;
}
.process-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}
.process-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.tip {
  display: block;
  margin-top: 21px;
  color: var(--green);
  font-size: .76rem;
}
.quick-note {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(142,183,137,.18);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(142,183,137,.045);
  font-size: .88rem;
}
.quick-note strong { color: var(--text); }

.recipes-heading { margin-bottom: 30px; }
.controls {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(13,17,14,.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 45px rgba(0,0,0,.18);
}
.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  border-radius: 12px;
  height: 46px;
  padding: 0 14px;
}
.search-box:focus-within { border-color: rgba(215,173,98,.42); }
.search-box span { color: var(--gold); font-size: 1.25rem; }
.search-box input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}
.search-box input::placeholder { color: #7e867e; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
}
.filter:hover { color: var(--text); background: rgba(255,255,255,.035); }
.filter.active {
  color: #172018;
  background: var(--gold-light);
  font-weight: 750;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.recipe-card {
  position: relative;
  text-align: left;
  min-height: 248px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 55%),
    var(--panel);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(255,255,255,.018) inset;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.recipe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,173,98,.3);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 55%),
    #1b241d;
}
.recipe-card::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: var(--drink-color);
  opacity: .08;
  filter: blur(35px);
  right: -55px;
  top: -40px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.drink-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--drink-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--drink-color) 15%, transparent);
}
.category {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .64rem;
}
.recipe-card h3 {
  margin: 30px 0 7px;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.04;
}
.ingredients-preview {
  color: var(--muted);
  font-size: .78rem;
  min-height: 38px;
}
.card-meta {
  display: flex;
  gap: 14px;
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
}
.card-meta span { display: inline-flex; gap: 5px; align-items: center; }
.card-meta strong { color: var(--text); font-weight: 700; }
.card-arrow {
  margin-left: auto;
  color: var(--gold-light);
  font-size: 1rem;
}
.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--text); font-family: Georgia, serif; font-size: 1.7rem; }
.empty-state span { font-size: .86rem; }

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}

dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid rgba(215,173,98,.24);
  border-radius: 24px;
  color: var(--text);
  background: #131914;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(3,6,4,.76);
  backdrop-filter: blur(8px);
}
.dialog-shell { position: relative; overflow: auto; max-height: calc(100vh - 30px); }
.close-button {
  position: sticky;
  float: right;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15,20,16,.88);
  cursor: pointer;
  font-size: 1.4rem;
}
.close-button:hover { border-color: rgba(215,173,98,.4); }
.dialog-hero {
  padding: 42px 42px 34px;
  background:
    radial-gradient(circle at 85% 0, color-mix(in srgb, var(--drink-color) 22%, transparent), transparent 42%),
    rgba(255,255,255,.018);
  border-bottom: 1px solid var(--line);
}
.dialog-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; }
.dialog-hero h2 {
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 14px 50px 14px 0;
  font-weight: 500;
}
.quality-names { color: var(--muted); font-size: .78rem; }
.dialog-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: .72rem;
}
.badge strong { color: var(--text); }
.dialog-body { padding: 35px 42px 45px; }
.dialog-section + .dialog-section { margin-top: 34px; }
.dialog-section h3 {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.ingredient {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}
.ingredient span { color: var(--muted); font-size: .84rem; }
.ingredient strong { color: var(--text); }
.custom-label { color: var(--green); font-size: .64rem; margin-left: 4px; }
.brew-steps { list-style: none; padding: 0; margin: 0; counter-reset: brewstep; }
.brew-step {
  counter-increment: brewstep;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.brew-step:last-child { border-bottom: 0; }
.brew-step::before {
  content: counter(brewstep, decimal-leading-zero);
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .08em;
  padding-top: 3px;
}
.brew-step strong { display: block; margin-bottom: 4px; font-size: .94rem; }
.brew-step p { margin: 0; color: var(--muted); font-size: .84rem; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.detail-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.detail-box span { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 4px; }
.detail-box strong { font-size: .86rem; font-weight: 650; }
.effects-list { margin: 0; padding-left: 19px; color: var(--muted); font-size: .83rem; }
.effects-list li + li { margin-top: 7px; }
.warning-note {
  margin-top: 12px;
  color: var(--green);
  font-size: .75rem;
}

@media (max-width: 980px) {
  .hero::after, .hero::before { opacity: .5; transform: translateY(-50%) scale(.75); right: -5%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card:nth-child(2) { border-right: 0; }
  .process-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { align-items: stretch; flex-direction: column; }
}
@media (max-width: 670px) {
  .site-header, main, footer { width: min(100% - 26px, 1180px); }
  nav { display: none; }
  .hero { min-height: 610px; padding-top: 62px; }
  .hero::after, .hero::before { display: none; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }
  .hero-stats { gap: 25px; flex-wrap: wrap; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .process-section, .recipes-section { padding: 78px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-card:last-child { border-bottom: 0; }
  .recipe-grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .filter { white-space: nowrap; }
  footer { align-items: flex-start; justify-content: center; flex-direction: column; }
  .dialog-hero { padding: 34px 25px 28px; }
  .dialog-body { padding: 28px 25px 38px; }
  .ingredient-list, .details-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
