:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-deep: #eee5d8;
  --paper-light: #fbf8f2;
  --ink: #32261f;
  --ink-soft: #62534a;
  --muted: #82776e;
  --line: #ded4c7;
  --brown: #533c2e;
  --brown-dark: #38281f;
  --olive: #6f7652;
  --olive-pale: #e7e9dd;
  --rust: #ab644d;
  --gold: #bd9457;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --shadow: 0 22px 65px rgb(52 38 29 / 13%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a4774d; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 20; top: -50px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.preview-notice { display: flex; min-height: 31px; align-items: center; justify-content: center; gap: 9px; background: var(--brown-dark); color: #f7eee3; padding: 6px 15px; text-align: center; font-size: 10px; letter-spacing: .035em; }
.preview-dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7ad79; flex: 0 0 auto; }
.notice-divider { color: #a68e7a; }
.site-header { position: sticky; z-index: 8; top: 0; display: flex; height: 77px; align-items: center; justify-content: space-between; padding: 0 7.2%; border-bottom: 1px solid rgb(88 67 51 / 10%); background: rgb(246 241 232 / 95%); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 37px; height: 37px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.brand-name, .footer-brand { font-family: var(--serif); font-size: 20px; letter-spacing: -.06em; }
.brand-name span, .footer-brand span { color: var(--gold); font-style: italic; }
.main-nav { display: flex; gap: 38px; margin-left: 25px; }
.main-nav a { color: var(--ink-soft); font-size: 12px; transition: color .2s; }
.main-nav a:hover, .text-link:hover { color: var(--rust); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.button, .icon-button, .admin-toggle, .view-button, .text-button { cursor: pointer; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; padding: 0 19px; font-size: 11px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--brown); background: var(--paper-deep); }
.button-dark { background: var(--brown-dark); color: #fffaf3; }
.button-dark:hover { background: #694c38; }
.icon-button { position: relative; display: inline-grid; width: 38px; height: 38px; place-items: center; border: 0; background: transparent; }
.icon-button svg, .admin-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.icon-button:hover { color: var(--rust); }
.ticket-count { position: absolute; top: -1px; right: -2px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--rust); color: white; font-size: 9px; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 526px; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 6%; overflow: hidden; padding: 55px 9.5% 70px 11.4%; }
.hero::before { position: absolute; top: -98px; left: -104px; width: 338px; height: 338px; border: 1px solid rgb(147 113 81 / 12%); border-radius: 50%; content: ""; }
.hero::after { position: absolute; top: -74px; left: -81px; width: 293px; height: 293px; border: 1px solid rgb(147 113 81 / 12%); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 8px; }
.eyebrow { margin: 0 0 19px; color: var(--olive); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 27px; height: 1px; background: var(--olive); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0 0 19px; font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); font-weight: 500; letter-spacing: -.045em; line-height: 1.09; }
.hero h1 em, h2 em { color: var(--rust); font-weight: 400; }
.hero-description { max-width: 360px; margin-bottom: 25px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.hero-cta { min-height: 46px; padding: 0 21px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--muted); font-family: var(--serif); font-size: 12px; font-style: italic; }
.note-sparkle { color: #a38158; font-size: 15px; font-style: normal; }
.hero-gallery { position: relative; display: grid; height: 377px; grid-template-columns: 1.17fr .83fr; align-items: center; gap: 13px; }
.hero-photo { position: relative; height: 331px; overflow: hidden; background: var(--paper-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-photo:hover img { transform: scale(1.035); }
.hero-photo-cardamom img { object-position: 54% 46%; }
.hero-photo-loaf { height: 278px; margin-top: 42px; }
.hero-photo-loaf img { object-position: center; }
.hero-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(29 22 17 / 62%)); content: ""; }
.photo-caption { position: absolute; z-index: 1; right: 12px; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 5px; color: white; }
.photo-caption span { font-size: 8px; letter-spacing: .13em; }
.photo-caption strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.photo-caption small { font-size: 9px; }
.photo-badge { position: absolute; z-index: 2; top: 18px; right: -9px; display: grid; width: 77px; height: 77px; place-content: center; border-radius: 50%; background: var(--paper-light); color: var(--brown); font-family: var(--serif); font-size: 11px; font-style: italic; line-height: 1.4; text-align: center; transform: rotate(9deg); }
.gallery-stamp { position: absolute; z-index: 3; bottom: 4px; left: 43%; display: grid; width: 63px; height: 63px; place-content: center; border: 1px solid var(--paper); border-radius: 50%; background: #6e7452; color: white; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.1; text-align: center; transform: rotate(-12deg); }

.section-wrap { width: min(1110px, 84%); margin-right: auto; margin-left: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2, .story-copy h2, .newsletter h2 { margin: 0; font-family: var(--serif); font-size: clamp(33px, 4vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.19; }
.section-intro { width: 300px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.9; }

.pickup-section { padding: 76px 0 69px; background: #ede5d9; }
.pickup-heading { align-items: end; }
.pickup-heading .section-intro { width: 326px; }
.pickup-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 31px; padding-bottom: 15px; border-bottom: 1px solid #d9cdbd; }
.calendar-prompt { margin: 0; color: var(--muted); font-size: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 21px; }
.pickup-period { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; background: var(--olive); }
.admin-toggle { display: flex; align-items: center; gap: 8px; border: 0; padding: 7px; background: transparent; color: var(--brown); font-size: 10px; }
.admin-toggle svg { width: 16px; height: 16px; }
.demo-label { border-radius: 2px; padding: 3px 5px; background: #e2d9c9; color: #766550; font-size: 8px; text-transform: uppercase; }
.text-button { border: 0; padding: 6px 0; background: none; color: var(--rust); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.pickup-footnote { display: flex; align-items: center; gap: 9px; margin-top: 21px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.pickup-footnote span { color: var(--olive); font-size: 14px; }
.admin-panel { margin: 21px 0 13px; border: 1px solid #d6c6b3; background: rgb(250 247 240 / 75%); padding: 19px; }
.admin-panel-heading, .admin-panel-heading > div { display: flex; align-items: center; }
.admin-panel-heading { justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.admin-panel-heading > div { gap: 11px; }
.admin-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--olive-pale); color: var(--olive); }
.admin-panel-heading h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.admin-panel-heading p, .admin-warning { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.admin-warning { margin-bottom: 8px; border-left: 2px solid #c39367; padding: 7px 10px; background: #f4ede2; }
.admin-week-row { display: grid; grid-template-columns: minmax(120px, 1fr) 120px auto; align-items: center; gap: 12px; border-top: 1px solid #e4d9ca; padding: 9px 0; }
.admin-week-label { font-family: var(--serif); font-size: 12px; }
.admin-inventory { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.admin-inventory input { width: 53px; border: 1px solid var(--line); padding: 5px; background: var(--paper-light); color: var(--ink); }
.admin-block-button { border: 1px solid #cbbdab; padding: 6px 8px; background: transparent; color: var(--brown); font-size: 9px; cursor: pointer; }
.admin-block-button.is-blocked { border-color: #b87662; color: #8c4d3e; }

.calendar-panel { padding-top: 25px; }
.calendar-month { margin-bottom: 34px; }
.calendar-month-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.calendar-month-header h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.calendar-month-header span { color: var(--muted); font-size: 9px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekday, .calendar-day { display: grid; min-height: 82px; place-items: center; }
.calendar-weekday { min-height: 26px; color: var(--muted); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.calendar-day { position: relative; align-content: space-between; justify-items: stretch; gap: 5px; border: 1px solid transparent; padding: 7px; background: rgb(251 248 242 / 56%); color: var(--muted); font-size: 10px; }
button.calendar-day { cursor: pointer; }
button.calendar-day:hover:not(:disabled) { border-color: var(--olive); }
.calendar-day.is-pickup { border-color: #d1c0a6; background: #e9dcc8; color: var(--ink); }
.calendar-day.is-pickup.has-ticket { border-color: #fff; background: #fff; color: #35281f; }
.calendar-day.is-pickup.has-ticket.is-sold-out { border-color: #fff; background: #fff; color: #35281f; }
.calendar-date-number { justify-self: start; font-size: 11px; font-weight: 600; }
.loaf-progress { display: block; width: 100%; height: 3px; overflow: hidden; background: rgb(83 60 46 / 17%); }
.loaf-progress i { display: block; height: 100%; background: var(--olive); }
.loaf-remaining { justify-self: start; color: var(--muted); font-size: 8px; white-space: nowrap; }
.calendar-day.is-sold-out { border-color: #d0ad98; background: #ead8cb; }
.calendar-day.is-sold-out .loaf-progress i { background: var(--rust); }
.calendar-day.is-blocked { opacity: .48; }
.calendar-day.is-outside { border-color: transparent; background: transparent; }
.calendar-day.is-empty, .calendar-day:disabled { background: transparent; cursor: default; }
.calendar-day[aria-disabled=true] { opacity: .65; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.legend-dot.sold-out { background: var(--rust); }
.calendar-hint { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.pickup-calendar { max-width: 930px; margin: 0 auto; }
.pickup-calendar .calendar-month { margin-bottom: 25px; }

.story-section { position: relative; display: grid; min-height: 336px; grid-template-columns: 210px 1fr; align-items: center; gap: 52px; overflow: hidden; padding-top: 57px; padding-bottom: 58px; }
.story-mark { display: grid; width: 185px; height: 185px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-light); }
.story-mark img { width: 135px; height: 135px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.story-copy { max-width: 525px; }
.story-copy .eyebrow { margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(27px, 3.4vw, 39px); }
.story-copy > p:not(.eyebrow) { max-width: 510px; margin: 13px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.text-link { color: var(--brown); font-size: 10px; font-weight: 600; transition: color .2s; }
.text-link span { padding-left: 5px; }
.story-detail { position: absolute; right: 0; bottom: 24px; display: flex; align-items: center; gap: 9px; color: #a49a8c; font-size: 7px; letter-spacing: .12em; transform: rotate(-90deg) translateX(100%); transform-origin: right bottom; }
.story-detail i { font-size: 11px; font-style: normal; }
.newsletter { display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 56px; padding: 33px 6%; background: var(--brown-dark); color: #fff7eb; }
.newsletter .eyebrow { color: #bdc39c; }
.newsletter h2 { font-size: 29px; }
.newsletter h2 em { color: #e6bca0; }
.button-cream { background: #f2e8d9; color: var(--brown-dark); }
.button-cream:hover { background: white; }
.site-footer { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 15px 8%; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 16px; }
.site-footer p, .site-footer > span { margin: 0; font-size: 9px; }

.app-dialog { width: min(460px, calc(100% - 28px)); max-height: min(88vh, 780px); overflow-y: auto; border: 1px solid var(--line); padding: 0; background: var(--paper-light); color: var(--ink); box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgb(36 27 21 / 54%); backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: 35px 36px 29px; }
.dialog-close { position: absolute; top: 13px; right: 15px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.dialog-inner > .eyebrow { margin-bottom: 10px; }
.dialog-inner > h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.dialog-description { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.app-dialog form { display: flex; flex-direction: column; }
.app-dialog label { margin: 13px 0 6px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.app-dialog input, .app-dialog select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 0; padding: 0 10px; background: white; color: var(--ink); font-size: 11px; }
.quantity-control { display: flex; width: 125px; align-items: center; border: 1px solid var(--line); background: white; }
.quantity-control button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--brown); font-size: 17px; cursor: pointer; }
.quantity-control input { min-height: 36px; border: 0; padding: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.slot-estimate { margin: 6px 0 0; color: var(--olive); font-size: 9px; }
.payment-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.form-error { min-height: 0; margin: 0; color: #984e3f; font-size: 10px; }
.form-error:not(:empty) { margin-top: 11px; }
.dialog-submit { width: 100%; margin-top: 17px; }
.dialog-footnote { margin: 11px 0 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.google-button { display: flex; width: 100%; min-height: 41px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); background: white; color: var(--ink-soft); font-size: 11px; }
.google-button > span { color: #4285f4; font-weight: 700; }
.google-button small { color: var(--muted); font-size: 8px; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 4px; color: var(--muted); font-size: 9px; }
.or-divider::before, .or-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.portal-dialog { width: min(620px, calc(100% - 28px)); }
.portal-profile { display: flex; align-items: center; gap: 12px; margin: 17px 0; border: 1px solid var(--line); padding: 13px; }
.profile-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--olive-pale); color: var(--olive); font-family: var(--serif); font-size: 17px; }
.portal-profile strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 500; }
.portal-profile span { color: var(--muted); font-size: 9px; }
.portal-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 9px; }
.portal-section-title h3 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.portal-section-title span { color: var(--muted); font-size: 9px; }
.portal-calendar { margin: 18px 0 22px; }
.portal-calendar-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; border: 1px solid var(--line); padding: 14px; }
.portal-calendar-month h4 { margin: 0 0 9px; font-family: var(--serif); font-size: 13px; font-weight: 500; }
.portal-calendar-months .calendar-month { min-width: 0; margin-bottom: 0; }
.portal-calendar-months .calendar-day { min-height: 47px; }
.portal-calendar-months .calendar-day.is-pickup { grid-template-rows: 1fr 3px 1fr; }
.portal-calendar-months .loaf-remaining { display: none; }
.pickup-count { position: absolute; top: 4px; right: 4px; color: var(--olive); font-size: 8px; font-style: normal; }
.ticket-list { display: grid; gap: 8px; }
.ticket-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); padding: 12px; }
.ticket-card strong { display: block; font-family: var(--serif); font-size: 13px; font-weight: 500; }
.ticket-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.ticket-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.ticket-print { border: 1px solid var(--line); padding: 7px 9px; background: transparent; color: var(--brown); font-size: 9px; cursor: pointer; }
.portal-section-title .print-all { margin-left: auto; }
.empty-tickets { border: 1px dashed var(--line); padding: 20px; color: var(--muted); font-size: 10px; text-align: center; }
.toast { position: fixed; z-index: 15; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); padding: 13px 17px; background: var(--brown-dark); color: white; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.checkout-bar { position: fixed; z-index: 9; right: 0; bottom: 0; left: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 11px max(6%, calc((100% - 1050px) / 2)); background: var(--paper-light); box-shadow: 0 -12px 35px rgb(52 38 29 / 10%); }
.checkout-bar[hidden] { display: none; }
body.has-cart { padding-bottom: 76px; }
.checkout-bar-copy { display: flex; flex-direction: column; gap: 4px; }
.checkout-bar-copy strong { font-family: var(--serif); font-size: 14px; font-weight: 500; }
.checkout-bar-copy span { color: var(--muted); font-size: 10px; }
.checkout-open { min-height: 43px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 14px; padding: 4px; background: var(--paper-deep); }
.auth-tab { min-height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.auth-tab.is-selected { background: var(--paper-light); color: var(--ink); box-shadow: 0 1px 5px rgb(52 38 29 / 10%); }
.checkout-dialog { width: min(700px, calc(100% - 28px)); }
.checkout-dialog .dialog-inner { padding: 32px; }
.checkout-calendar { margin: 14px 0 20px; }
.checkout-calendar > h3, .checkout-summary-heading h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.checkout-calendar .calendar-hint { margin: 4px 0 10px; }
.checkout-calendar .portal-calendar-months { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-height: 240px; overflow-y: auto; }
.checkout-calendar .calendar-day { min-height: 45px; }
.checkout-calendar .loaf-remaining { display: none; }
.checkout-summary { margin: 18px 0; }
.checkout-summary-heading, .checkout-item, .checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.checkout-summary-heading { margin-bottom: 9px; }
.checkout-summary-heading > span { color: var(--muted); font-size: 9px; }
.checkout-item { border-top: 1px solid var(--line); padding: 10px 0; }
.checkout-item > div { display: flex; flex-direction: column; gap: 4px; }
.checkout-item-actions { align-items: flex-end; flex: 0 0 auto; }
.checkout-item strong { font-family: var(--serif); font-size: 11px; font-weight: 500; }
.checkout-item span { color: var(--muted); font-size: 9px; }
.checkout-remove { border: 0; padding: 3px 0; background: transparent; color: var(--rust); font-size: 8px; text-decoration: underline; cursor: pointer; }
.checkout-total { border-top: 1px solid var(--line); padding-top: 11px; font-size: 11px; }
.checkout-total strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.checkout-dialog label { margin-top: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

body.dark-mode {
  color-scheme: dark;
  --paper: #221d19; --paper-deep: #302720; --paper-light: #29231e; --ink: #eee4d7; --ink-soft: #d0c0af; --muted: #aa9b8e;
  --line: #4b3d32; --brown: #d1b294; --brown-dark: #171310; --olive: #b0b995; --olive-pale: #3a4030; --rust: #d09378; --gold: #dfbd7f; --shadow: 0 22px 65px rgb(0 0 0 / 35%);
  background: var(--paper);
}
.dark-mode .site-header { border-color: var(--line); background: rgb(34 29 25 / 95%); }
.dark-mode .brand-mark, .dark-mode .story-mark img { mix-blend-mode: screen; }
.dark-mode .pickup-section { background: #2b241f; }
.dark-mode .pickup-toolbar { border-color: #493c31; }
.dark-mode .calendar-day, .dark-mode .admin-panel { background: #322a23; }
.dark-mode .button-dark { background: #e4d4c2; color: #241a13; }
.dark-mode .calendar-day.is-pickup { border-color: #67553f; background: #4a3c2c; }
.dark-mode .calendar-day.is-pickup.has-ticket { border-color: white; background: white; color: #35281f; }
.dark-mode .calendar-day.is-pickup.has-ticket.is-sold-out { border-color: white; background: white; color: #35281f; }
.dark-mode .calendar-day.is-sold-out { background: #49352e; }
.dark-mode .calendar-day.is-blocked { background: #332b25; }
.dark-mode .demo-label, .dark-mode .admin-warning { background: #3e352b; }
.dark-mode .admin-week-row { border-color: #483c31; }
.dark-mode .admin-inventory input, .dark-mode .app-dialog input, .dark-mode .app-dialog select, .dark-mode .quantity-control, .dark-mode .google-button { border-color: var(--line); background: #342d26; color: var(--ink); }
.dark-mode .calendar-day.is-empty { background: transparent; }

@media (min-width: 1450px) { .hero { padding-right: max(9.5%, calc((100% - 1120px) / 2)); padding-left: max(11.4%, calc((100% - 1100px) / 2)); } }
@media (max-width: 940px) {
  .site-header { padding-right: 5%; padding-left: 5%; }
  .hero { min-height: 480px; grid-template-columns: .93fr 1.07fr; gap: 4%; padding-right: 6%; padding-left: 7%; }
  .hero-gallery { height: 335px; }
  .hero-photo { height: 290px; }
  .hero-photo-loaf { height: 242px; }
  .section-wrap { width: 88%; }
  .main-nav { gap: 23px; }
  .section-heading { gap: 25px; }
  .toolbar-right { gap: 9px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 67px; }
  .preview-notice { min-height: 30px; font-size: 8px; }
  .site-header { height: 64px; padding-right: 5%; padding-left: 5%; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 17px; }
  .header-actions { gap: 4px; }
  .theme-toggle { width: 34px; }
  .user-menu-button { min-height: 34px; }
  .menu-toggle { display: inline-grid; width: 30px; }
  .main-nav { position: absolute; top: 63px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; margin: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 6%; border-top: 1px solid var(--line); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 24px; padding: 40px 6% 46px; }
  .hero h1 { font-size: clamp(43px, 11vw, 60px); }
  .hero-description { max-width: 400px; margin-bottom: 18px; font-size: 12px; }
  .hero-note { margin-top: 12px; }
  .hero-gallery { height: clamp(250px, 73vw, 350px); grid-template-columns: 1.08fr .92fr; gap: 9px; }
  .hero-photo { height: 82%; }
  .hero-photo-loaf { height: 70%; margin-top: 38px; }
  .photo-caption { bottom: 10px; left: 9px; }
  .photo-caption strong { font-size: 14px; }
  .photo-caption span { font-size: 7px; }
  .photo-badge { top: 10px; right: -5px; width: 62px; height: 62px; font-size: 9px; }
  .gallery-stamp { bottom: 2px; left: 41%; width: 54px; height: 54px; font-size: 9px; }
  .section-wrap { width: 88%; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; }
  .section-heading h2 { font-size: 37px; }
  .section-intro, .pickup-heading .section-intro { width: auto; max-width: 440px; font-size: 11px; }
  .pickup-section { padding: 50px 0 45px; }
  .pickup-toolbar { align-items: flex-start; flex-direction: column; gap: 11px; margin-top: 21px; }
  .toolbar-right { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
  .pickup-period { font-size: 9px; }
  .admin-toggle { padding-right: 0; font-size: 9px; }
  .admin-panel { padding: 13px 10px; }
  .admin-week-row { grid-template-columns: minmax(83px, 1fr) 101px auto; gap: 5px; }
  .admin-week-label { font-size: 10px; }
  .admin-inventory { gap: 3px; font-size: 8px; }
  .admin-inventory input { width: 39px; }
  .admin-block-button { padding: 6px 5px; font-size: 8px; }
  .portal-calendar-months { grid-template-columns: 1fr; }
  .portal-section-title { flex-wrap: wrap; }
  .portal-section-title .print-all { margin-left: 0; }
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 55px; gap: 3px; padding: 4px; font-size: 8px; }
  .calendar-weekday { min-height: 22px; font-size: 7px; }
  .calendar-date-number { font-size: 9px; }
  .loaf-remaining { font-size: 6px; }
  .portal-calendar-months, .checkout-calendar .portal-calendar-months { grid-template-columns: 1fr; }
  .checkout-dialog .dialog-inner { padding: 32px 19px 25px; }
  .checkout-calendar .portal-calendar-months { max-height: 220px; }
  .checkout-bar { min-height: 86px; gap: 8px; padding: 10px 4%; }
  .checkout-open { min-height: 42px; max-width: 62%; padding: 0 10px; font-size: 9px; }
  body.has-cart { padding-bottom: 92px; }
  .story-section { min-height: unset; grid-template-columns: 95px 1fr; gap: 18px; padding-top: 46px; padding-bottom: 50px; }
  .story-mark { width: 91px; height: 91px; }
  .story-mark img { width: 70px; height: 70px; }
  .story-copy .eyebrow { font-size: 7px; }
  .story-copy h2 { font-size: clamp(22px, 6vw, 31px); }
  .story-copy > p:not(.eyebrow) { font-size: 10px; }
  .story-detail { right: -12px; font-size: 6px; }
  .newsletter { min-height: 150px; margin-bottom: 33px; padding: 24px 6%; }
  .newsletter h2 { font-size: 24px; }
  .newsletter .button { min-height: 38px; gap: 6px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding: 17px 5%; text-align: center; }
  .site-footer p { width: 100%; order: 1; }
  .site-footer > span { font-size: 8px; }
  .dialog-inner { padding: 33px 22px 24px; }
}
@media (max-width: 380px) {
  .pickup-period { width: 100%; }
  .week-date { font-size: 14px; }
  .story-section { grid-template-columns: 1fr; }
  .story-mark { display: none; }
  .newsletter { align-items: flex-start; flex-direction: column; }
  .admin-week-row { grid-template-columns: minmax(77px, 1fr) 95px auto; }
}
@media print {
  body { background: white; color: black; }
  .preview-notice, .site-header, main, .site-footer, .dialog-close, .ticket-actions, .portal-profile, .portal-section-title:not(.print-title), .dialog-footnote { display: none !important; }
  .portal-dialog { position: static; display: block; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .portal-dialog::backdrop { display: none; }
  .portal-dialog .dialog-inner { padding: 0; }
  .portal-dialog .dialog-inner > .eyebrow, .portal-dialog .dialog-inner > h2, .portal-dialog .dialog-description { display: none; }
  .portal-content { display: block !important; }
  .portal-content > *:not(.print-area) { display: none !important; }
  .portal-content .print-area { display: block !important; }
  .print-area h2 { margin-bottom: 18px; font-family: var(--serif); font-weight: 500; }
  .print-area .ticket-card { break-inside: avoid; border: 1px solid #a99a88; margin-bottom: 9px; }
  .ticket-card strong, .ticket-card span { color: black; }
}

.user-menu-button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 0; padding: 0 4px; background: transparent; color: var(--brown); font-size: 10px; cursor: pointer; }
.user-menu-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.user-menu-button:hover { color: var(--rust); }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 9px; }
.button-weekly { min-height: 46px; border-color: #b89a6b; background: transparent; color: var(--brown); }
.button-weekly:hover { background: rgb(189 148 87 / 12%); }
.calendar-month-header { align-items: center; justify-content: space-between; }
.calendar-month-header > div > span { display: block; margin-top: 3px; }
.calendar-month-nav { display: flex; gap: 7px; }
.calendar-month-nav button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); background: var(--paper-light); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; }
.calendar-month-nav button:disabled { opacity: .4; cursor: default; }
.portal-calendar-months .calendar-day { background: #e4dfd7; color: #77716a; }
.portal-calendar-months .calendar-day.is-pickup { border-color: #d3cdc4; background: #e4dfd7; color: #77716a; }
.portal-calendar-months .calendar-day.is-pickup.has-ticket { border-color: #fff; background: #fff; color: #35281f; }
.portal-calendar-months .calendar-day.is-week-sold-out,
.portal-calendar-months .calendar-day.is-week-sold-out.has-ticket { border-color: #cbc6bf; background: #d5d1cb; color: #77716a; }
.portal-calendar-months .calendar-day.is-outside,
.portal-calendar-months .calendar-day.is-empty { background: transparent; }
.checkout-calendar .calendar-day { background: #e4dfd7; color: #77716a; }
.checkout-calendar .calendar-day.is-pickup { background: #e4dfd7; color: #77716a; }
.checkout-calendar .calendar-day.is-pickup.has-ticket { border-color: #fff; background: #fff; color: #35281f; }
.checkout-calendar .calendar-day.is-week-sold-out,
.checkout-calendar .calendar-day.is-week-sold-out.has-ticket { border-color: #cbc6bf; background: #d5d1cb; color: #77716a; }
.bag-dialog { width: min(680px, calc(100% - 28px)); }
.bag-dialog .dialog-inner { padding: 32px; }
.bag-content h3, .bag-calendar h3, .profile-preferences h3 { margin: 20px 0 9px; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.bag-checkout { width: 100%; margin: 4px 0 10px; }
.bag-calendar { margin-top: 23px; }
.bag-calendar .portal-calendar-months { grid-template-columns: minmax(0, 1fr); }
.bag-calendar .calendar-day { min-height: 47px; }
.bag-calendar .calendar-day.is-pickup { grid-template-rows: 1fr 3px 1fr; }
.bag-calendar .loaf-remaining { display: none; }
.weekly-dialog { width: min(530px, calc(100% - 28px)); }
.subscription-warning { margin: 0 0 12px; border-left: 2px solid var(--gold); padding: 10px 12px; background: var(--paper-deep); color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.weekly-estimate { margin: 12px 0 0; color: var(--olive); font-size: 11px; }
.closed-weeks-section { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 13px; }
.closed-weeks-section h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 15px; font-weight: 500; }
.closed-weeks-list { display: flex; flex-wrap: wrap; gap: 6px; }
.closed-weeks-list span { border: 1px solid var(--line); padding: 5px 8px; color: var(--muted); font-size: 9px; }
.notification-options { display: grid; gap: 6px; margin: 14px 0 2px; border: 1px solid var(--line); padding: 9px 11px 11px; }
.notification-options legend { padding: 0 5px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.app-dialog .notification-options .checkbox-label { display: flex; align-items: center; gap: 7px; margin: 3px 0; font-size: 10px; font-weight: 400; }
.app-dialog .notification-options input[type="checkbox"] { width: 14px; min-height: 14px; margin: 0; accent-color: var(--olive); }
.profile-preferences { margin: 17px 0; border: 1px solid var(--line); padding: 13px; }
.profile-preferences h3 { margin-top: 0; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.profile-fields label { display: flex; flex-direction: column; }
.profile-fields label:first-child, .profile-fields label:last-child { grid-column: 1 / -1; }
.profile-preferences input:not([type="checkbox"]) { min-height: 35px; }
.profile-preferences > .button { min-height: 36px; }
.upcoming-day-list { display: grid; gap: 7px; }
.upcoming-day { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); padding: 10px 12px; }
.upcoming-day strong { font-family: var(--serif); font-size: 12px; font-weight: 500; }
.upcoming-day span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.upcoming-more { margin-top: 8px; }
.past-orders { margin: 19px 0; border: 1px solid var(--line); padding: 11px 13px; }
.past-orders summary { display: flex; justify-content: space-between; color: var(--ink); font-family: var(--serif); font-size: 14px; cursor: pointer; list-style: none; }
.past-orders summary::-webkit-details-marker { display: none; }
.past-orders summary::after { content: "+"; color: var(--gold); }
.past-orders[open] summary::after { content: "−"; }
.past-orders summary span { color: var(--muted); font-family: var(--sans); font-size: 9px; }
.past-orders .portal-section-title { display: none; }
.print-area { display: none; }
.checkout-bar { isolation: isolate; overflow: hidden; }
.checkout-bar-copy, .checkout-open { position: relative; z-index: 1; }
.checkout-star { position: absolute; z-index: 0; color: #fff2c7; font-size: clamp(9px, 1.4vw, 15px); opacity: 0; pointer-events: none; animation: checkout-twinkle 2.8s ease-in-out infinite; }
@keyframes checkout-twinkle { 0%, 100% { opacity: 0; transform: scale(.65) rotate(-12deg); } 45%, 60% { opacity: .9; transform: scale(1) rotate(10deg); } }
.dark-mode .portal-calendar-months .calendar-day,
.dark-mode .checkout-calendar .calendar-day { border-color: #51483d; background: #39332c; color: #bdb1a4; }
.dark-mode .portal-calendar-months .calendar-day.is-pickup.has-ticket,
.dark-mode .checkout-calendar .calendar-day.is-pickup.has-ticket { border-color: #fff; background: #fff; color: #35281f; }
.dark-mode .portal-calendar-months .calendar-day.is-week-sold-out,
.dark-mode .portal-calendar-months .calendar-day.is-week-sold-out.has-ticket,
.dark-mode .checkout-calendar .calendar-day.is-week-sold-out,
.dark-mode .checkout-calendar .calendar-day.is-week-sold-out.has-ticket { border-color: #51483d; background: #39332c; color: #bdb1a4; }
.dark-mode .subscription-warning { background: #393129; }
@media (max-width: 680px) {
  .user-menu-button { gap: 3px; padding: 0 2px; font-size: 8px; }
  .user-menu-button svg { width: 16px; height: 16px; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-fields label { grid-column: 1 / -1; }
  .bag-dialog .dialog-inner { padding: 32px 19px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-bar-label, .checkout-star { animation: none; }
  .checkout-star { opacity: .45; }
}
.pickup-calendar .calendar-day.is-pickup.is-available {
  border-color: #fff;
  background: #fff;
  color: #32261f;
}
.pickup-calendar .calendar-day.is-pickup.is-sold-out,
.pickup-calendar .calendar-day.is-pickup.is-week-sold-out,
.pickup-calendar .calendar-day.is-pickup.is-blocked {
  border-color: #d3d0ca;
  background: #d8d6d1;
  color: #77736d;
}
.pickup-calendar .calendar-day[aria-disabled="true"] { opacity: 1; }
.checkout-bar {
  border-top-color: var(--line);
  background: #fff;
}
.checkout-bar-copy strong { color: #38281f; }
.checkout-bar-copy span { color: #74675e; }
.checkout-open {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: #d6b77d;
  color: #38281f;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
}
.checkout-open:hover { background: #c9a76b; }
.checkout-bar-label {
  position: relative;
  background: linear-gradient(100deg, #38281f 0%, #38281f 43%, #8c744f 48%, #fff4d9 50%, #8c744f 52%, #38281f 57%, #38281f 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: checkout-text-glow 7s ease-in-out infinite;
}
@keyframes checkout-text-glow {
  0%, 12% { background-position: 100% 0; }
  78%, 100% { background-position: 0 0; }
}
.weekly-products {
  display: grid;
  gap: 7px;
  margin: 0 0 5px;
  border: 1px solid var(--line);
  padding: 10px 12px 12px;
}
.weekly-products legend { padding: 0 5px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.weekly-products .weekly-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 9px 0 2px;
}
.weekly-product-row > span { display: flex; flex-direction: column; gap: 4px; }
.weekly-product-row strong { color: var(--ink); font-family: var(--serif); font-size: 12px; font-weight: 500; }
.weekly-product-row small { color: var(--muted); font-size: 9px; font-weight: 400; }
.weekly-products input[type="number"] { width: 66px; min-height: 36px; text-align: center; }
.weekly-preview { margin-top: 16px; border: 1px solid var(--line); padding: 11px 12px; }
.weekly-preview h3, .weekly-payment-step h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.weekly-order-preview { display: grid; gap: 7px; }
.weekly-order-preview > p, .weekly-capacity-note { margin: 0; color: var(--muted); font-size: 9px; }
.weekly-preview-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 10px; }
.weekly-preview-line strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.weekly-capacity-note { margin-top: 9px; }
.weekly-estimate { margin: 7px 0 0; font-family: var(--serif); font-size: 14px; font-weight: 600; }
.app-dialog .weekly-agreement { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; line-height: 1.6; }
.app-dialog .weekly-agreement input { width: 15px; min-height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--olive); }
.weekly-payment-step > p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.weekly-confirmation-summary { margin: 13px 0; border: 1px solid var(--line); padding: 11px; }
.weekly-confirmation-summary > p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.weekly-confirm-total { display: block; margin-top: 10px; font-family: var(--serif); font-size: 14px; }
#weekly-preview-save { width: 100%; margin-top: 9px; }
.weekly-back { display: block; margin: 10px auto 0; }
.dark-mode .checkout-bar { border-top-color: var(--line); background: #fff; }
.dark-mode .checkout-bar-copy strong { color: #38281f; }
.dark-mode .checkout-bar-copy span { color: #74675e; }
.dark-mode .pickup-calendar .calendar-day.is-pickup.is-available { border-color: #fff; background: #fff; color: #32261f; }
.dark-mode .pickup-calendar .calendar-day.is-pickup.is-sold-out,
.dark-mode .pickup-calendar .calendar-day.is-pickup.is-week-sold-out,
.dark-mode .pickup-calendar .calendar-day.is-pickup.is-blocked { border-color: #d3d0ca; background: #d8d6d1; color: #77736d; }
.dark-mode .checkout-open { background: #d6b77d; color: #38281f; }
.dark-mode .checkout-open:hover { background: #c9a76b; }
.dark-mode .weekly-products input[type="number"] { background: #342d26; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .checkout-bar-label { animation: none; background-position: 50% 0; }
}
.checkout-open {
  width: clamp(290px, 36vw, 460px);
  max-width: none;
}
@media (max-width: 680px) {
  .checkout-open {
    width: 76%;
    min-width: 0;
    max-width: none;
  }
}

/* Connected account and baker controls */
.footer-contact { color: inherit; font-size: 11px; overflow-wrap: anywhere; text-underline-offset: 3px; }
.opening-message { line-height: 1.8; }
.opening-card { padding: 38px 24px; border: 1px solid var(--line); background: var(--paper-light); text-align: center; }
.opening-card h3 { margin: 8px 0 16px; font-family: var(--serif); font-size: clamp(25px, 4vw, 38px); font-weight: 500; }
.opening-card p:not(.eyebrow) { max-width: 460px; margin: 0 auto 24px; color: var(--ink-soft); line-height: 1.8; }
.interest-honeypot { display: none; }
.interest-success { margin-top: 24px; padding: 18px; border: 1px solid var(--line); color: var(--olive); line-height: 1.8; }
.admin-services { margin-top: 2rem; border-top: 1px solid var(--line, #ddd); padding-top: 1.5rem; }
.admin-services h3 { margin: 1.5rem 0 .75rem; }
.admin-services p, .admin-services span { overflow-wrap: anywhere; }
.admin-services select { display: block; width: 100%; margin: .6rem 0 1rem; }
.baker-orders { max-height: 32rem; overflow-y: auto; }
.account-actions { display: flex; gap: 1.5rem; margin: 1rem 0; }
#verify-code { letter-spacing: .25em; font-size: 1.4rem; }
[hidden] { display: none !important; }
