:root {
  --paper: #f8f3ea;
  --white: #fffcf7;
  --ink: #342820;
  --wine: #5b242a;
  --line: #e7dcd0;
  --muted: #71645b;
  --soft: #f3e9dd;
}

html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 4%, #ead8ce88 0, transparent 28%),
    radial-gradient(circle at 4% 48%, #e9e1d066 0, transparent 30%),
    var(--paper);
}

.top {
  max-width: 1320px;
  min-height: 94px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom-color: #d9c9b8;
}
.brand { width: 144px; }
.top-actions { display: flex; align-items: center; gap: 28px; }
.top-note { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #9c7d76;
  border-radius: 100px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.top-link:hover { background: var(--wine); color: var(--white); }

main { max-width: 1320px; padding: 0 clamp(20px, 4vw, 56px) 96px; }
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  align-items: center;
  gap: 32px;
  max-width: none;
  min-height: 390px;
  margin: 30px 0 44px;
  padding: clamp(32px, 5vw, 68px) clamp(30px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid #eadace;
  border-radius: 28px;
  background: linear-gradient(112deg, #fffaf1 0%, #f5e9df 100%);
  box-shadow: 0 15px 40px #5b242a0a;
}
.intro::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  bottom: 25px;
  left: 25px;
  border: 1px solid #b991821f;
  border-radius: 18px;
  pointer-events: none;
}
.intro-copy { position: relative; z-index: 1; }
.eyebrow, .step-label {
  display: block;
  color: #8b5755;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 22px; }
.intro h1 {
  max-width: 700px;
  margin: 0 0 20px;
  font: 400 clamp(42px, 5.2vw, 72px)/1.02 Georgia, serif;
  letter-spacing: -.055em;
}
.intro h1 em { color: var(--wine); font-weight: 400; }
.intro p { max-width: 490px; font-size: 17px; line-height: 1.65; }
.intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 27px;
  padding: 12px 23px;
  border-radius: 100px;
  background: var(--wine);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 7px 16px #5b242a25;
  transition: background 160ms ease, transform 160ms ease;
}
.intro-cta:hover { background: #74343c; transform: translateY(-1px); }
.intro-art { position: relative; min-height: 260px; display: grid; place-items: center; }
.intro-art::before, .intro-art::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #9f6f672e;
  border-radius: 50%;
}
.intro-art::before { transform: translate(-28px, -18px) scale(1.2); }
.intro-art::after { transform: translate(36px, 25px) scale(.86); }
.intro-art-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 290px);
  aspect-ratio: 1.13;
  padding: 27px;
  transform: rotate(7deg);
  border: 1px solid #9f6d68;
  border-radius: 6px;
  outline: 1px solid #d2aa9a;
  outline-offset: -10px;
  background: linear-gradient(145deg, #6e3239, #4b1e25);
  color: #f9e8d6;
  box-shadow: 13px 17px 0 #e5d2bf, 17px 24px 28px #5b242a24;
}
.art-card-small, .art-card-bottom { font: 13px/1.3 Georgia, serif; letter-spacing: .04em; }
.art-card-bottom { text-align: right; }
.art-card-heart { align-self: center; font: 100px/.85 Georgia, serif; }
.intro-art-orbit { position: absolute; width: 340px; height: 340px; border: 1px dashed #9f6f6738; border-radius: 50%; }

.layout { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 24px; }
.controls { gap: 24px; }
.panel {
  min-width: 0;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid #e8dcd0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px #4a2d1b0a;
}
.preview { top: 24px; }
.section-top { align-items: end; gap: 14px; margin-bottom: 22px; }
.section-heading { min-width: 0; }
.step-label { margin-bottom: 9px; }
h2 { font-size: clamp(26px, 2.7vw, 36px); letter-spacing: -.035em; }
.flat { font-weight: 650; }
.section-top .flat { flex-shrink: 0; }
.stage {
  position: relative;
  min-height: 395px;
  padding: 16px;
  border: 1px solid #e4e8d2;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 34%, #fbfff2, #edf3de 80%);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #ffffffa8;
  border-radius: 9px;
  pointer-events: none;
}
.cup { z-index: 1; }
.sides { gap: 10px; margin-top: 19px; }
.sides button, .filters button, .cups button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.sides button:hover, .filters button:hover, .cups button:hover { border-color: var(--wine); }
.preview-note { max-width: 450px; }
.counter { font-size: 14px; }
.filters { gap: 8px; margin: 0 0 20px; }
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: 405px; padding: 2px 5px 5px 2px; }
.ingredient {
  min-height: 113px;
  padding: 11px 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 2px 8px #4a2d1b08;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.ingredient img { height: 66px; margin-bottom: 5px; }
.ingredient:hover { transform: translateY(-2px); box-shadow: 0 5px 12px #4a2d1b12; }
.ingredient[aria-pressed=true] { padding: 10px 5px 11px; background: #fff6f0; }
.layers-title { margin-top: 24px; padding-top: 18px; }
.layers li { min-height: 50px; }
.layers button { border-radius: 8px; }
.order { border-top: 1px solid #e8dcd0; padding-top: clamp(22px, 2.5vw, 34px); }
.order h2 { margin-bottom: 22px; }
.order label:not(.consent) { font-size: 14px; }
.order input:not([type=checkbox]), .order textarea {
  min-height: 46px;
  padding: 12px 14px;
  border-color: #d7c7ba;
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.order input:not([type=checkbox]):focus, .order textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px #5b242a16; outline: none; }
.card-fields { border-color: #dbc9b9; background: #fff9f3; }
.primary { min-height: 52px; border-radius: 10px; box-shadow: 0 6px 14px #5b242a24; }
footer { background: #f3e8dd; border-top-color: #e0cfc0; }
#ingredients-title, #order { scroll-margin-top: 24px; }

@media (max-width: 1020px) {
  .intro { grid-template-columns: minmax(0, 1fr) 230px; padding: 38px; }
  .intro-art-card { width: 220px; }
  .intro-art::before, .intro-art::after { width: 210px; height: 210px; }
  .intro-art-orbit { width: 260px; height: 260px; }
  .layout { gap: 18px; }
  .panel { padding: 22px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top { min-height: 76px; padding: 13px 20px; }
  .brand { width: 115px; }
  .top-note { display: none; }
  main { padding: 0 16px 60px; }
  .intro { display: block; min-height: 0; margin: 18px 0 20px; padding: 37px 26px; border-radius: 20px; }
  .intro::before { inset: 10px; border-radius: 13px; }
  .intro h1 { font-size: clamp(37px, 8vw, 55px); }
  .intro-art { display: none; }
  .intro p { font-size: 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .controls { gap: 20px; }
  .panel { border-radius: 18px; }
  .preview { position: static; }
  .stage { min-height: 0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .top { gap: 10px; }
  .top-link { min-height: 39px; padding: 8px 12px; }
  .intro { padding: 32px 23px; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .intro h1 { font-size: clamp(35px, 9vw, 44px); }
  .intro-cta { width: 100%; }
  .panel { padding: 20px 16px; }
  .section-top { align-items: start; }
  .section-top .flat { max-width: 120px; text-align: right; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .ingredient { min-height: 104px; font-size: 12px; }
  .ingredient img { height: 58px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
