:root {
  color-scheme: light;
  --paper: #fff1df;
  --white: #fffbf3;
  --ink: #502d24;
  --muted: #715043;
  --terra: #963a28;
  --ochre: #efaf6b;
  --rule: #e2bd9f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse 650px 550px at 87% 0%, #ffdfbf 0%, transparent 90%), var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 4px;
}
button[aria-disabled="true"] { cursor: wait; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 72px, 1168px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--white);
}
.header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -.022em;
  text-decoration: none;
}
.wordmark svg { width: 31px; height: 31px; flex: none; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.header nav a, .footer a { text-underline-offset: 4px; }
.header nav a { font-size: .88rem; font-weight: 650; text-decoration: none; }
.header nav a:hover, .footer a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(22px, 5vw, 76px);
  padding-block: 38px 44px;
}
.hero-copy { padding-block: 18px; }
.eyebrow, .section-rule, .wheel-caption, .side-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
}
.bullet {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--terra);
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 23px;
  font-size: clamp(3.25rem, 6vw, 5rem);
  font-weight: 790;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.lead {
  max-width: 38ch;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.6;
}
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spin-button, .sound-button, .add-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 720;
  transition: background-color 160ms, color 160ms, transform 160ms;
}
.spin-button { padding: 0 21px; color: var(--white); background: var(--terra); }
.spin-button:hover { background: #ac4932; transform: translateY(-1px); }
.spin-button svg, .sound-button svg { width: 19px; height: 19px; flex: none; }
.sound-button { padding: 0 14px; border-color: var(--rule); background: transparent; }
.sound-button:hover { background: #f9dfc7; }
.sound-wave, .sound-button[aria-pressed="true"] .sound-mute { display: none; }
.sound-button[aria-pressed="true"] .sound-wave { display: initial; }
.wheel-column { width: min(100%, 514px); justify-self: center; }
.wheel-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
}
.wheel-orbit {
  position: absolute;
  z-index: -1;
  inset: 1.5%;
  border: 1px dashed #cf9e7b;
  border-radius: 50%;
  background: radial-gradient(circle, #f2c39d 47%, #f7d5b5 67%, transparent 68%);
}
.platter {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  filter: drop-shadow(0 15px 20px #263a3227);
  will-change: transform;
  transition: transform 1480ms cubic-bezier(.13, .65, .12, 1);
}
.platter svg, .recipe-plate svg, .recipe-side-plate svg { display: block; width: 100%; height: auto; }
.pointer {
  position: absolute;
  z-index: 2;
  top: 2.4%;
  left: 50%;
  width: 7%;
  aspect-ratio: 1 / 1.04;
  transform: translateX(-50%);
  background: var(--terra);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 19%;
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #f8f3e4;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 3px 8px #173b3250;
  font-size: clamp(.64rem, 1.3vw, .85rem);
  font-weight: 700;
}
.wheel-hub:hover { background: #ac4932; }
.wheel-hub svg { width: 32%; min-width: 20px; }
.wheel-caption, .section-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.wheel-caption { margin: 8px 9% 0; font-size: .64rem; }
#wheel-count { font-variant-numeric: tabular-nums; }
.section-rule { padding-block: 13px; border-top: 1px solid var(--rule); }
.section-rule span:first-child { color: var(--ink); }
.recipes-heading h2, .about h2, .product h2, .team h2 {
  margin-bottom: 9px;
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
  font-weight: 740;
  line-height: 1.13;
  letter-spacing: -.038em;
}
.about-copy { color: var(--muted); line-height: 1.6; }
.side-card {
  padding: 13px 15px;
  border: 1px solid #ecc5aa;
  border-radius: 12px;
  background: #fae6d4;
}
.side-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.side-label { display: block; color: var(--muted); font-size: .61rem; }
.side-title h4 { margin: 3px 0 0; font-size: 1.03rem; line-height: 1.3; }
.add-button { min-height: 40px; padding: 0 12px; border-color: #d7a88c; background: var(--white); font-size: .8rem; }
.add-button:hover { background: #f4d8bb; }
.add-button[aria-pressed="true"] { background: var(--terra); color: var(--white); }
.add-icon { font-size: 1.13em; line-height: 1; }
.nutrients { padding-top: 13px; }
.nutrients p { margin: 0 0 9px; font-size: .88rem; line-height: 1.5; }
.nutrients ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nutrients li {
  padding: 5px 8px;
  border-radius: 4px;
  background: #f4cba7;
  font-size: .73rem;
  font-weight: 720;
}
.nutrients li:nth-child(2) { background: #f6db9e; }
.about { padding-block: 44px 40px; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  padding: 25px 0 0;
}
.about-copy p { margin-bottom: 14px; }
.about-copy strong { color: var(--ink); }
.sources { font-size: .8rem; }
.sources summary { width: fit-content; font-weight: 680; cursor: pointer; }
.sources ul { padding-left: 20px; margin-bottom: 0; }
.sources a { text-underline-offset: 3px; }
.team {
  padding-block: 22px 30px;
  border-top: 1px solid var(--rule);
}
.team h2 { margin-top: 0; }
.team-portraits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.3vw, 14px);
  width: min(100%, 510px);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.team-portraits img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 63%;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--white);
}
.team-portraits li:nth-child(n + 3) img { object-position: center; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid var(--rule);
  padding-block: 17px 24px;
  color: var(--muted);
  font-size: .78rem;
}
.footer .wordmark { color: var(--ink); font-size: 1.11rem; }
.footer > a:last-child { font-weight: 680; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 44px); }
  .hero { padding-block: 32px 34px; }
  .hero h1 { font-size: clamp(2.85rem, 7vw, 4.4rem); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 34px); }
  .header { min-height: 61px; }
  .header .wordmark { font-size: 1.08rem; gap: 7px; }
  .wordmark svg { width: 27px; height: 27px; }
  .header nav { gap: 13px; }
  .header nav a { font-size: .77rem; }
  .hero { grid-template-columns: 1fr; gap: 13px; padding-block: 25px 25px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.25rem); margin-bottom: 13px; }
  .lead { margin-bottom: 15px; }
  .wheel-column { width: min(100%, 375px); }
  .wheel-caption { margin-top: 3px; }
  .about { padding-block: 32px; }
  .about-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 14px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 26px); }
  .hero h1 { font-size: 2.55rem; }
  .header nav { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0ms !important; }
}
.wheel-caption a { text-underline-offset: 3px; }
@media (max-width: 365px) {
  .header { gap: 10px; }
  .header .wordmark { gap: 6px; font-size: .93rem; white-space: nowrap; }
  .header .wordmark svg { width: 23px; height: 23px; }
  .header nav a { font-size: .69rem; white-space: nowrap; }
  .controls { gap: 8px; }
  .spin-button, .sound-button { font-size: .83rem; }
  .spin-button { padding-inline: 16px; }
  .sound-button { padding-inline: 10px; }
}

