:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #556070;
  --paper: #fffaf0;
  --surface: #ffffff;
  --tomato: #d84a32;
  --basil: #2d6a4f;
  --plum: #512b58;
  --honey: #f2b544;
  --porcelain: #e9f5f2;
  --line: #d9d4c7;
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(90deg, rgba(45, 106, 79, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 74, 50, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(20, 33, 61, 0.12);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.input-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--honey);
  letter-spacing: 0;
}

.nav {
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav a,
.site-footer a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}

.header-action,
.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-action,
.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.dish-tag {
  margin: 0 0 0.7rem;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.15rem;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.quick-stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quick-stats div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.64);
}

.quick-stats dt {
  font-size: 1.5rem;
  font-weight: 900;
}

.quick-stats dd {
  margin: 0;
  color: var(--muted);
}

.kitchen-scene {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 0;
  background:
    linear-gradient(180deg, #23395d 0 42%, #f6dfb4 42% 43%, #f7eee0 43% 100%);
  box-shadow: var(--shadow);
}

.window {
  position: absolute;
  inset: 12% 12% auto auto;
  width: 32%;
  aspect-ratio: 1;
  border: 8px solid #f7eee0;
  background: #14213d;
}

.window::before,
.window::after {
  content: "";
  position: absolute;
  background: #f7eee0;
}

.window::before {
  inset: 0 auto 0 50%;
  width: 8px;
  transform: translateX(-50%);
}

.window::after {
  inset: 50% 0 auto;
  height: 8px;
  transform: translateY(-50%);
}

.moon {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 22px;
  right: 28px;
  border-radius: 50%;
  background: var(--honey);
}

.rain {
  position: absolute;
  width: 2px;
  height: 38px;
  border-radius: 999px;
  background: #9fc8d5;
  animation: rain 1.8s linear infinite;
}

.rain-one {
  left: 22%;
  top: 12%;
}

.rain-two {
  left: 46%;
  top: 42%;
  animation-delay: -0.5s;
}

.rain-three {
  left: 72%;
  top: 22%;
  animation-delay: -1s;
}

.shelf {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 34%;
  height: 10px;
  background: #6f4e37;
}

.jar {
  position: absolute;
  bottom: 10px;
  width: 42px;
  height: 70px;
  border: 4px solid #f7eee0;
  border-radius: 8px 8px 12px 12px;
}

.jar::before {
  content: "";
  position: absolute;
  inset: -13px 8px auto;
  height: 10px;
  background: #f7eee0;
}

.jar.tomato {
  left: 4%;
  background: var(--tomato);
}

.jar.basil {
  left: 34%;
  background: var(--basil);
}

.jar.grain {
  left: 64%;
  background: var(--honey);
}

.counter {
  position: absolute;
  inset: auto 0 0;
  height: 27%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    #815f48;
  background-size: 38px 100%;
}

.pot {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: min(62%, 390px);
  height: 210px;
  transform: translateX(-50%);
}

.lid {
  position: absolute;
  left: 18%;
  top: 10%;
  width: 64%;
  height: 42px;
  border-radius: 50% 50% 12px 12px;
  background: #f7eee0;
  box-shadow: inset 0 -8px #d8d0c4;
}

.soup {
  position: absolute;
  left: 9%;
  bottom: 0;
  width: 82%;
  height: 150px;
  overflow: hidden;
  border: 8px solid #f7eee0;
  border-radius: 18px 18px 70px 70px;
  background: radial-gradient(circle at 35% 35%, #f39a4b, var(--tomato) 58%, #a4332b);
}

.handle {
  position: absolute;
  top: 44%;
  width: 58px;
  height: 46px;
  border: 8px solid #f7eee0;
  border-radius: 50%;
}

.handle.left {
  left: 0;
}

.handle.right {
  right: 0;
}

.steam {
  position: absolute;
  bottom: 170px;
  width: 18px;
  height: 86px;
  border-radius: 999px;
  border-left: 5px solid rgba(255, 255, 255, 0.82);
  animation: steam 3s ease-in-out infinite;
}

.steam-one {
  left: 37%;
}

.steam-two {
  left: 49%;
  animation-delay: -1s;
}

.steam-three {
  left: 61%;
  animation-delay: -1.8s;
}

.chunk {
  position: absolute;
  width: 28px;
  height: 20px;
  border-radius: 999px;
}

.carrot {
  left: 28%;
  top: 42%;
  background: var(--honey);
}

.herb {
  left: 54%;
  top: 30%;
  background: var(--basil);
}

.bean {
  left: 66%;
  top: 58%;
  background: #f7eee0;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: 2rem;
}

.steps,
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step,
.menu-item,
.builder-panel,
.bowl-preview,
.signup-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.step,
.menu-item {
  padding: 1.25rem;
}

.step-number {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--basil);
  font-weight: 900;
}

.step p,
.menu-item p,
.visit-section p,
.panel-intro,
#preview-copy,
.note-list {
  color: var(--muted);
}

.builder-section {
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.13), rgba(242, 181, 68, 0.18));
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.builder-panel,
.bowl-preview {
  padding: clamp(1rem, 3vw, 2rem);
}

