/* Layout: editorial single column, full-width bands, 1240px content well.
   Tokens: Day = Warm California · Night = Lomito After Dark. */
:root {
  --bg: #F7F3EE;
  --surface: #FFFFFF;
  --surface-2: #EFE8E0;
  --text: #211A1B;
  --muted: #5E5355;
  --heading: #721322;
  --brand: #A61D30;
  --on-brand: #F7F3EE;
  --brand-text: #A61D30;
  --border: #E2D9CF;
  --focus: #721322;
  --photo-veil: rgba(33, 26, 27, 0);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --well: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211A1B; --surface: #362B2D; --surface-2: #2B2223; --text: #F7F3EE; --muted: #BBAFA9;
    --heading: #F7F3EE; --brand: #A61D30; --on-brand: #F7F3EE; --brand-text: #EA7A86; --border: #4A3D3F;
    --focus: #EA7A86; --photo-veil: rgba(33, 26, 27, 0.18); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-day { display: none; }
  :root:not([data-theme="light"]) .logo-night { display: block; }
}
:root[data-theme="dark"] {
  --bg: #211A1B; --surface: #362B2D; --surface-2: #2B2223; --text: #F7F3EE; --muted: #BBAFA9;
  --heading: #F7F3EE; --brand: #A61D30; --on-brand: #F7F3EE; --brand-text: #EA7A86; --border: #4A3D3F;
  --focus: #EA7A86; --photo-veil: rgba(33, 26, 27, 0.18); color-scheme: dark;
}
:root[data-theme="dark"] .logo-day { display: none; }
:root[data-theme="dark"] .logo-night { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
section[id] { scroll-margin-top: 84px; }

.well {
  max-width: var(--well); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { background: var(--surface-2); border-block: 1px solid var(--border); }
.band-red {
  background-color: var(--brand); color: var(--on-brand);
  background-image: linear-gradient(rgba(247,243,238,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(247,243,238,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.pad { padding-block: 88px; }

/* Type */
.eyebrow { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-text); }
.band-red .eyebrow, .on-red { color: var(--on-brand); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--heading); text-wrap: balance; }
.band-red h2, .band-red h3, .tj h3 { color: var(--on-brand); }
h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.lead { margin: 0; font-size: 18px; font-weight: 300; max-width: 34em; }
.body { margin: 0; color: var(--muted); max-width: 40em; }
.small { margin: 0; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.label-caps { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 500 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-light { background: var(--on-brand); color: #721322; border-color: var(--on-brand); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 16px 28px; padding-block: 10px; }
.brand { flex: none; display: flex; }
.logo { height: 56px; width: auto; }
.logo-night { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 auto; }
.nav a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--brand-text); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--border); background: var(--surface); }
.seg button {
  min-width: 44px; min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--text);
  font: 500 11px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: pointer;
}
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.menu-btn { display: none; }
.mobile-nav { display: flex; flex-direction: column; padding-bottom: 16px; border-top: 1px solid var(--border); }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 16px; border-bottom: 0; }
@media (max-width: 960px) {
  .nav, .cta-desk { display: none; }
  .menu-btn { display: inline-flex; }
  .logo { height: 44px; }
}
@media (min-width: 961px) { .mobile-nav { display: none !important; } }
@media (max-width: 380px) { .logo { height: 38px; } .seg button { min-width: 40px; padding: 0 8px; } }

/* Hero */
.hero { padding-block: 56px 80px; }
.hero figure { margin: 0; position: relative; }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--photo-veil); pointer-events: none; }
figcaption { margin-top: 12px; }

/* Experiences */
.exp-row { display: flex; flex-direction: column; gap: 10px; padding-block: 28px; border-top: 1px solid var(--border); }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Beverage Lab */
.lab-grid, .tiers, .products, .pillars { display: grid; gap: 16px; }
.lab-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lab-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid rgba(247,243,238,0.45); background: rgba(33,26,27,0.18); color: var(--on-brand); }
.lab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lab-card .n { font-size: 13px; font-weight: 300; letter-spacing: 0.2em; }
.lab-card .name { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; }
.band-red .lab-ritual { font-size: clamp(28px, 3vw, 36px); color: var(--on-brand); }
.pair { margin: 0; display: flex; flex-direction: column; }
.pair > div { padding-block: 12px; border-top: 1px solid rgba(247,243,238,0.3); }
.pair dt { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.pair dd { margin: 0; font-size: 15px; line-height: 1.55; }
.lab-lead { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--on-brand); max-width: 34em; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: step; }
.lab-steps li {
  counter-increment: step; display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-brand);
}
.lab-steps li::before { content: counter(step, decimal-leading-zero); font-weight: 300; opacity: 0.8; }
.lab-steps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: rgba(247,243,238,0.5); margin-inline: 14px; }
@media (max-width: 640px) {
  .lab-steps { flex-direction: column; }
  .lab-steps li:not(:last-child)::after { display: none; }
}
.lab-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.lab-photos figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lab-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(247,243,238,0.35); }
.lab-photos figcaption { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-brand); opacity: 0.9; }
.band-red .menu-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--on-brand); max-width: 26em; }
.rituals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ritual-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid rgba(247,243,238,0.45); background: rgba(33,26,27,0.18); color: var(--on-brand); min-width: 0; }
.ritual-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ritual-head .n { font-size: 13px; font-weight: 300; letter-spacing: 0.2em; }
.ritual-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; padding: 5px 10px; border: 1px solid rgba(247,243,238,0.6); }
.band-red .ritual-name { font-size: clamp(26px, 2.6vw, 32px); color: var(--on-brand); }
.ritual-card .together { background: rgba(247,243,238,0.1); padding-inline: 12px; margin-inline: -12px; }
.ritual-price { margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(247,243,238,0.3); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; }
.menu-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 48px; }
.menu-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.band-red .menu-col-title { font-size: 26px; color: var(--on-brand); padding-bottom: 8px; }
.menu-items { list-style: none; margin: 0; padding: 0; color: var(--on-brand); }
.menu-items li { display: flex; flex-direction: column; gap: 4px; padding-block: 14px; border-top: 1px solid rgba(247,243,238,0.3); }
.mi-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.mi-name { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.mi-price { font-size: 12px; letter-spacing: 0.08em; opacity: 0.9; white-space: nowrap; }
.mi-desc { font-size: 15px; line-height: 1.5; }
.lab-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--on-brand); opacity: 0.9; max-width: 48em; }

