/* MadelMade shared styles. Every page is built from these pieces. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0; background: var(--color-cream); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-body); line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--color-terracotta); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-gutter); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.muted { color: var(--color-muted); }
.hidden, [hidden] { display: none !important; }

/* ---- Text styles ---- */
.t-display { font-family: var(--font-display); font-weight: 500; line-height: 1; margin: 0; }
.t-page-title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-page-title); line-height: 1.02; margin: 0; }
.t-section { font-family: var(--font-title); font-weight: 800; font-size: var(--text-section); line-height: 1.1; margin: 0; }
.t-title { font-family: var(--font-title); font-weight: 800; font-size: 1.375rem; line-height: 1.2; margin: 0; }
.t-subtitle { font-size: var(--text-subtitle); line-height: 1.5; color: var(--color-ink-soft); margin: 0; }
.t-small { font-size: var(--text-small); }
.t-eyebrow { font-size: var(--text-eyebrow); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted); font-weight: 500; }
.t-label { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.t-price { font-family: var(--font-title); font-weight: 800; color: var(--color-crust); }

.section-title { display: flex; align-items: center; gap: 28px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 15px 28px; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--color-terracotta); color: var(--color-white); border-radius: 0;
}
.btn:hover { background: var(--color-terracotta-dark); color: var(--color-white); }
.btn-secondary { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-ink); }
.btn-secondary:hover { background: var(--color-ink); color: var(--color-crumb); }
.btn-danger { background: transparent; color: #8E2F2F; border: 1.5px solid #B8605A; }
.btn-danger:hover { background: #8E2F2F; color: var(--color-white); }
.btn-quiet { background: transparent; color: var(--color-ink); padding: 10px 4px; letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }
.btn-quiet:hover { background: transparent; color: var(--color-terracotta); }
.btn-small { padding: 9px 16px; font-size: 0.75rem; }
.order-actions { display: grid; grid-template-columns: repeat(2, 9.5rem); gap: 10px; }
.order-actions form { display: contents; }
.order-actions .btn { width: 100%; white-space: nowrap; }
@media (max-width: 520px) { .order-actions { grid-template-columns: 1fr 1fr; width: 100%; } }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-arrow { font-weight: 600; text-decoration: none; }

.pill {
  min-height: var(--tap); padding: 10px 20px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--color-line); background: var(--color-crumb); color: var(--color-ink);
  font-size: 0.95rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.pill:hover { border-color: var(--color-ink); color: var(--color-ink); }
.pill.is-on, .pill[aria-pressed="true"], input:checked + .pill { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-crumb); font-weight: 600; }
.pill .pill-note { opacity: 0.8; font-weight: 500; }
.pill-count { background: var(--color-terracotta); color: var(--color-white); border-radius: var(--radius-pill); min-width: 20px; height: 20px; padding: 0 6px; font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Status badge ---- */
.badge { font-family: var(--font-body); letter-spacing: 0; display: inline-flex; align-items: center; padding: 5px 13px; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.badge-review { background: var(--badge-review-bg); color: var(--badge-review-fg); }
.badge-changes { background: var(--badge-changes-bg); color: var(--badge-changes-fg); }
.badge-approved { background: var(--badge-approved-bg); color: var(--badge-approved-fg); }
.badge-baked { background: var(--badge-baked-bg); color: var(--badge-baked-fg); }
.badge-completed { background: var(--badge-completed-bg); color: var(--badge-completed-fg); }
.badge-declined { background: var(--badge-declined-bg); color: var(--badge-declined-fg); }
.tag { display: inline-flex; border: 1px solid var(--color-terracotta); color: var(--color-terracotta); padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-height);
  background: rgba(244, 239, 228, 0.97); border-bottom: 1px solid var(--color-linen);
}
.site-header.is-over-hero { position: fixed; left: 0; right: 0; background: rgba(244, 239, 228, 0.88); border-bottom-color: rgba(221, 213, 196, 0.8); transition: background .2s; }
.site-header.is-over-hero.is-solid { background: rgba(244, 239, 228, 0.98); }
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wordmark { font-family: var(--font-display); font-size: 2.125rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: var(--color-ink); }
.wordmark img { height: 32px; width: auto; }
.wordmark:hover { color: var(--color-ink); }
.main-nav { display: flex; gap: 44px; }
.main-nav a, .header-signin { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: var(--tap); height: var(--tap); border: none; background: transparent; color: var(--color-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; text-decoration: none; }
.cart-count { position: absolute; top: 4px; right: 2px; background: var(--color-terracotta); color: var(--color-white); font-size: 0.6875rem; font-weight: 600; min-width: 18px; height: 18px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  .site-header .wrap { padding: 0 12px; gap: 4px; }
  .menu-toggle { display: inline-flex; justify-self: start; }
  .main-nav { display: none; }
  .wordmark { font-size: 1.375rem; gap: 6px; }
  .wordmark img { height: 20px; }
  .header-signin { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; padding: 12px 2px; white-space: nowrap; }
  .header-actions { gap: 4px; }
  .header-signin.hide-on-phone { display: none; }
  .mobile-nav { position: fixed; z-index: 39; top: var(--header-height); left: 0; right: 0; background: var(--color-cream); border-bottom: 1px solid var(--color-linen); padding: 8px 20px 20px; box-shadow: var(--shadow-card); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--color-linen); text-decoration: none; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.875rem; font-weight: 500; }
}

/* ---- Hero ---- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1000px; overflow: hidden; color: var(--color-white); }
.hero picture, .hero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img.hero-img { object-fit: cover; }
/* Slides take turns; the time on each and the fade come from Admin › Home page. */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--hero-fade, 2s) ease-in-out; }
.hero-slide.is-on { opacity: 1; }
.hero video.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,22,14,0.6) 0%, rgba(30,22,14,0.36) 38%, rgba(30,22,14,0) 68%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: var(--header-height); }
.hero-content > * { max-width: 640px; }
.hero-eyebrow { font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-hero-eyebrow); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-hero); line-height: 0.98; margin: 0; }
.hero h1 em { font-style: italic; }
.hero h1 .nowrap { white-space: nowrap; }
.hero-lead { font-size: 1.25rem; line-height: 1.55; color: var(--color-hero-text); max-width: 520px; margin: 0; }
.hero .btn { align-self: flex-start; padding: 18px 32px; font-size: 0.9375rem; letter-spacing: 0.2em; }
.scroll-cue { position: absolute; z-index: 1; bottom: 28px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--color-hero-eyebrow); font-size: 0.75rem; letter-spacing: 0.3em; text-decoration: none; }
.scroll-cue:hover { color: var(--color-white); }