fieldset {
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

legend,
.range-label,
.signup-form label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-weight: 900;
}

.segmented-control,
.chip-grid {
  display: grid;
  gap: 0.55rem;
}

.segmented-control {
  grid-template-columns: repeat(3, 1fr);
}

.chip-grid {
  grid-template-columns: repeat(2, 1fr);
}

.segmented-control label,
.chip-grid label,
.toggle-row {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

input[type="radio"],
input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--basil);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--tomato);
}

.toggle-row {
  margin-top: 1.2rem;
}

.bowl-preview {
  display: grid;
  align-content: center;
  background: var(--ink);
  color: white;
}

.bowl-preview .eyebrow,
.bowl-preview #preview-copy,
.bowl-preview .note-list {
  color: #dbe7ee;
}

.bowl-art {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1.45;
  margin: 0 auto 1.5rem;
}

.bowl-base {
  position: absolute;
  inset: 31% 9% 10%;
  border-radius: 16px 16px 90px 90px;
  background: radial-gradient(circle at 50% 10%, #fff7d6 0 34%, #d84a32 35% 72%, #9b2f38 73%);
  box-shadow: inset 0 -14px rgba(0, 0, 0, 0.18);
}

.bowl-base::before {
  content: "";
  position: absolute;
  inset: -18px 2% auto;
  height: 42px;
  border-radius: 50%;
  background: #fffaf0;
}

.topping {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.t1 {
  width: 44px;
  height: 44px;
  left: 26%;
  top: 28%;
  background: var(--honey);
}

.t2 {
  width: 34px;
  height: 34px;
  left: 48%;
  top: 24%;
  background: var(--basil);
}

.t3 {
  width: 38px;
  height: 38px;
  right: 24%;
  top: 32%;
  background: #fffaf0;
}

.spoon {
  position: absolute;
  right: 4%;
  top: 5%;
  width: 18px;
  height: 150px;
  border-radius: 999px;
  background: #ccd6dd;
  transform: rotate(35deg);
}

.note-list {
  padding-left: 1.1rem;
}

.menu-item {
  display: grid;
  min-height: 270px;
  align-content: start;
}

.menu-item span {
  align-self: end;
  margin-top: 1.5rem;
  color: var(--plum);
  font-size: 1.6rem;
  font-weight: 900;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.signup-form {
  padding: 1.25rem;
}

.input-row {
  gap: 0.65rem;
}

.input-row input {
  min-width: 0;
  flex: 1;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-status {
  min-height: 1.5rem;
  margin: 0.7rem 0 0;
  color: var(--basil);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

@keyframes steam {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(8px) scaleX(0.86);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-18px) scaleX(1.15);
  }
}

@keyframes rain {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: translateY(86px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-heading,
  .builder-layout,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 9ch;
  }

  .kitchen-scene {
    min-height: 420px;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  h1 {
    max-width: 8ch;
    font-size: 2.85rem;
    line-height: 0.96;
  }

  .hero-text {
    max-width: 28ch;
    font-size: 1rem;
  }

  .header-action {
    display: none;
  }

  .quick-stats,
  .segmented-control,
  .chip-grid,
  .hero-actions,
  .input-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .quick-stats {
    display: grid;
  }

  .input-row {
    display: grid;
  }

  .button,
  .input-row input {
    width: 100%;
  }

  .site-footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
