/*
 * Gifts of the Holy Land: base design system.
 * Ultra-minimal: white / off-white, charcoal type, 1px lines, soft beige hover.
 * Mobile-first. Breakpoints: 480 (small), 640, 960, 1200.
 * Written to degrade gracefully on iPad Safari 12 (no flex `gap`, fallbacks for aspect-ratio and clamp()).
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-2: #3D3D3D;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --line-strong: #111111;
  --line-input: #8A8A8A;       /* form control borders: 3:1 against white (WCAG 1.4.11) */
  --accent: #EFEBE4;           /* soft beige, hover */
  --accent-2: #E5DFD5;
  --success: #2F5D3A;
  --error: #9B2C2C;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
  --dur-slow: 320ms;
  --gutter: 16px;
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 40px; } }

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }

[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: 2.5rem; font-size: clamp(2.5rem, 1.75rem + 3vw, 4rem); }
h2 { font-size: 2rem; font-size: clamp(2rem, 1.55rem + 1.9vw, 2.875rem); }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
strong, b { font-weight: 600; }
small { font-size: 0.9375rem; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--accent-2); color: var(--ink); }

/* Focus: always visible for keyboard users. Safari < 15.4 ignores the :focus-visible rule and keeps the ring. */
:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -200px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ==========================================================================
   3. Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--line { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .section { padding: 6rem 0; }
  .section--tight { padding: 3.5rem 0; }
}

.grid { display: grid; gap: 1.5rem; }
.grid--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1rem;
}
@media (min-width: 640px) { .grid--products { gap: 3rem 1.5rem; } }
@media (min-width: 960px) { .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3.5rem 1.75rem; } }

.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }

.muted { color: var(--muted); }
.center { text-align: center; }
.center-note { text-align: center; margin: 2rem 0 0; color: var(--ink-2); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; height: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0 1.5rem 0 0; }
.section-head--center {
  display: block;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center h2 { margin: 0; }
@media (min-width: 960px) { .section-head { margin-bottom: 3rem; } }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-link span { margin-left: 0.375rem; transition: transform var(--dur) var(--ease); }

.plain-links { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.plain-links a { display: inline-flex; align-items: center; min-height: 44px; }
.plain-links--columns { -webkit-columns: 2; columns: 2; -webkit-column-gap: 1.5rem; column-gap: 1.5rem; }

.breadcrumbs { font-size: 0.9375rem; color: var(--ink-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-block { display: flex; width: 100%; }

@media (hover: hover) {
  .btn-primary:hover { background: var(--accent); color: var(--ink); }
  .btn-secondary:hover, .btn-ghost:hover { background: var(--accent); }
  .text-link:hover span { transform: translateX(3px); }
}
.btn:active { transform: scale(0.98); }
.btn-primary:active { background: var(--accent-2); color: var(--ink); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.is-loading,
.btn.is-loading:hover { color: transparent !important; pointer-events: none; }
.btn.is-loading[disabled],
.btn.is-loading[aria-disabled="true"] { opacity: 1; cursor: progress; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: hl-spin 700ms linear infinite;
}
.btn-primary.is-loading::after { border-color: #fff; border-right-color: transparent; }
.btn-primary.is-loading, .btn-primary.is-loading:hover { background: var(--ink); }

@keyframes hl-spin { to { transform: rotate(360deg); } }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -0.375rem;
}
.btn-row > * { margin: 0.375rem; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) {
  .btn-row > .btn { flex: 1 1 100%; }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.link-btn:hover { color: var(--ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease);
}
@media (hover: hover) { .icon-btn:hover { background: var(--accent); } }

/* ==========================================================================
   5. Forms
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.field > label,
.field-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-2); }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem; /* >= 16px: no zoom on iOS */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #767676; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.select {
  padding-right: 2.75rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select::-ms-expand { display: none; }

.field-hint { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--ink-2); }
.field-error { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.has-error > label { color: var(--error); }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.checkbox {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0.1rem 0.75rem 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.inline-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
@media (min-width: 480px) {
  .inline-form { grid-template-columns: minmax(0, 1fr) auto; }
}

.form-note { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }

/* Sign-up forms (email + mobile phone). Fields stack; wide forms put them side by side. */
.signup-fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; }
.signup-fields .field { margin-bottom: 1rem; }
@media (min-width: 640px) {
  .signup-fields--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Email and SMS consent under the sign-up button: small but readable (15px, about 11:1 contrast). */
.sms-consent,
.email-consent { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.sms-consent a { color: var(--ink); }

/* One form, two steps in place. app.js sets data-signup-step="email" or "phone" on the form and
   CSS hides the other step's parts ([data-signup-only]). Without JavaScript the attribute is never
   set, so the email and mobile fields and both consents show together. */
.signup-form[data-signup-step="email"] [data-signup-only="phone"],
.signup-form[data-signup-step="phone"] [data-signup-only="email"] { display: none; }
.signup-form[data-signup-step] .signup-fields { grid-template-columns: minmax(0, 1fr); }
/* The email from the first step, with "Change" (a 44px tap target) to go back to it. */
.signup-recap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -0.25rem 0 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.signup-recap-email { min-width: 0; margin-right: 0.75rem; word-break: break-word; overflow-wrap: anywhere; }
.signup-change { color: var(--ink); }
/* The step change: the form's height follows the new content while it fades in (under 250ms). */
.signup-form.is-stepping { overflow: hidden; transition: height 200ms var(--ease); }
.signup-form.is-stepping [data-signup-only] { -webkit-animation: hl-fade 200ms var(--ease) both; animation: hl-fade 200ms var(--ease) both; }

/* Cloudflare Turnstile bot check (only when a site key is set). It stays invisible unless a
   person must tick it; app.js adds .is-active then. max-width keeps a 300px widget from
   widening the page on very small phones. */
.turnstile-slot { max-width: 100%; overflow-x: auto; }
.turnstile-slot:empty { display: none; }
.turnstile-slot.is-active { margin: 0 0 1rem; }

.form-status {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Spam honeypot: off-screen, never visible or focusable. */
/* Spam honeypot. display:none (not off-screen) so browser autofill never fills it for real customers. */
.hp-field {
  display: none !important;
}

input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   6. Announcement bar
   ========================================================================== */
.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.announcement-text {
  margin: 0;
  padding: 0.5rem var(--gutter);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.announcement-text > span { display: inline-block; }
.announcement-sep { margin: 0 0.625rem; opacity: 0.7; }
@media (max-width: 639px) {
  /* Two tidy lines on phones: shipping first, then the bundle savings. */
  .announcement-text > span:first-child { display: block; }
  .announcement-text > .announcement-sep:nth-child(2) { display: none; }
}

/* ==========================================================================
   7. Header & navigation
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 250, 0.97); }

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
}
.header-start { display: flex; align-items: center; justify-self: start; margin-left: -10px; }
.header-end { display: flex; align-items: center; justify-self: end; margin-right: -10px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
}
.wordmark-mark { width: 26px; height: 26px; margin-right: 0.5rem; flex: none; }
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (max-width: 359px) {
  .wordmark-text { font-size: 1.0625rem; }
  .wordmark-mark { display: none; }
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease);
}
@media (hover: hover) { .header-action:hover { background: var(--accent); } }
.header-action-label { display: none; margin-left: 0.5rem; }
.header-search { display: none; }

.cart-count {
  position: absolute;
  top: 3px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.cart-count.is-bumped { transform: scale(1.18); }

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav { display: none; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.25rem var(--gutter) 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.mobile-nav-list--secondary { margin-top: 1rem; }
.mobile-nav-link--small {
  min-height: 48px;
  border-bottom: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-2);
}
.mobile-nav-contact { margin: 1rem 0 0; font-size: 1rem; color: var(--ink-2); overflow-wrap: anywhere; }

@media (min-width: 960px) {
  .header-bar { min-height: 84px; }
  .wordmark-text { font-size: 1.75rem; }
  .wordmark-mark { width: 32px; height: 32px; margin-right: 0.75rem; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-start, .header-end { margin: 0 -10px; }
  .header-search { display: inline-flex; }
  .header-action-label { display: inline; }
  .cart-count { position: static; margin-left: 0.5rem; }
  .primary-nav { display: block; border-top: 1px solid var(--line); }
  .nav-list { display: flex; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 1200px) {
  .nav-link { padding: 0 1.125rem; }
  .nav-link::after { left: 1.125rem; right: 1.125rem; }
}

/* Lock page scroll while the drawer or menu is open */
html.is-locked, html.is-locked body { overflow: hidden; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.footer-brand { grid-column: 1 / -1; max-width: 30rem; }
.footer-tagline { margin: 1rem 0 1.75rem; color: var(--ink-2); }
.footer-newsletter-label { margin: 0; font-weight: 500; line-height: 1.4; }
.footer-newsletter-note { margin: 0.25rem 0 1rem; }
.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-email { margin: 1.25rem 0 0; overflow-wrap: anywhere; }
.footer-email-label { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.footer-email a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.footer-bottom p { margin: 0.25rem 1.5rem 0.25rem 0; }
.footer-secure { display: inline-flex; align-items: center; }
.footer-secure .icon { margin-right: 0.5rem; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .site-footer { padding: 5rem 0 2.5rem; }
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

/* ==========================================================================
   9. Cart drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(17, 17, 17, 0.28);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(17, 17, 17, 0.04);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease), visibility 0s linear 0s;
}
.drawer:focus { outline: none; }

.drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer-title { margin: 0; font-size: 1.75rem; }
.drawer-count { font-family: var(--sans); font-size: 1rem; color: var(--ink-2); }
.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 1.5rem 1.5rem;
}
.drawer-foot {
  flex: none;
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.drawer-foot .totals-row { padding: 0.25rem 0; }
.drawer-foot .totals-note { margin: 0.5rem 0 0; }
.drawer-note { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.drawer-actions { margin-top: 1rem; }
.drawer-actions .btn + .btn { margin-top: 0.625rem; }
.drawer-body .ladder-progress { margin-top: 1.5rem; }

/* Short screens (phones in landscape, small laptops): scroll the whole drawer as one column. */
@media (max-height: 640px) {
  .drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .drawer-body { flex: none; overflow: visible; }
}
/* With the "Checkout opens soon" sign-up showing (app.js adds .has-preview), do the same at any
   height so the email, phone and consent text can always be reached. */
.drawer.has-preview { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.drawer.has-preview .drawer-body { flex: 1 0 auto; overflow: visible; }

/* ==========================================================================
   10. Product card & media
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-media {
  position: relative;
  display: block;
  margin-bottom: 0.875rem;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
}
.card-media .badge { position: absolute; top: 0.625rem; left: 0.625rem; }
.card-dims {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.card-title {
  margin: 0 0 0.375rem;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.25;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-price { margin: 0 0 1rem; font-size: 1rem; }
.card-add {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease);
}
@media (hover: hover) { .card-add:hover { background: var(--accent); } }
.card-add:active,
.card-add.is-pressed { transform: scale(0.97); background: var(--accent-2); }
.card-add.is-added { background: var(--ink); color: #fff; }
.card-add[disabled] {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-was { margin-left: 0.25rem; color: var(--ink-2); font-weight: 400; }

/* Illustrated media: tone background, motif centred at ~70% width, 4:5 frame. */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tone, #F1EEE9);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
@supports not (aspect-ratio: 1 / 1) {
  .media::before { content: ""; display: block; padding-top: 125%; }
}
.media > img {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: auto;
  margin-top: -35%; /* half the (square) image height, relative to the frame width */
  transition: transform var(--dur-slow) var(--ease);
}
.media--detail > img { left: -13%; width: 126%; margin-top: -63%; } /* ~1.8x zoom */
.media--scale > img { left: 22%; width: 56%; margin-top: -28%; }
.media--photo { background: var(--accent); }
.media--photo > img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

@media (hover: hover) {
  .card:hover .media > img { transform: scale(1.03); }
}
.card:focus-within .media > img { transform: scale(1.03); }

/* Dimension lines on the scale view */
.dim {
  position: absolute;
  color: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.dim::before { content: ""; position: absolute; background: currentColor; }
.dim > span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.125rem 0.375rem;
  background: var(--tone, #F1EEE9);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.dim-w {
  left: 22%;
  right: 22%;
  bottom: 9%;
  height: 11px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.dim-w::before { left: 0; right: 0; top: 5px; height: 1px; }
.dim-h {
  top: 27.6%;
  bottom: 27.6%;
  right: 7%;
  width: 11px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.dim-h::before { top: 0; bottom: 0; left: 5px; width: 1px; }
.dim-h > span { transform: translate(-50%, -50%) rotate(-90deg); }

/* ==========================================================================
   11. Commerce primitives: qty, chips, ladder, progress, totals, cart lines
   ========================================================================== */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  background: var(--surface);
}
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease);
}
@media (hover: hover) { .qty-btn:hover { background: var(--accent); } }
.qty-btn:active { background: var(--accent-2); }
.qty-btn[disabled] { color: #A8A8A8; background: transparent; cursor: not-allowed; }
.qty-input {
  width: 56px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: textfield;
}
.qty-input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.qty--sm .qty-btn { width: 44px; min-height: 44px; font-size: 1.125rem; }
.qty--sm .qty-input { width: 44px; min-height: 44px; font-size: 1rem; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 1.125rem;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) { .chip:hover { background: var(--accent); border-color: var(--ink); } }
.chip[aria-pressed="true"],
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Discount ladder */
.ladder {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.ladder-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.375rem;
  border-left: 1px solid var(--line-strong);
  text-align: center;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}
.ladder-step:first-child { border-left: 0; }
.ladder-qty {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--dur-slow) var(--ease);
}
.ladder-off {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}
.ladder-step.is-reached { background: var(--accent); }
.ladder-step.is-active { background: var(--ink); color: #fff; }
.ladder-step.is-active .ladder-qty { color: #fff; }

.ladder-progress { margin: 1.25rem 0; }
.ladder-msg { margin: 0 0 0.75rem; font-size: 1rem; line-height: 1.5; }
.progress {
  height: 3px;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.progress-bar {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width var(--dur-slow) var(--ease);
}

/* Totals */
.totals { margin: 0; }
.totals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.375rem 0;
}
.totals-row dt { margin-right: 1rem; color: var(--ink-2); }
.totals-row dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals-row--saving dt,
.totals-row--saving dd { color: var(--success); }
.totals-row--total {
  margin-top: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
}
.totals-row--total dt { color: var(--ink); font-weight: 600; }
.totals-row--total dd { font-weight: 600; }
.totals-note { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--ink-2); }

/* Cart lines */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-lines--compact .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 0.875rem; }
.cart-line-media { display: block; text-decoration: none; }
.cart-line-info { min-width: 0; }
.cart-line-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}
.cart-line-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-line-dims { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.cart-line-price { margin: 0.25rem 0 0.75rem; font-size: 0.9375rem; color: var(--ink-2); }
.cart-line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  text-align: right;
}
.cart-line-total { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-line.is-removing { opacity: 0; transition: opacity var(--dur) var(--ease); }
@media (min-width: 640px) {
  .cart-lines:not(.cart-lines--compact) .cart-line { grid-template-columns: 128px minmax(0, 1fr) auto; gap: 1.5rem; }
}

.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.3;
}

/* ==========================================================================
   12. Toast, accordion, popup
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 90;
  max-width: calc(100% - 2rem);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.accordion-group { border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion.is-animating { overflow: hidden; transition: height var(--dur-slow) var(--ease); }
.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 1rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::marker { content: ""; }
.accordion > summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: 1.25rem;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 14px 1.5px, 1.5px 14px;
  transition: background-size var(--dur) var(--ease);
}
.accordion[open] > summary::after { background-size: 14px 1.5px, 1.5px 0; }
.accordion.is-closing > summary::after { background-size: 14px 1.5px, 1.5px 14px; }
@media (hover: hover) {
  .accordion > summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
.accordion-body { padding: 0 2.25rem 1.25rem 0; color: var(--ink-2); }
.accordion-body > :last-child { margin-bottom: 0; }

.popup {
  position: fixed;
  z-index: 55; /* under the cart drawer (60/61) */
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: 420px;
  /* Email, phone and the SMS consent make it taller than a small phone: scroll inside. */
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-left: auto;
  padding: 2rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.popup.is-open { opacity: 1; transform: none; }
.popup-close { position: absolute; top: 0.5rem; right: 0.5rem; }
.popup-title { margin: 0 2rem 0.5rem 0; font-size: 1.875rem; line-height: 1.15; }
.popup-text { margin: 0 0 1rem; font-size: 1rem; color: var(--ink-2); }
.popup-form .field { margin-bottom: 0.75rem; }
.popup-decline { display: flex; margin: 0.25rem auto 0; }
@supports (max-height: 100dvh) {
  .popup { max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px)); }
}

/* After a successful sign-up, the confirmation message replaces the inputs. */
.signup-form.is-done .signup-fields,
.signup-form.is-done .turnstile-slot,
.signup-form.is-done [type="submit"],
.signup-form.is-done .sms-consent,
.signup-form.is-done .email-consent,
.signup-form.is-done .form-note { display: none; }
@media (min-width: 640px) {
  .popup { left: auto; right: 1.5rem; bottom: 1.5rem; width: 400px; max-height: calc(100vh - 3rem); padding: 2.25rem 2rem 1.25rem; }
}
@supports (max-height: 100dvh) {
  @media (min-width: 640px) { .popup { max-height: calc(100dvh - 3rem); } }
}

/* ==========================================================================
   13. Home page
   ========================================================================== */
.hero { padding: 2.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-title {
  margin: 0.25rem 0 1.25rem;
  max-width: 12ch;
  font-size: 2.875rem;
  font-size: clamp(2.875rem, 1.9rem + 4.2vw, 5.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.hero-lead { max-width: 36rem; margin: 0 0 2rem; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--accent);
}
.hero-media img { width: 100%; max-width: 480px; }
@media (min-width: 960px) {
  .hero { padding: 4rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4.5rem; }
  .hero-title { font-weight: 300; }
  .hero-lead { font-size: 1.25rem; }
  .hero-media { min-height: 540px; padding: 3rem; }
}

.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 0.5rem 1.25rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.trust-icon { margin-right: 0.75rem; }
@media (min-width: 960px) {
  .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-item { justify-content: center; padding: 1.5rem 1rem; border-left: 1px solid var(--line); font-size: 1rem; }
  .trust-item:first-child { border-left: 0; }
}

/* Category tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
}
.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.tile--wide { grid-column: 1 / -1; }
.tile-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tone, var(--accent));
  aspect-ratio: 1 / 1;
}
.tile--wide .tile-media { aspect-ratio: 16 / 10; }
.tile-media img {
  width: auto;
  height: 72%;
  max-width: 80%;
  transition: transform var(--dur-slow) var(--ease);
}
@supports not (aspect-ratio: 1 / 1) {
  .tile-media { height: 200px; }
  .tile--wide .tile-media { height: 240px; }
}
.tile-body { display: block; padding-top: 0.875rem; }
.tile-name { margin: 0 0 0.25rem; font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.tile-blurb { display: block; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.tile-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .tile:hover .tile-media img { transform: scale(1.03); }
  .tile:hover .tile-cta { text-decoration-color: currentColor; }
}
.tile:focus-visible .tile-cta { text-decoration-color: currentColor; }
@media (min-width: 960px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3rem 1.5rem; }
  .tile { grid-column: span 2; }
  .tile--wide, .tile:nth-child(2) { grid-column: span 3; }
  .tile--wide .tile-media, .tile:nth-child(2) .tile-media { aspect-ratio: 4 / 3; }
  .tile-name { font-size: 1.75rem; }
}
@media (min-width: 960px) {
  @supports not (aspect-ratio: 1 / 1) {
    .tile-media { height: 280px; }
    .tile--wide .tile-media, .tile:nth-child(2) .tile-media { height: 320px; }
  }
}

/* Beige band (discount ladder, calls to action) */
.band { background: var(--accent); }
.band-inner { text-align: center; }
.band .ladder { max-width: 560px; margin: 2rem auto 1.25rem; }
.band .ladder-step { padding: 1.125rem 0.5rem; }
.band .ladder-step.is-reached { background: var(--accent-2); }
.band .ladder-off { font-size: 1.75rem; }
.band-note { margin: 0 auto 1.75rem; max-width: 34rem; color: var(--ink-2); }
@media (min-width: 640px) { .band .ladder-off { font-size: 2.125rem; } }

/* Split: image + text */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent);
  aspect-ratio: 4 / 3;
}
.split-media img { width: auto; height: 68%; max-width: 70%; }
@supports not (aspect-ratio: 1 / 1) { .split-media { height: 300px; } }
.split-copy > :last-child { margin-bottom: 0; }
.split-copy p { color: var(--ink-2); }
.split-copy .btn { margin-top: 0.75rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
  .split-media { aspect-ratio: 1 / 1; }
}

/* Values */
.values-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.value-icon { width: 32px; height: 32px; margin-bottom: 1rem; }
.value-title { margin: 0 0 0.5rem; font-size: 1.5rem; }
.value p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .values-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .values-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Newsletter */
.newsletter { background: var(--surface); border-top: 1px solid var(--line); }
.newsletter-inner { text-align: center; }
.newsletter-title { margin-bottom: 0.75rem; }
.newsletter-steps {
  max-width: 30rem;
  margin: 1.75rem auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.newsletter-steps li { display: flex; align-items: flex-start; padding: 0.375rem 0; color: var(--ink-2); }
.newsletter-step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 0.875rem 0 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.newsletter-form { max-width: 34rem; margin: 0 auto; text-align: left; }
.newsletter-inner .form-note { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   14. Content pages
   ========================================================================== */
.page-hero { padding: 3rem 0 2.25rem; border-bottom: 1px solid var(--line); }
.page-title {
  margin: 0.25rem 0 1rem;
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 1.75rem + 3vw, 3.75rem);
  line-height: 1.08;
}
.page-hero .lead { margin-bottom: 0; }
.policy-updated { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
@media (min-width: 960px) { .page-hero { padding: 5rem 0 3rem; } }

.prose { color: var(--ink-2); }
.prose h2 { margin: 2.25em 0 0.5em; font-size: 1.875rem; color: var(--ink); }
.prose h3 {
  margin: 1.75em 0 0.5em;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.prose > :first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.375rem; }
.prose li { margin-bottom: 0.5em; padding-left: 0.25rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); }
@media (hover: hover) { .prose a:hover { background: var(--accent); } }
@media (min-width: 960px) {
  .prose { font-size: 1.125rem; }
  .prose h2 { font-size: 2.125rem; }
}
.policy h2 { scroll-margin-top: 150px; }

.callout {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.prose .callout-title,
.callout-title {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.table-wrap { margin: 0 0 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 1rem; }
.table th, .table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.table tbody th { font-weight: 600; color: var(--ink); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* About */
.craft-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.craft { padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.craft-title { margin: 0 0 0.5rem; font-size: 1.625rem; }
.craft p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } .craft { padding: 2.25rem 2rem; } }

.process { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process-step { display: flex; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.process-num {
  flex: none;
  width: 3.25rem;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}
.process-title { margin: 0 0 0.25rem; font-size: 1.5rem; }
.process-step p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.contact-aside { padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-block + .contact-block { margin-top: 2rem; }
.contact-block p { margin-bottom: 0.5rem; color: var(--ink-2); }
.contact-heading {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-email { font-size: 1.125rem; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
  .contact-aside { padding: 0 0 0 3rem; border-top: 0; border-left: 1px solid var(--line); }
}

/* FAQ page */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group-title { margin-bottom: 1rem; font-size: 1.875rem; }

/* Status pages: 404, error, thank-you */
.status-page { min-height: 55vh; }
.status-card { max-width: 40rem; margin: 0 auto; }
.status-title {
  margin: 0.25rem 0 1rem;
  font-size: 2.25rem;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.1;
}
.status-card > p { color: var(--ink-2); }
.status-card > .lead { color: var(--ink-2); }
.status-card .btn-row { margin-top: 1.25rem; }
.status-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.status-subtitle { font-size: 1.75rem; }
.status-facts { list-style: none; margin: 1.5rem 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.status-facts li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.status-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55em;
  width: 9px;
  height: 1px;
  background: var(--ink);
}

.code-box {
  margin: 2rem 0;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.code-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.code-value {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.code-copy { min-width: 180px; }
.code-copy.is-copied { background: var(--ink); color: #fff; }
@media (min-width: 640px) { .code-value { font-size: 3rem; } .code-box { padding: 2.25rem 2rem; } }

/* ==========================================================================
   15. Motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  /* Gentle stagger across a row of cards / tiles / values */
  .grid > .reveal:nth-child(4n + 2), .tiles > .reveal:nth-child(3n + 2), .values-grid > .reveal:nth-child(2) { transition-delay: 60ms; }
  .grid > .reveal:nth-child(4n + 3), .tiles > .reveal:nth-child(3n + 3), .values-grid > .reveal:nth-child(3) { transition-delay: 120ms; }
  .grid > .reveal:nth-child(4n + 4), .values-grid > .reveal:nth-child(4) { transition-delay: 180ms; }

  .hero-copy > * { -webkit-animation: hl-fade-up 350ms var(--ease) both; animation: hl-fade-up 350ms var(--ease) both; }
  .hero-copy > :nth-child(2) { -webkit-animation-delay: 60ms; animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { -webkit-animation-delay: 120ms; animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { -webkit-animation-delay: 180ms; animation-delay: 180ms; }
  .hero-media { -webkit-animation: hl-fade 350ms var(--ease) 120ms both; animation: hl-fade 350ms var(--ease) 120ms both; }
}

@-webkit-keyframes hl-fade-up { from { opacity: 0; -webkit-transform: translateY(12px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes hl-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes hl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hl-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   16. Print
   ========================================================================== */
@media print {
  .announcement, .site-header, .site-footer, .drawer, .drawer-backdrop, .popup, .toast, .skip-link { display: none !important; }
  body { background: #fff; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