@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; aspect-ratio: 390 / 580; max-height: none; }
  .hero::after { background: linear-gradient(180deg, rgba(30,22,14,0) 22%, rgba(30,22,14,0.5) 50%, rgba(30,22,14,0.7) 100%); }
  .hero-content { justify-content: flex-end; gap: 16px; padding-bottom: 64px; }
  .hero-eyebrow { font-size: 0.6875rem; letter-spacing: 0.28em; }
  .hero h1 { font-size: 2.7rem; line-height: 1; }
  .hero-lead { font-size: 1rem; }
  .hero .btn { align-self: stretch; padding: 16px 0; font-size: 0.875rem; }
  .scroll-cue { bottom: 20px; font-size: 0.625rem; }
  .scroll-cue svg { display: none; }
}

/* ---- Menu ---- */
.menu-section { padding: var(--space-24) 0; }
.menu-section .wrap { display: flex; flex-direction: column; gap: 36px; }
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.product-card { position: relative; text-decoration: none; color: var(--color-ink); border-radius: var(--radius); overflow: hidden; background: var(--color-crumb); border: 1px solid var(--color-card-line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.product-card:hover { color: var(--color-ink); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.product-card .photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--color-placeholder); }
.photo-placeholder { width: 100%; aspect-ratio: 1; background: var(--color-placeholder); display: flex; align-items: center; justify-content: center; color: var(--color-muted); }
.product-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.product-card-name { font-family: var(--font-title); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.product-card-price { font-size: 0.9375rem; color: var(--color-crust); }
.product-card.is-sold-out .photo { filter: grayscale(1); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--color-crumb); color: var(--color-ink); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow-card); }
.paused-note { background: var(--badge-review-bg); color: var(--badge-review-fg); padding: 14px 18px; border-radius: var(--radius); font-weight: 500; }

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .menu-section { padding: 40px 0; }
  .menu-section .wrap { gap: 20px; }
  .menu-tabs .pill { padding: 10px 18px; font-size: 0.875rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-card { border-radius: 12px; }
  .product-card-body { padding: 10px 12px 14px; gap: 2px; }
  .product-card-name { font-size: 1rem; }
  .product-card-price { font-size: 0.8125rem; }
}

