:root {
  --cream: #F8F8F4;
  --cream-warm: #F2F2EC;
  --cream-deep: #E8E8DE;
  --olive: #4A5530;
  --olive-soft: #6B7A4A;
  --olive-light: #8B9A6A;
  --bread: #8B5E3C;
  --bread-dark: #6B4528;
  --bread-light: #B07F50;
  --ink: #2E2A1F;
  --ink-soft: #5C5640;
  --border: #DCDCD0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--olive);
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; color: var(--bread-dark); }

p { margin-bottom: 1rem; }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero - cream with logo front and center */
.hero {
  background: var(--cream);
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.logo {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--olive-soft);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover { background: var(--olive-soft); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--olive);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 2px solid var(--olive);
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--olive); color: var(--cream); }

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 16px;
  font-size: 0.9375rem;
}

/* This Week banner */
.this-week {
  background: var(--olive);
  color: var(--cream);
  padding: 1.5rem;
}

.this-week-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.week-item { text-align: center; }

.week-label {
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--cream-deep);
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}

.week-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--cream);
  font-weight: 600;
}

.week-divider {
  width: 1px;
  height: 36px;
  background: var(--cream);
  opacity: 0.25;
}

/* Dividers */
.divider {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.divider svg {
  width: 200px;
  height: 30px;
}

/* Sections */
section { padding: 4rem 0; }

.about, .community { background: var(--cream); }
.how { background: var(--cream-warm); }
.order { background: var(--cream); }
.payment { background: var(--cream-warm); }

.about, .community { text-align: center; }
.about p, .community p { max-width: 580px; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

.weekly-note {
  max-width: 580px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: var(--cream-deep);
  border-left: 3px solid var(--bread);
  color: var(--ink);
  font-style: italic;
  text-align: left;
  border-radius: 0 4px 4px 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--cream);
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
}

.step-icon svg { width: 100%; height: 100%; }

.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: var(--olive);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.0625rem;
  border: 3px solid var(--cream-warm);
}

.step h3 { margin-top: 0.25rem; }
.step p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* Form */
.form-intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.order .container > h2 { text-align: center; }

.order-form {
  background: var(--cream-warm);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.field { margin-bottom: 1.25rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.req { color: #B23A3A; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74, 85, 48, 0.15);
}

textarea { resize: vertical; min-height: 80px; }

.hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.375rem;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.hidden-field { display: none; }

/* Flavor list */
.flavor-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.flavor-loading {
  padding: 1rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.flavor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  transition: border-color 0.15s;
}

.flavor-row:has(.qty-input:not([value="0"])) {
  border-color: var(--olive);
  background: #FCF7E8;
}

.flavor-info { flex: 1; min-width: 0; }

.flavor-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bread-dark);
  line-height: 1.2;
}

.flavor-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 2px;
  font-style: italic;
}

.flavor-price {
  font-size: 0.8125rem;
  color: var(--olive);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--cream-warm);
  color: var(--olive);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: background 0.15s;
}

.qty-btn:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.qty-btn:active { transform: scale(0.95); }

.qty-input {
  width: 44px !important;
  text-align: center;
  padding: 6px 4px !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
  -moz-appearance: textfield;
}

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

/* Order total box */
.order-total-box {
  background: var(--olive);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 0.5rem 0 1.25rem;
}

.order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9375rem;
}

.order-total-line + .order-total-line {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(252, 245, 235, 0.25);
}

.order-total-line span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.order-total-line span:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.order-total-amount span:first-child {
  opacity: 1;
  font-size: 0.8125rem;
}

.order-total-amount span:last-child {
  font-size: 1.5rem;
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Thank you page */
.thank-you-box {
  background: var(--olive);
  color: var(--cream);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.thank-you-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
}

.thank-you-summary {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  opacity: 0.92;
  font-style: italic;
}

/* Payment */
.payment { text-align: center; }
.payment > .container > p { max-width: 580px; margin: 0 auto 1.5rem; color: var(--ink-soft); }

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.pay-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.pay-card:hover {
  transform: translateY(-2px);
  border-color: var(--olive);
  box-shadow: 0 4px 12px rgba(74, 85, 48, 0.08);
}

.pay-label {
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pay-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.pay-paypal { color: #003087; }
.pay-venmo { color: #008CFF; }

.pay-handle {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
}

/* Community */
.community-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 1rem;
}

/* Footer */
footer {
  background: var(--olive);
  color: var(--cream);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer-logo {
  max-width: 140px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(0) invert(0.93) sepia(0.15);
  opacity: 0.95;
}

.footer-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  color: var(--cream);
  opacity: 0.9;
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--cream-deep);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: var(--cream);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 2rem 1.5rem 3rem; }
  .logo { max-width: 300px; }
  section { padding: 3rem 0; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .week-divider { display: none; }
  .this-week-inner { flex-direction: column; gap: 1rem; }
  .order-form { padding: 1.5rem; }
}