.header-actions { display: flex; align-items: center; gap: clamp(10px, 3vw, 34px); }
.cart-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  font-size: .84rem;
  font-weight: 680;
}
.cart-toggle:hover { background: #fae6d4; }
.cart-toggle svg { flex: none; width: 19px; height: 19px; }
.cart-count {
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  font-size: .69rem;
  text-align: center;
}
.day-picker { max-width: 425px; margin-top: 23px; }
.day-picker p { margin-bottom: 7px; font-size: .83rem; font-weight: 700; }
.day-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.day-options button {
  min-width: 0;
  min-height: 41px;
  padding: 5px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  font-size: .77rem;
  font-weight: 570;
  white-space: nowrap;
}
.day-options button:hover { background: #f9dfc9; }
.day-options button[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: var(--white); }
#wheel-count { flex-shrink: 0; }
.product { padding-top: 38px; }
.product-card {
  display: grid;
  grid-template-columns: .76fr 1fr;
  border: 1px solid var(--rule);
  border-radius: 17px;
  overflow: hidden;
  background: var(--white);
}
.product-art {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: clamp(9px, 1.7vw, 19px);
  background: #fae6d4;
}
.product-art img { display: block; width: 100%; height: auto; border-radius: 9px; }
.product-art figcaption { color: var(--muted); font-size: .76rem; }
.product-copy { align-self: center; padding: clamp(21px, 3.5vw, 41px); }
.product-copy p { margin-bottom: 18px; color: var(--muted); line-height: 1.55; }
.product-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; }
.price { display: grid; gap: 2px; }
.price strong { font-size: 1.4rem; line-height: 1.15; }
.price span, .product-copy .product-note { color: var(--muted); font-size: .76rem; }
.product-copy .product-note { margin: 9px 0 0; }
.primary-button {
  min-height: 45px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--terra);
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
}
.primary-button:hover { background: #ac4932; }
button:disabled { cursor: default; opacity: .55; }
.cart {
  width: min(100% - 28px, 465px);
  max-height: calc(100dvh - 28px);
  padding: clamp(17px, 4vw, 24px);
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 70px #55281940;
}
.cart::backdrop { background: #4b241ca6; }
.cart-header, .cart-item, .cart-quantity, .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-header { align-items: start; margin-bottom: 17px; }
.cart-header h2 { margin-bottom: 4px; font-size: 1.55rem; line-height: 1.15; }
.cart-header p, .cart-item p { margin: 0; font-size: .83rem; color: var(--muted); }
.cart-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
}
.cart-close:hover, .quantity-controls button:hover { background: #fae6d4; }
.cart-empty, .cart-success { padding: 13px; border-radius: 8px; background: #fae6d4; }
.cart-empty p, .cart-success p { margin-bottom: 10px; }
.cart-empty a { font-size: .86rem; font-weight: 680; text-underline-offset: 3px; }
.cart-item { padding-block: 14px; border-top: 1px solid var(--rule); }
.cart-item h3 { margin-bottom: 4px; font-size: .98rem; }
.cart-remove { padding: 6px; border: 0; background: transparent; color: var(--terra); font-size: .8rem; text-decoration: underline; }
.cart-quantity { padding-bottom: 12px; font-size: .88rem; }
.quantity-controls { display: flex; align-items: center; gap: 7px; }
.quantity-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--white);
  font-size: 1.04rem;
}
.quantity-controls output { min-width: 28px; text-align: center; font-weight: 700; }
.cart-total { padding-block: 12px; border-top: 1px solid var(--rule); }
.cart-checkout { width: 100%; margin-top: 6px; }
.cart-success p { margin-top: 4px; }

@media (max-width: 640px) {
  .header .nav-desktop, .cart-toggle-label { display: none; }
  .header .cart-toggle { gap: 6px; padding-inline: 9px; }
  .day-picker { margin-top: 16px; }
  .product-card { grid-template-columns: 1fr; }
  .product { padding-top: 26px; }
}
@media (max-width: 390px) {
  .day-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.recipes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 16px 14px;
  border-top: 1px solid var(--rule);
}
.recipes-heading h2 { margin-bottom: 4px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.recipes-heading p { margin: 0; color: var(--muted); font-size: .92rem; }
.show-recipes, .recipe-return {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  font-size: .83rem;
  font-weight: 690;
}
.show-recipes:hover, .recipe-return:hover { background: #fae3cb; }
.show-recipes[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: var(--white); }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.recipe-card { min-width: 0; perspective: 1100px; }
.recipe-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 343px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(.22, .65, .22, 1);
}
.recipe-card.is-flipped .recipe-inner { transform: rotateY(180deg); }
.recipe-front, .recipe-back {
  grid-area: 1 / 1;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.recipe-front[aria-hidden="true"], .recipe-back[aria-hidden="true"] { pointer-events: none; }
.recipe-front { display: flex; flex-direction: column; padding: 0; text-align: left; overflow: hidden; }
.recipe-art {
  position: relative;
  display: grid;
  flex: 1;
  width: 100%;
  min-height: 168px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, #ffe9c980 0%, #ffe9c900 70%), var(--recipe-art, #efb49d);
}
.recipe-art::before, .recipe-art::after {
  content: "";
  position: absolute;
  width: min(67%, 235px);
  aspect-ratio: 1;
  border: 1px solid #7a43292e;
  border-radius: 50%;
}
.recipe-art::after { width: min(58%, 199px); border-style: dashed; }
.recipe-plate {
  z-index: 1;
  width: min(40%, 154px);
  filter: drop-shadow(0 9px 10px #60331f43);
  transition: transform 210ms ease;
}
.recipe-side-plate {
  position: absolute;
  z-index: 2;
  right: 19%;
  bottom: 9%;
  width: min(21%, 79px);
  filter: drop-shadow(0 7px 7px #60331f43);
  transform: translate(12%, 13%) scale(.85);
  opacity: 0;
  transition: transform 210ms, opacity 210ms;
}
.recipe-card.has-side .recipe-plate { transform: translate(-12%, -5%); }
.recipe-card.has-side .recipe-side-plate { opacity: 1; transform: none; }
.recipe-front-content { display: grid; width: 100%; gap: 5px; padding: 15px 17px; }
.recipe-meta { margin: 0 0 3px; color: var(--terra); font-size: .78rem; font-weight: 700; }
.recipe-name, .recipe-back h3 { font-size: clamp(1.22rem, 2.5vw, 1.62rem); line-height: 1.18; letter-spacing: -.025em; }
.recipe-description { color: var(--muted); font-size: .89rem; line-height: 1.45; }
.recipe-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--terra);
  font-size: .85rem;
  font-weight: 730;
}
.recipe-front:hover .recipe-action { text-decoration: underline; text-underline-offset: 4px; }
.recipe-action svg { width: 17px; height: 17px; }
.recipe-back { display: flex; flex-direction: column; gap: 11px; padding: clamp(13px, 2vw, 20px); transform: rotateY(180deg); }
.recipe-back-header { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.recipe-back h3 { margin: 0; }
.recipe-return { flex: none; }
.recipe-method {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.recipe-method h4 { margin: 0 0 5px; font-size: .91rem; }
.recipe-method ul, .recipe-method ol { margin: 0; padding-left: 17px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.recipe-method li + li { margin-top: 4px; }
.recipe-back .side-card { margin-top: auto; }
@media (max-width: 800px) {
  .recipe-method { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .recipe-grid { grid-template-columns: 1fr; gap: 13px; }
  .recipe-inner { min-height: 0; }
  .recipe-art { min-height: 155px; }
  .recipe-plate { width: min(47%, 149px); }
}

.wheel-edit-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.wheel-edit-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  color: var(--terra);
  font-size: .86rem;
  font-weight: 720;
}
.wheel-edit-button:hover { background: #fae3cb; }
.wheel-edit-button svg { width: 18px; height: 18px; }
.wheel-editor {
  width: min(100% - 28px, 580px);
  overflow: hidden;
}
.wheel-editor[open], #wheel-form { display: flex; flex-direction: column; }
.wheel-editor .cart-header { flex: none; }
#wheel-form { min-height: 0; }
.wheel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  padding: 3px;
  margin-inline: -3px;
}
.wheel-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: .86rem;
  cursor: pointer;
}
.wheel-field:has(input:checked) { border-color: #bd8066; background: #fae6d4; }
.wheel-field:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 1px; }
.wheel-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--terra); }
.wheel-editor-footer {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 12px;
}
.wheel-editor-status { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 480px) {
  .wheel-fields { grid-template-columns: 1fr; }
}