/* Lomito Station */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.st-steps li { display: flex; flex-direction: column; gap: 8px; padding-block: 22px; border-top: 1px solid var(--border); min-width: 0; }
.st-n { font-size: 12px; letter-spacing: 0.2em; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.st-t { font-family: var(--font-display); font-size: 24px; color: var(--heading); }
.st-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.st-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { padding-block: 12px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.st-photo { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.st-photo h3, .st-photo .body, .st-photo .small { color: var(--on-brand); }
.stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.stamps .pill {
  border: 1px dashed rgba(247,243,238,0.75); color: var(--on-brand);
  padding: 8px 12px; transform: rotate(-1.5deg);
}
.stamps .pill:nth-child(even) { transform: rotate(1.5deg); }

/* Membership */
.tiers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--border); }
.tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tier li { font-size: 15px; line-height: 1.5; padding-block: 10px; border-top: 1px solid var(--border); }
.tier .price { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }
.tier .btn { margin-top: auto; }
.tier.featured { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tier.featured h3, .tier.featured .eyebrow { color: var(--on-brand); }
.tier.featured li { border-color: rgba(247,243,238,0.35); }
.pillars { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 24px; }
.pillar { display: flex; flex-direction: column; gap: 8px; padding-block: 22px; border-top: 1px solid var(--border); }
.pillar .t { font-family: var(--font-display); font-size: 24px; color: var(--heading); }

/* Wellness */
.products { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.product { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--border); }
.product h3 { font-size: 24px; }
.product .foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.member-price { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-text); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--border); }
.wellness-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Founder wall */
.wall { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.wall div {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--border); background: var(--bg);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) { .wall div { font-size: 8px; } }

/* Locations */
.locs { display: flex; flex-wrap: wrap; gap: 40px; }
.tj { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 36px; background: var(--brand); color: var(--on-brand); }
.tj .pill { border-color: rgba(247,243,238,0.6); }
.sd { flex: 1.4 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.spot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-block: 18px; border-top: 1px solid var(--border); }
.spot .name { flex: 1 1 auto; font-family: var(--font-display); font-size: 26px; color: var(--heading); }

/* Forms */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); background: var(--surface); width: fit-content; max-width: 100%; }
.tabs button {
  min-height: 48px; padding: 0 20px; border: 0; background: transparent; color: var(--text); cursor: pointer;
  font: 500 11px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.form-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border); }
.form-intro { display: flex; flex-direction: column; gap: 8px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 16px var(--font-body);
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 0;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fieldset legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-size: 22px; color: var(--heading); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: #A61D30; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 14px 16px; border: 1px solid var(--border); font-size: 14px; }
.status[data-kind="ok"] { border-color: var(--brand); }
.status[data-kind="error"] { border-color: var(--brand); color: var(--brand-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.foot-logo { height: 72px; width: auto; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal a { font-size: 12px; color: var(--muted); }

/* Station gallery */
.st-gallery { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: center; }
.st-main { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.st-main img { width: 100%; aspect-ratio: 594 / 642; object-fit: cover; border: 1px solid var(--border); }
.st-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow: hidden; padding-block: 12px; }
.postcards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 18px 9% 18px; }
.postcard {
  margin: 0 -6%; background: #FBF9F6; padding: 8px 8px 0; display: flex; flex-direction: column;
  box-shadow: 0 10px 24px rgba(33, 26, 27, 0.18), 0 1px 2px rgba(33, 26, 27, 0.12);
}
.postcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.postcard figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 2px 12px;
  font-size: 9px; letter-spacing: 0.22em; color: #721322;
}
.pc-stamp { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; color: #A61D30; border: 1px solid #A61D30; padding: 2px 6px; transform: rotate(-4deg); white-space: nowrap; }
.pc-1 { transform: rotate(-5deg) translateY(10px); z-index: 1; }
.pc-2 { transform: rotate(1deg); z-index: 3; }
.pc-3 { transform: rotate(6deg) translateY(14px); z-index: 2; }
@media (max-width: 760px) {
  .st-gallery { grid-template-columns: 1fr; }
  .st-main { max-width: 300px; }
  .postcard figcaption > span:first-child { display: none; }
  .postcard figcaption { justify-content: center; }
}

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fmt { display: flex; flex-direction: column; gap: 10px; padding: 0 0 20px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.fmt > *:not(.fmt-img) { padding-inline: 20px; }
.fmt-img { overflow: hidden; }
.fmt-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fmt-img-plain img { object-position: center 30%; }
.fmt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 6px; }
.fmt-head h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--heading); }
.fmt-head .tag { font-variant-numeric: tabular-nums; }

/* Price blocks */
.price-block { display: flex; flex-direction: column; gap: 6px; }
.price-row { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.price-row .amt { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.price-row .per { font-size: 13px; }
.price-row .loc { margin-left: auto; font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.price-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; opacity: 0.9; }

button, .btn, .seg button, .icon-btn, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: rgba(166, 29, 48, 0.2); cursor: pointer; }
.tools { position: relative; z-index: 2; }
.seg button span, .icon-btn svg { pointer-events: none; }