/* ---- Product page ---- */
.product-page { padding: 48px 0 96px; }
.product-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.product-media { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-height) + 24px); }
.product-media .main-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-placeholder); }
.preview-name { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; }
.preview-desc { font-size: 0.9375rem; line-height: 1.5; color: var(--color-muted); }
.product-info { display: flex; flex-direction: column; gap: 30px; }
.product-head { display: flex; flex-direction: column; gap: 10px; }
.back-link { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); text-decoration: none; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row .t-price { font-size: 1.875rem; }
.option-group { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.option-group legend { padding: 0; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.option-group .chosen { font-size: 0.9375rem; color: var(--color-muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices input:focus-visible + .pill, .choices input:focus-visible + .swatch { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }
.swatches { gap: 14px; }
.swatch { width: 68px; height: 68px; padding: 3px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: var(--color-crumb); cursor: pointer; display: block; }
.swatch img, .swatch .swatch-blank { width: 100%; height: 100%; border-radius: var(--radius-pill); object-fit: cover; }
.swatch .swatch-blank { background: var(--color-placeholder); display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: var(--color-muted); text-align: center; line-height: 1.1; }
input:checked + .swatch { border: 2.5px solid var(--color-terracotta); padding: 2px; }
.letters-box, .custom-box { display: flex; flex-direction: column; gap: 6px; }
.char-count { font-size: 0.8125rem; color: var(--color-muted); align-self: flex-end; }
.check-row { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 1rem; min-height: var(--tap); }
.check-row input { width: 22px; height: 22px; accent-color: var(--color-terracotta); flex: none; margin: 0; }
.cert-box { background: var(--color-crumb); border: 1px solid var(--color-card-line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cert-box img { width: 100%; max-width: 360px; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.add-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.add-bar .btn { padding: 18px 36px; font-size: 0.9375rem; letter-spacing: 0.2em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-line); background: var(--color-crumb); border-radius: var(--radius-pill); }
.qty button { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 36px; text-align: center; border: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 900px) {
  .product-page { padding: 16px 0 120px; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-media { position: static; }
  .product-head .t-page-title { font-size: 2.5rem; }
  .add-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--color-cream); border-top: 1px solid var(--color-linen); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(38,48,40,0.08); }
  .add-bar .btn { flex: 1; padding: 16px 12px; font-size: 0.8125rem; }
  .add-bar .add-note { display: none; }
  .back-link.top-back { display: inline-block; margin-bottom: 4px; }
  .back-link.side-back { display: none; }
}
@media (min-width: 901px) { .back-link.top-back { display: none; } }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 0.8125rem; font-weight: 600; color: var(--color-ink); }
.help, .field .help { font-size: 0.8125rem; color: var(--color-muted); line-height: 1.45; }
.field .error { font-size: 0.8125rem; color: #8E2F2F; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: var(--tap); border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-white);
  padding: 10px 12px; font-size: 0.9375rem; color: var(--color-ink);
}
.field textarea { resize: vertical; min-height: 88px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented input:focus-visible + .pill { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }

.alert { border-radius: var(--radius); padding: 14px 18px; font-size: 0.9375rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--badge-declined-bg); color: var(--badge-declined-fg); }
.alert-ok { background: var(--badge-approved-bg); color: var(--badge-approved-fg); }
.alert-info { background: var(--badge-review-bg); color: var(--badge-review-fg); }
.flash-area { position: fixed; z-index: 70; top: calc(var(--header-height) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; }
.flash-area .alert { box-shadow: var(--shadow-card); }

/* ---- Cart drawer and checkout popup ---- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(38,48,40,0.38); }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--color-cream); box-shadow: var(--shadow-sheet); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease, visibility 0s linear .3s; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
/* Opened by the server right after "Add to cart": slide in instead of appearing. */
.drawer.is-open.drawer-enter { animation: drawer-in .3s ease both; }
@keyframes drawer-up { from { transform: translateY(100%); } to { transform: none; } }
.scrim:not(.hidden) { animation: scrim-in .3s ease both; }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer.is-open { transition: none; } .drawer.is-open.drawer-enter { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--color-linen); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--color-linen); padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .drawer { top: auto; left: 0; width: 100%; height: 100%; border-radius: 0; transform: translateY(100%); }
  .drawer.is-open.drawer-enter { animation-name: drawer-up; }
}
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--color-linen); }
.cart-line img, .cart-line .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--color-placeholder); }
.cart-line-name { font-family: var(--font-title); font-weight: 800; font-size: 1rem; }
.cart-line-opts { font-size: 0.8125rem; color: var(--color-muted); line-height: 1.45; }
.cart-line-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-line-actions form { display: inline; }
.cart-line-actions button { min-height: 32px; }
.link-btn { background: none; border: none; padding: 6px 4px; cursor: pointer; color: var(--color-muted); text-decoration: underline; font-size: 0.8125rem; }
.link-btn:hover { color: var(--color-terracotta); }
.nested { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--color-linen); font-size: 0.8125rem; color: var(--color-ink-soft); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.total-row strong { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: var(--color-crust); }

