:root {
  color-scheme: light;
  --forest: #153a31;
  --forest-deep: #0d2c25;
  --forest-soft: #28584a;
  --cream: #f5efe5;
  --cream-deep: #eadfce;
  --paper: #fffdf9;
  --ink: #1c2925;
  --muted: #68736f;
  --gold: #caa66b;
  --terracotta: #b9644d;
  --line: rgba(21, 58, 49, 0.15);
  --shadow: 0 26px 72px rgba(21, 58, 49, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 9%, rgba(202, 166, 107, 0.12), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
label,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 22px 28px;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monogram {
  align-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  height: 44px;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 44px;
}

.header-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  text-transform: uppercase;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px 28px 64px;
}

.intro {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  margin-bottom: 26px;
}

.intro-copy {
  align-items: flex-start;
  background: var(--forest);
  border-radius: 28px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  position: relative;
}

.intro-copy::after {
  border: 1px solid rgba(202, 166, 107, 0.28);
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: -130px;
  top: -130px;
  width: 280px;
}

.eyebrow,
.step-label {
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: var(--gold);
}

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

h1 {
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  line-height: 0.98;
  margin: 0;
  max-width: 800px;
}

.lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin: 24px 0;
  max-width: 650px;
}

.included {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.included li {
  align-items: center;
  display: flex;
  font-size: 0.93rem;
  gap: 9px;
}

.included span {
  color: var(--gold);
}

.food-photo {
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  min-height: 390px;
  overflow: hidden;
}

.food-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  width: 100%;
}

.estimator-shell {
  background: var(--paper);
  border: 1px solid rgba(21, 58, 49, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(335px, 0.7fr);
  overflow: hidden;
}

.form-panel {
  padding: clamp(30px, 5vw, 60px);
}

.section-heading h2,
.result-panel h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.08;
  margin: 0;
}

.section-heading {
  margin-bottom: 32px;
}

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

.stepper-field {
  align-items: center;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.stepper-field label,
.form-group > label,
.form-group legend {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
}

.stepper-field small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
}

.stepper {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.stepper button {
  background: transparent;
  border: 0;
  color: var(--forest);
  font-size: 1.2rem;
  height: 42px;
  width: 40px;
}

.stepper button:hover {
  background: var(--cream-deep);
}

.stepper input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 800;
  height: 42px;
  padding: 0;
  text-align: center;
  width: 36px;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.form-group {
  border: 0;
  margin: 28px 0 0;
  padding: 0;
}

.form-group legend {
  margin-bottom: 12px;
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
}

.choice-card input {
  opacity: 0;
  position: absolute;
}

.choice-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: block;
  height: 100%;
  padding: 15px;
  transition: 150ms ease;
}

.choice-content strong,
.choice-content small {
  display: block;
}

.choice-content strong {
  font-size: 0.91rem;
  margin-bottom: 5px;
}

.choice-content small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.choice-card input:checked + .choice-content {
  background: rgba(21, 58, 49, 0.055);
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.choice-card input:focus-visible + .choice-content {
  outline: 3px solid rgba(185, 100, 77, 0.32);
  outline-offset: 2px;
}

select,
textarea,
.suffix-field {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  margin-top: 8px;
  outline: 0;
  transition: 150ms ease;
  width: 100%;
}

select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  cursor: text;
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

select:focus,
textarea:focus,
.suffix-field:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(21, 58, 49, 0.1);
}

.form-group > label {
  display: block;
}

.form-group > label span {
  color: var(--muted);
  font-weight: 500;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 7px 0 0;
}

.suffix-field {
  align-items: center;
  display: flex;
  padding-right: 14px;
}

.suffix-field input {
  appearance: textfield;
  background: transparent;
  border: 0;
  cursor: text;
  min-height: 48px;
  outline: 0;
  padding: 0 14px;
  width: 100%;
}

.suffix-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.toggle-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto auto;
  margin-top: 28px;
  padding: 18px 0;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  font-size: 0.92rem;
}

.toggle-row small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
}

.toggle-row b {
  color: var(--forest);
  font-size: 0.88rem;
}

.switch {
  display: inline-flex;
  position: relative;
}

.switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.switch span {
  background: #c8cecb;
  border-radius: 999px;
  display: block;
  height: 28px;
  position: relative;
  transition: 160ms ease;
  width: 48px;
}

.switch span::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: 160ms ease;
  width: 22px;
}

.switch input:checked + span {
  background: var(--terracotta);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.switch input:focus-visible + span {
  outline: 3px solid rgba(185, 100, 77, 0.32);
  outline-offset: 2px;
}

.result-panel {
  background:
    radial-gradient(circle at 90% 5%, rgba(202, 166, 107, 0.17), transparent 16rem),
    var(--forest);
  color: white;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 50px);
}

.step-label.light {
  color: var(--gold);
}

.result-panel h2 {
  margin-bottom: 26px;
}

.duration-card {
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
}

.duration-card span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.83rem;
}

.duration-card strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.price-lines {
  margin: 20px 0 12px;
}

.price-lines > div {
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  padding: 5px 0;
}

.price-lines dt {
  color: rgba(255, 255, 255, 0.66);
}

.price-lines dd {
  font-weight: 700;
  margin: 0;
}

.total-block {
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
}

.total-block span {
  font-weight: 700;
}

.total-block strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.tax-credit {
  background: var(--cream);
  border-radius: 17px;
  color: var(--forest);
  margin-bottom: 16px;
  padding: 18px;
}

.tax-credit span,
.tax-credit small {
  display: block;
}

.tax-credit span {
  font-size: 0.78rem;
  font-weight: 750;
}

.tax-credit strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 500;
  line-height: 1;
  margin: 7px 0;
}

.tax-credit small {
  color: var(--muted);
  font-size: 0.72rem;
}

.outside-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.77rem;
  margin: 0 0 16px;
  padding: 12px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  text-decoration: none;
  transition: 150ms ease;
}

.primary-button {
  background: var(--terracotta);
  color: white;
  gap: 8px;
}

.primary-button:hover {
  background: #a95440;
  transform: translateY(-1px);
}

.secondary-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: white;
  margin-top: 10px;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.copied-message {
  color: var(--gold);
  font-size: 0.76rem;
  min-height: 1.2em;
  margin: 8px 0 0;
  text-align: center;
}

.fine-print {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.69rem;
  line-height: 1.5;
  margin: auto 0 0;
  padding-top: 12px;
}

.is-hidden {
  display: none !important;
}

footer {
  color: var(--muted);
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 28px 34px;
}

@media (max-width: 880px) {
  .intro,
  .estimator-shell {
    grid-template-columns: 1fr;
  }

  .food-photo {
    max-height: 310px;
    min-height: 260px;
  }

  .result-panel {
    min-height: auto;
  }

  .fine-print {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
  }

  .header-note {
    display: none;
  }

  main {
    padding: 14px 14px 44px;
  }

  .intro {
    gap: 14px;
    margin-bottom: 14px;
  }

  .intro-copy,
  .food-photo,
  .estimator-shell {
    border-radius: 20px;
  }

  .intro-copy {
    min-height: auto;
    padding: 34px 26px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .lede {
    font-size: 0.96rem;
  }

  .people-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-content {
    min-height: auto;
  }

  .form-panel,
  .result-panel {
    padding: 30px 22px;
  }

  .toggle-row {
    grid-template-columns: 1fr auto;
  }

  .toggle-row b {
    grid-column: 1;
    grid-row: 2;
  }

  .switch {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 0 18px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
