:root {
  color-scheme: light;
  --ink: #1d241f;
  --muted: #697269;
  --paper: #f6f0e5;
  --surface: #fffdf8;
  --green: #285b3b;
  --green-soft: #dfe9d7;
  --tomato: #cd4937;
  --gold: #d39c45;
  --line: rgba(29, 36, 31, 0.14);
  --shadow: 0 24px 70px rgba(51, 42, 30, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 2%, rgba(211, 156, 69, 0.15), transparent 28rem),
    var(--paper);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 46% 54%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  transform: rotate(-5deg);
}

.tool-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b9b63;
  box-shadow: 0 0 0 5px rgba(75, 155, 99, 0.13);
}

main,
footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  padding: 70px 7vw 70px 0;
  position: relative;
  z-index: 2;
}

.eyebrow,
.prompt-label,
.section-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(56px, 6.2vw, 98px);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--tomato);
  font-weight: 500;
}

h2 {
  margin: 7px 0 0;
  font-size: clamp(32px, 3vw, 45px);
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.prompt-card {
  max-width: 620px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(40, 91, 59, 0.22);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
  backdrop-filter: blur(12px);
}

.prompt-card p {
  margin: 9px 0 17px;
  font-size: 15px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.checkout-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(40, 91, 59, 0.2);
}

.primary-button:hover,
.checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 25px rgba(40, 91, 59, 0.25);
}

.secondary-button {
  color: var(--green);
  border: 1px solid rgba(40, 91, 59, 0.28);
  background: transparent;
}

.hero-visual {
  min-height: 590px;
  position: relative;
}

.plate {
  position: absolute;
  border-radius: 50%;
}

.plate--back {
  width: min(40vw, 580px);
  aspect-ratio: 1;
  top: 6%;
  left: 8%;
  border: 1px solid rgba(40, 91, 59, 0.2);
  background: var(--green-soft);
  transform: rotate(8deg);
}

.plate--front {
  width: min(35vw, 500px);
  aspect-ratio: 1;
  top: 15%;
  left: 17%;
  border: 24px solid var(--surface);
  background:
    radial-gradient(circle at 64% 27%, #80452f 0 8px, transparent 9px),
    radial-gradient(circle at 35% 61%, #80452f 0 9px, transparent 10px),
    radial-gradient(circle at 70% 68%, #80452f 0 7px, transparent 8px),
    radial-gradient(circle at 46% 36%, #f2dfaa 0 14px, transparent 15px),
    radial-gradient(circle at center, #d85d3e 0 59%, #dba45a 60% 71%, #b87531 72%);
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}

.plate--front::before,
.plate--front::after,
.slice {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 48%;
  background: rgba(90, 55, 24, 0.24);
  transform-origin: top;
}

.plate--front::before { transform: rotate(0deg); }
.plate--front::after { transform: rotate(120deg); }
.slice--one { transform: rotate(240deg); }
.slice--two { transform: rotate(60deg); }
.slice--three { transform: rotate(300deg); }

.basil {
  position: absolute;
  width: 36px;
  height: 21px;
  border-radius: 100% 0 100% 0;
  background: #3e7a49;
}

.basil--one { top: 32%; left: 54%; transform: rotate(20deg); }
.basil--two { top: 61%; left: 30%; transform: rotate(-25deg); }

.hero-stamp {
  position: absolute;
  right: 5%;
  bottom: 15%;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tomato);
  border-radius: 50%;
  color: var(--tomato);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(9deg);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  padding: 72px 0;
}

.section-heading,
.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.menu-card {
  min-height: 222px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.64);
  transition: transform 180ms ease, border 180ms ease, opacity 180ms ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 91, 59, 0.35);
}

.menu-card.is-unavailable {
  opacity: 0.58;
  background: repeating-linear-gradient(-45deg, #f6f0e5, #f6f0e5 8px, #efe7d8 8px, #efe7d8 16px);
}

.menu-card__topline {
  display: flex;
  justify-content: space-between;
  color: var(--green);
}

.menu-card h3 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.menu-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag,
.revision-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eee8dc;
  color: #62685f;
  font-size: 10px;
  font-weight: 700;
}

.tag--green {
  color: var(--green);
  background: var(--green-soft);
}

.stockout-label {
  margin-top: 15px;
  color: #8b392d;
  font-size: 12px;
  font-weight: 700;
}

.cart-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 26px;
  border: 1px solid rgba(40, 91, 59, 0.18);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-heading {
  align-items: start;
  margin-bottom: 24px;
}

.cart-heading h2 {
  font-size: 35px;
}

.empty-cart {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(40, 91, 59, 0.25);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.empty-cart span {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.empty-cart p {
  max-width: 240px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.cart-lines {
  display: grid;
  gap: 4px;
}

.cart-line {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cart-line small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.cart-line--unavailable {
  color: #8b392d;
}

.quantity {
  color: var(--green);
  font-weight: 700;
}

.cart-total,
.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
}

.cart-total strong,
.checkout-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.constraint-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 13px;
  background: var(--green-soft);
}

.constraint-grid span {
  color: #385442;
  font-size: 11px;
  font-weight: 600;
}

.constraint-grid i {
  margin-right: 5px;
  font-style: normal;
}

.repair-callout {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid rgba(205, 73, 55, 0.28);
  border-radius: 14px;
  background: #fff0ea;
}

.repair-callout p {
  margin: 5px 0 13px;
  color: #744d46;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-button {
  width: 100%;
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  color: white;
  background: var(--green);
}

.safety-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.activity-section {
  padding: 64px 0 78px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.activity-feed {
  display: grid;
  gap: 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.55);
}

.activity-item strong {
  font-size: 13px;
}

.activity-item p,
.muted {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #89918a;
}

.activity-item--positive .activity-dot { background: #4b9b63; }
.activity-item--warning .activity-dot { background: var(--tomato); }

footer {
  padding: 24px 0 36px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(21, 27, 23, 0.62);
  backdrop-filter: blur(8px);
}

.checkout-dialog {
  width: min(500px, 100%);
  padding: 34px;
  position: relative;
  border-radius: 23px;
  background: var(--surface);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.26);
}

.checkout-dialog h2 {
  margin: 8px 0 12px;
}

.checkout-dialog > p {
  color: var(--muted);
  line-height: 1.55;
}

.checkout-summary {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eee8dc;
  font-size: 22px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1440px);
  }

  .site-header {
    height: 70px;
  }

  .tool-status span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 56px 0;
  }

  h1 {
    font-size: 54px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .activity-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