.modal { position: fixed; z-index: 62; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 32px)); background: var(--color-cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: 0.8125rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--color-linen); }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid var(--color-line); background: var(--color-white); color: var(--color-ink); font-weight: 600; text-decoration: none; border-radius: var(--radius-pill); padding: 10px 20px; }
.google-btn:hover { border-color: var(--color-ink); color: var(--color-ink); }

/* ---- Content pages ---- */
.page { padding: 56px 0 96px; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } .page { padding: 28px 0 72px; } }
.card { background: var(--color-crumb); border: 1px solid var(--color-card-line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-title { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; margin: 0 0 14px; }

/* Order summary */
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-linen); }
.summary-line:last-child { border-bottom: none; }
.summary-name { font-weight: 600; }
.summary-opts { font-size: 0.875rem; color: var(--color-muted); }
.summary-price { white-space: nowrap; font-weight: 600; color: var(--color-crust); }
.summary-totals { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.summary-totals div { display: flex; justify-content: space-between; }
.summary-totals .grand { font-weight: 700; font-size: 1.0625rem; border-top: 1px solid var(--color-linen); padding-top: 10px; margin-top: 4px; }
.summary-totals .grand:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Timeline and messages */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--color-linen); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 22px; height: 22px; border-radius: var(--radius-pill); border: 2px solid var(--color-line); background: var(--color-cream); }
.timeline li.done .dot { background: var(--color-terracotta); border-color: var(--color-terracotta); }
.timeline li.current .dot { border-color: var(--color-terracotta); box-shadow: 0 0 0 4px rgba(164,80,47,0.15); }
.timeline .step-title { font-weight: 600; }
.timeline .step-sub { font-size: 0.8125rem; color: var(--color-muted); }
.messages { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; background: var(--color-crumb); border: 1px solid var(--color-card-line); overflow-wrap: anywhere; }
.bubble-text { white-space: pre-wrap; }
.bubble-meta { font-size: 0.75rem; color: var(--color-muted); margin-top: 4px; }
.bubble.from-me { align-self: flex-end; background: var(--color-ink); color: var(--color-crumb); border-color: var(--color-ink); }
.bubble.from-me .bubble-meta { color: #C9C2B2; }
.bubble.is-log { align-self: center; background: transparent; border-style: dashed; font-size: 0.875rem; max-width: 100%; }

/* About and FAQ */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 64px; align-items: center; }
.about-photo { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); justify-self: center; }
.about-signoff { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.about-signoff img { width: 96px; }
.about-signoff p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.375rem; color: var(--color-crust); }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; gap: 28px; } .about-photo { max-width: 240px; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--color-crumb); border: 1px solid var(--color-card-line); border-radius: var(--radius); padding: 22px; }
.step-num { width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--color-terracotta); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--color-linen); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-title); font-weight: 800; font-size: 1.125rem; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--color-terracotta); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--color-ink-soft); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-tile { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.gallery-tile figcaption { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; }
.gallery-other { margin-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.gallery-other .page-head { margin-bottom: 0; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Sign in */
.signin-card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.code-input { font-size: 1.75rem !important; letter-spacing: 0.4em; text-align: center; font-family: var(--font-title) !important; font-weight: 800; }
.dev-code { background: var(--badge-review-bg); color: var(--badge-review-fg); border-radius: var(--radius); padding: 12px 16px; font-size: 0.875rem; }

/* Birth certificate */
.certificate { background: #FFFDF8; border: 3px double var(--color-crust); outline: 1px solid var(--color-crust); outline-offset: -10px; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; font-family: var(--font-display); color: #3A2A1E; max-width: 760px; }
.certificate h2 { grid-column: 1 / -1; text-align: center; font-variant: small-caps; letter-spacing: 0.08em; font-size: 2.25rem; font-weight: 600; margin: 0; }
.certificate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 1.25rem; }
.certificate dt { font-variant: small-caps; color: var(--color-crust); }
.certificate dd { margin: 0; border-bottom: 1px solid #D9CBB8; }
.certificate .verse { grid-column: 1 / 2; font-style: italic; font-size: 1.125rem; }
.certificate img { grid-row: 2 / 4; grid-column: 2; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (max-width: 640px) { .certificate { grid-template-columns: 1fr; padding: 24px; } .certificate img { grid-row: auto; grid-column: auto; width: 160px; margin: 0 auto; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--color-linen); padding: 40px 0 48px; color: var(--color-muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.footer-brand { font-family: var(--font-display); font-size: 1.375rem; color: var(--color-ink); font-weight: 600; }

/* ---- Promo code ---- */
.promo-row { display: flex; gap: 10px; align-items: stretch; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-ok { color: var(--badge-approved-fg); font-weight: 600; }
.promo-error { color: var(--badge-declined-fg); font-weight: 600; }
.summary-totals .discount span:last-child { color: var(--badge-approved-fg); }

/* ---- Required notices ---- */
.notice-box { display: flex; flex-direction: column; gap: 4px; background: var(--badge-review-bg); color: var(--badge-review-fg); border-radius: 12px; padding: 12px 14px; font-size: 0.875rem; line-height: 1.45; }
.notice-box strong { font-weight: 700; }
.home-kitchen { margin: 0; font-style: italic; }
.pill-disabled { opacity: 0.45; cursor: not-allowed; }

/* Ingredients and allergens on the product page (required by Tennessee's home food law) */
.label-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 0; max-width: 520px; }
.label-info dt { font-weight: 600; }
.label-info dd { margin: 0; color: var(--color-ink-soft, inherit); }
.home-kitchen-section p { margin: 0; }

/* An error shown right beside the part of the form it's about. */
.field-error { background: var(--badge-declined-bg); color: var(--badge-declined-fg); border-radius: 10px; padding: 10px 14px; font-size: 0.875rem; display: grid; gap: 4px; }
.field-error[data-live] { margin-top: 6px; }
[aria-invalid="true"] { border-color: var(--badge-declined-fg) !important; }

/* Feedback button in the corner, opening a short form. */
.feedback { position: fixed; z-index: 35; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
.feedback > summary { list-style: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--color-ink); color: var(--color-crumb); box-shadow: var(--shadow-card); }
.feedback > summary::-webkit-details-marker { display: none; }
.feedback[open] > summary { display: none; }
.feedback-panel { width: min(340px, calc(100vw - 32px)); background: var(--color-cream); border: 1px solid var(--color-linen); border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.feedback-head { display: flex; justify-content: space-between; align-items: center; }
.feedback-panel textarea { min-height: 96px; }
.feedback-panel .btn { align-self: flex-start; }
.feedback-panel .segmented .pill { font-size: 0.8125rem; padding: 6px 12px; }
@media (max-width: 760px) { body:has(.add-bar) .feedback { bottom: calc(88px + env(safe-area-inset-bottom)); } }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.profile-orders { gap: 10px; }
.profile-orders .t-title { margin-bottom: 2px; }
.profile-order { gap: 8px; padding: 18px 20px; }
.profile-order + .profile-order { margin-top: 0; }

/* ---- How it's made: steps scroll down the middle while the intro stays at the side ---- */
/* Three columns keep the steps in the middle of the screen, with the intro in the left one. */
.process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-height) + 48px); display: flex; flex-direction: column; gap: 20px; }
.process-intro .btn { align-self: flex-start; margin-top: 8px; }
.process-steps { list-style: none; margin: 0 auto; padding: 0 0 40px; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 128px; }
.process-step { display: flex; flex-direction: column; gap: 24px; transition: opacity .8s ease, transform .8s ease; }
.process-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-placeholder); }
.process-media img, .process-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.process-text { display: flex; flex-direction: column; gap: 10px; }
.process-num { font-size: var(--text-eyebrow); letter-spacing: 0.3em; color: var(--color-terracotta); }
.process-text h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; margin: 0; }
.process-text p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--color-ink-soft); }
/* Each step eases in as it reaches the screen (only when the script is running). */
.process-steps.is-revealing .process-step:not(.is-seen) { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .process-step { transition: none; } }
@media (max-width: 1180px) { .process-layout { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; gap: 48px; }
  .process-intro { position: static; }
  .process-steps { gap: 80px; }
}
.privacy ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 8px; } .privacy h2 { margin: 12px 0 0; } .privacy p { margin: 0; }

/* Madeline editing an order's item from the product page */
.edit-banner { display: flex; flex-direction: column; gap: 10px; background: var(--color-crumb); border: 1px solid var(--color-card-line); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; }
.edit-banner > div:first-child { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.edit-switch { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 0.875rem; }
.edit-switch a { color: inherit; }
.edit-switch a.current { font-weight: 600; text-decoration: none; color: var(--color-terracotta); }
a.link-btn { display: inline-block; }
