:root {
  color-scheme: light;
  font-family: 'Aptos', 'Segoe UI', sans-serif;
  color: #26392d;
  background: #f7f5ee;
  font-synthesis: none;
  --forest: #234437;
  --ink: #26392d;
  --muted: #526456;
  --line: #dedfd3;
  --paper: #fffdf7;
  --sage: #e9efe4;
  --serif: 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
button, input, select { min-height: 43px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #497448; outline-offset: 3px; }

.shell { width: min(1216px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fbf9f2; border-bottom: 1px solid #e9e7dd; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -.65px; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #e8d59e; font-family: 'Segoe UI Symbol', sans-serif; font-weight: 400; font-size: 21px; }
.header-label { color: var(--muted); font-size: 13px; }

main { padding-block: 30px 60px; }
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 242px; padding: 38px 47px; border-radius: 22px; background: var(--forest); color: #fff9e9; }
.hero-copy { position: relative; z-index: 1; max-width: 645px; }
.hero h1, .section-heading h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(2.65rem, 5.2vw, 4.55rem); line-height: 1.02; }
.hero p { max-width: 440px; margin: 16px 0 0; color: #e1e9d9; font-size: 16px; line-height: 1.55; }
.hero-decoration { position: absolute; display: grid; place-items: center; inset: 50% 7% auto auto; width: 272px; height: 272px; margin-top: -136px; border: 1px solid #cbb67863; border-radius: 50%; color: #dbc583; }
.hero-decoration::before, .hero-decoration::after { content: ''; position: absolute; inset: 17px; border: 1px solid #cbb67863; border-radius: 50%; }
.hero-decoration::after { inset: 35px; border-style: dashed; }
.hero-decoration span { font: 142px/1 'Segoe UI Symbol', sans-serif; transform: rotate(-15deg); }

.settings { display: flex; align-items: end; gap: 20px; margin-block: 22px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.store-field { width: 260px; }
input, select { width: 100%; min-width: 0; border: 1px solid #d0d6c8; border-radius: 8px; padding: 8px 11px; background: #fffefa; color: var(--ink); }
select { padding-right: 24px; }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: #a43f31; }
.guest-stepper { display: grid; grid-template-columns: 37px 58px 37px; border: 1px solid #d0d6c8; border-radius: 8px; overflow: hidden; }
.guest-stepper input { min-height: 41px; padding: 5px; border: 0; border-inline: 1px solid #d0d6c8; border-radius: 0; appearance: textfield; text-align: center; font-weight: 650; }
.guest-stepper input::-webkit-inner-spin-button, .guest-stepper input::-webkit-outer-spin-button { appearance: none; }
.guest-stepper button { min-height: 41px; border: 0; background: #f3f6ec; color: var(--forest); font-size: 19px; }
.guest-stepper > :focus-visible { outline-offset: -3px; }
.price-source { display: flex; flex: 1; flex-wrap: wrap; align-items: center; align-self: center; justify-content: flex-end; gap: 8px 11px; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: right; }
.tag { display: inline-flex; gap: 6px; align-items: center; width: max-content; padding: 5px 9px; border-radius: 16px; background: #efeee6; color: #4f584d; font-size: 12px; font-weight: 650; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.demo { color: #694e19; background: #f2e6c6; }
.tag.live { color: #2e5d38; background: #e7f0df; }
.tag.stale, .tag.pending { color: #77442c; background: #f6e7dd; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { min-width: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.section-heading h2 { font-size: 32px; line-height: 1.1; }
.section-heading p { margin: 8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.recipe-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.primary, .secondary, .text-button { border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 650; }
.primary { background: var(--forest); border: 1px solid var(--forest); color: #fff9e9; }
.primary:hover:not(:disabled) { background: #345a47; }
.secondary { background: #f3f6ec; border: 1px solid #d3dbc9; color: var(--forest); }
.secondary:hover, .guest-stepper button:hover:not(:disabled) { background: #e5ecdf; }
.text-button { border: 0; background: transparent; color: #566557; }
.text-button:hover { background: #f3f2ea; color: var(--forest); }
.recipes { display: grid; gap: 12px; margin-top: 15px; }
.recipe { border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.recipe-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.recipe h3 { margin: 4px 0 3px; font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.035em; overflow-wrap: anywhere; }
.recipe-servings { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.recipe-servings input { min-height: 35px; width: 66px; padding: 4px 7px; }
.ingredients { display: grid; gap: 8px; margin-block: 10px 12px; }
.ingredient { display: grid; grid-template-columns: minmax(0, 1fr) minmax(65px, 83px) minmax(63px, 86px) 38px; gap: 6px; align-items: end; }
.ingredient .field label { font-size: 11px; }
.ingredient + .ingredient .field label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ingredient input, .ingredient select { padding-inline: 7px; font-size: 13px; }
.ingredient select { padding-right: 11px; }
.remove-ingredient { width: 100%; padding: 5px; font-size: 21px; font-weight: 400; }
.empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }

.estimate-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 16px 17px; border-radius: 11px; background: var(--sage); }
.estimate-summary > div + div { border-left: 1px solid #ced9ca; padding-left: 16px; }
.estimate-summary span { display: block; margin-bottom: 4px; color: #425b49; font-size: 13px; }
.estimate-summary strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.45vw, 2.15rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.estimate-note { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notice { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notice.error { padding: 10px 12px; margin-block: 12px; border: 1px solid #e8c9b8; border-radius: 8px; background: #fff1e9; color: #733a24; }
.notice.error p { margin-top: 0; }
#retry-estimate { margin-top: 9px; }
.shopping-list { margin-top: 16px; }
.shopping-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.shopping-table th { color: var(--muted); font-size: 11px; font-weight: 650; }
.shopping-table td, .shopping-table th { padding: 10px 5px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.shopping-table tr:last-child td { border-bottom: 0; }
.shopping-table th:first-child { width: 35%; }
.shopping-table th:last-child { width: 19%; }
.shopping-table :is(th, td):last-child { text-align: right; }
.shopping-table small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.shopping-table .flag { color: #77442c; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .hero-decoration { right: 2%; opacity: .45; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; }
  .brand { font-size: 19px; }
  .header-label { font-size: 11px; }
  main { padding-top: 16px; }
  .hero { min-height: 210px; padding: 25px; border-radius: 16px; }
  .hero p { max-width: 260px; }
  .hero-decoration { width: 185px; height: 185px; margin-top: -92px; right: -50px; opacity: .25; }
  .hero-decoration span { font-size: 91px; }
  .settings { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; margin-block: 14px; }
  .store-field { width: auto; }
  .price-source { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .workspace { gap: 14px; }
  .panel { padding: 16px; }
  .recipe { padding: 10px; }
  .ingredient { grid-template-columns: minmax(0, 1fr) 58px 55px 32px; gap: 4px; }
  .ingredient input, .ingredient select { padding-inline: 4px; }
  .shopping-table { font-size: 12px; }
  .shopping-table td, .shopping-table th { padding-inline: 3px; }
}
