/* ==========================================================================
   Two Sixes — site components
   Header, footer, cards, overlays and page-level layouts.
   ========================================================================== */

/* ==========================================================================
   Brand mark  (TEMPORARY identity — see README)
   ========================================================================== */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.logo__badge {
  width: 2.5rem;
  height: auto;
  flex: none;
  color: inherit;
}

.logo__plate { fill: var(--logo-plate, transparent); stroke: currentColor; stroke-width: 4; }
.logo__rule { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.5; }
.logo__hair { stroke: currentColor; stroke-width: 2; opacity: 0.55; }
.logo__road { stroke: var(--logo-accent, currentColor); stroke-width: 3; stroke-linecap: round; }
.logo__spark { fill: var(--logo-accent, currentColor); }

.logo__badge text {
  font-family: var(--font-display);
  fill: currentColor;
}
.logo__top { font-size: 15px; letter-spacing: 1.4px; font-weight: 700; }
.logo__figure { font-size: 46px; font-weight: 700; letter-spacing: -1px; }
.logo__bottom { font-size: 9.5px; letter-spacing: 2.4px; }

.logo__type { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Small phones: shrink the lockup rather than let the wordmark wrap. */
@media (max-width: 30em) {
  .site-header__brand .logo { gap: 0.5rem; }
  .site-header__brand .logo__badge { width: 2.1rem; }
  .site-header__brand .logo__name { font-size: 1.05rem; letter-spacing: 0.07em; }
  .site-header__brand .logo__sub { display: none; }
}

.logo__sub {
  margin-top: 0.28rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.72;
}

.logo--stacked { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.logo--stacked .logo__badge { width: 4rem; }
.logo--stacked .logo__name { font-size: 1.55rem; }

.logo--badge .logo__badge { width: 3.25rem; }
.logo--sm .logo__badge { width: 2rem; }
.logo--sm .logo__name { font-size: 1.05rem; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.announce {
  background: var(--c-ink);
  color: var(--text-invert);
  font-size: var(--fs-xs);
}

.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  min-height: 2.5rem;
  padding-block: 0.4rem;
  text-align: center;
}

.announce__icon { width: 1rem; height: 1rem; color: var(--c-gold); }

.announce__text { letter-spacing: 0.05em; }
.announce__text strong { font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-wide); }
.announce__detail { color: var(--text-invert-soft); }

.announce__link {
  color: var(--c-gold);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--c-gold) 50%, transparent);
  white-space: nowrap;
}
.announce__link:hover { text-decoration-color: currentColor; }

@media (max-width: 32em) {
  .announce__detail { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

/* Very small phones: buy back horizontal room without shrinking the 44px
   touch targets in the header. */
@media (max-width: 26em) {
  .site-header__inner { gap: 0.4rem; padding-inline: 0.875rem; }
}

.site-header__brand {
  display: inline-flex;
  text-decoration: none;
  margin-right: auto;
  padding: 0.25rem;
  border-radius: var(--r-sm);
}

/* Transparent-over-hero state, used on the homepage until the page scrolls. */
.site-header[data-variant="transparent"]:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--text-invert);
}
.site-header[data-variant="transparent"]:not(.is-scrolled) .site-nav__link { color: var(--text-invert); }
.site-header[data-variant="transparent"]:not(.is-scrolled) .site-nav__link::after { background: var(--c-gold); }
.site-header[data-variant="transparent"]:not(.is-scrolled) .cart-pill {
  background: var(--c-gold);
  color: var(--c-ink);
}

/*
  Solid rather than frosted. A full-width `backdrop-filter` on a sticky header
  re-blurs a 1920px-wide strip of whatever is scrolling underneath on every
  frame, on every page. The header was already 96% opaque, so going fully
  opaque looks near-identical and removes the per-frame blur entirely.
*/
.site-header.is-scrolled {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-nav { display: none; }

@media (min-width: 62em) {
  .site-nav { display: block; }
}

/* Without JavaScript the drawer cannot open, so the full navigation wraps
   into the header on small screens instead of disappearing. */
.no-js .site-nav { display: block; width: 100%; order: 3; }
.no-js .site-header__inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
.no-js .site-nav__list { flex-wrap: wrap; gap: 0.1rem 0.25rem; }

/* Body scroll lock while a dialog is open. `scrollbar-gutter` on the root
   keeps the page from shifting sideways when the scrollbar disappears. */
html { scrollbar-gutter: stable; }
html.has-dialog { overflow: hidden; }

.site-nav__list { display: flex; align-items: center; gap: 0.15rem; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link.is-current { font-weight: 700; }

.site-header__tools { display: flex; align-items: center; gap: 0.15rem; }

.icon-btn--cart { text-decoration: none; }

.cart-pill {
  position: absolute;
  top: 0.3rem;
  right: 0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  display: grid;
  place-items: center;
  background: var(--c-red);
  color: #fff6e9;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  /* Reserved from the start so turning the count on never shifts the layout. */
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}
.cart-pill.is-bumped { transform: scale(1.32); }

@media (min-width: 62em) {
  .icon-btn--menu { display: none; }
}

/* ==========================================================================
   Product artwork
   ========================================================================== */

.product-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-sunk);
  border-radius: inherit;
}

.product-art__svg,
.product-art__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art .motif__figure {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   Product card
   ========================================================================== */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pcard:has(.pcard__link:focus-visible) { border-color: var(--c-blue); box-shadow: var(--shadow-md); }

.pcard__media { position: relative; border-bottom: 1px solid var(--border); }

.pcard__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.28em 0.65em;
  background: var(--c-ink);
  color: var(--text-invert);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.pcard__quickview {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.pcard__quickview .icon { width: 0.95rem; height: 0.95rem; }
.pcard__quickview:hover { background: var(--surface); }
.pcard:hover .pcard__quickview,
.pcard__quickview:focus-visible { opacity: 1; transform: none; }

/* Touch devices have no hover, so the control is always visible there. */
@media (hover: none) {
  .pcard__quickview { opacity: 1; transform: none; }
}

.pcard__body { padding: var(--sp-4) var(--sp-4) var(--sp-2); flex: 1; }

.pcard__meta {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

.pcard__title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
}

/* One link per card, stretched over the whole card. No nested interactives. */
.pcard__link { text-decoration: none; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__link:hover { color: var(--c-red); }

.pcard__price {
  margin-top: 0.4rem;
  font-size: var(--fs-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pcard__desc {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stacked so a long button label can never be squeezed onto two lines by the
   variant control next to it. Cards stay bottom-aligned in the grid. */
.pcard__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.pcard__variant .select { width: 100%; }
.pcard__add { white-space: nowrap; }

.pcard--compact .pcard__body { padding: var(--sp-3) var(--sp-3) 0; }
.pcard--compact .pcard__actions { padding: var(--sp-3); }
.pcard--compact .pcard__title { font-size: var(--fs-base); }
/* Squarer artwork keeps the journey panels short enough to fit one screen. */
.pcard--compact .product-art { aspect-ratio: 1 / 1; }
.pcard--compact .pcard__quickview { display: none; }

/* ==========================================================================
   Grids
   ========================================================================== */

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.grid-products--tight { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }

/* Wrapper the shop page uses so filtering can hide and reorder items without
   touching the cards themselves. */
.grid-cell { display: flex; }
.grid-cell > .pcard { width: 100%; }

@media (max-width: 25em) {
  .grid-products { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Category tiles
   ========================================================================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 9.5rem;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-tile:hover { border-color: var(--c-leather); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.cat-tile__art {
  position: absolute;
  inset: auto -12% 38% auto;
  width: 8rem;
  color: var(--c-sand-deep);
  opacity: 0.5;
  pointer-events: none;
}

.cat-tile__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.cat-tile__blurb { margin-top: 0.25rem; font-size: var(--fs-xs); color: var(--text-muted); }
.cat-tile__count {
  margin-top: 0.6rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-leather);
}

/* ==========================================================================
   Overlays: dialogs, drawers, modals
   ========================================================================== */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: 100vw;
  max-height: 100dvh;
}

dialog::backdrop { background: rgba(29, 26, 23, 0.55); }
dialog[open]::backdrop { animation: fade-in var(--dur) var(--ease) both; }
dialog.is-closing::backdrop { animation: fade-out var(--dur-fast) var(--ease) both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

/* -- side drawers -- */
.drawer {
  width: min(27rem, 100%);
  height: 100dvh;
  max-height: 100dvh;
}
.drawer--cart { margin: 0 0 0 auto; }
.drawer--nav { margin: 0 auto 0 0; width: min(22rem, 88%); }

.drawer__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border-inline: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer--cart[open] .drawer__panel { animation: slide-in-right var(--dur-slow) var(--ease-out) both; }
.drawer--cart.is-closing .drawer__panel { animation: slide-out-right var(--dur) var(--ease) both; }
.drawer--nav[open] .drawer__panel { animation: slide-in-left var(--dur-slow) var(--ease-out) both; }
.drawer--nav.is-closing .drawer__panel { animation: slide-out-left var(--dur) var(--ease) both; }

@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out-right { from { transform: none; } to { transform: translateX(100%); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slide-out-left { from { transform: none; } to { transform: translateX(-100%); } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.drawer__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.drawer__count { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4) var(--sp-5); }

.drawer__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* nav drawer specifics */
.drawer__nav { padding: var(--sp-3) var(--sp-3) 0; }
.drawer__list { display: grid; gap: 0.15rem; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 3.25rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.drawer__link:hover { background: var(--bg-alt); }
.drawer__link .icon { width: 1.1rem; height: 1.1rem; color: var(--text-muted); }
.drawer__link.is-current { background: var(--c-ink); color: var(--text-invert); }
.drawer__link.is-current .icon { color: var(--c-gold); }

.drawer__section { padding: var(--sp-5) var(--sp-4) var(--sp-4); flex: 1; overflow-y: auto; }
.drawer__heading {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.drawer__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.drawer__chips .chip { font-size: var(--fs-xs); min-height: 2.125rem; }
.drawer__foot { display: grid; gap: 0.6rem; }

/* -- centered modals -- */
.modal { width: min(46rem, 100%); margin: auto; }
.modal--search { width: min(40rem, 100%); margin: min(7vh, 4.5rem) auto auto; }

.modal__panel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: min(86dvh, 52rem);
  display: flex;
  flex-direction: column;
}

.modal[open] .modal__panel { animation: modal-in var(--dur-slow) var(--ease-out) both; }
.modal.is-closing .modal__panel { animation: modal-out var(--dur-fast) var(--ease) both; }

@keyframes modal-in { from { opacity: 0; transform: translateY(1.25rem) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; } to { opacity: 0; transform: translateY(0.5rem); } }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.modal__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }

.modal__close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3; background: color-mix(in srgb, var(--surface) 85%, transparent); }

@media (max-width: 40em) {
  .modal--search { margin: 0; width: 100%; height: 100dvh; max-height: 100dvh; }
  .modal--search .modal__panel { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-form { padding: var(--sp-5) var(--sp-5) var(--sp-3); }

.search-form__field { position: relative; display: flex; gap: 0.5rem; align-items: center; }
.search-form__icon {
  position: absolute;
  left: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
}
.search-form__input { padding-left: 2.6rem; }
.search-form__input::-webkit-search-cancel-button { cursor: pointer; }
.search-form__submit { flex: none; }
.search-form__hint { margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--text-muted); }

.search-results { flex: 1; overflow-y: auto; padding: 0 var(--sp-5) var(--sp-5); }
.search-results__idle,
.search-results__empty { padding: var(--sp-5) 0; color: var(--text-muted); font-size: var(--fs-sm); }
.search-results__empty strong { color: var(--text); }

.search-results__count {
  padding: var(--sp-3) 0;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-results__list { display: grid; gap: 0.35rem; }

.sresult {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.sresult:hover { background: var(--bg-alt); border-color: var(--border); }

.sresult__art { flex: none; width: 3.25rem; border-radius: var(--r-xs); overflow: hidden; }
.sresult__art .product-art { border-radius: var(--r-xs); }
.sresult__name { font-weight: 700; font-size: var(--fs-sm); }
.sresult__meta { font-size: var(--fs-xs); color: var(--text-muted); }
.sresult__price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }

/* ==========================================================================
   Cart lines (shared by drawer and cart page)
   ========================================================================== */

.cart-lines { display: grid; gap: var(--sp-4); }

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--sp-3) var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.cart-lines > .cart-line:last-child { border-bottom: 0; padding-bottom: 0; }

.cart-line__media { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); align-self: start; }
/* Square thumbnails keep cart rows compact. */
.cart-line__media .product-art { border-radius: 0; aspect-ratio: 1 / 1; }
.mini-line__media .product-art { aspect-ratio: 1 / 1; }

.cart-line__info { min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; }
.cart-line__name a { text-decoration: none; }
.cart-line__name a:hover { color: var(--c-red); text-decoration: underline; }
.cart-line__variant { margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--text-muted); }
.cart-line__unit { margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

.cart-line__controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.cart-line__total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.cart-line__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-xs);
  transition: color var(--dur-fast) var(--ease);
}
.cart-line__remove:hover { color: var(--c-red-deep); }
.cart-line__remove .icon { width: 1rem; height: 1rem; }

.cart-empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.cart-empty__art { display: flex; justify-content: center; color: var(--c-sand-deep); margin-bottom: var(--sp-4); }
.cart-empty__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.cart-empty__body { margin: 0.4rem auto var(--sp-5); max-width: 30ch; color: var(--text-muted); font-size: var(--fs-sm); }

.cart-summary__rows { display: grid; gap: 0.4rem; margin-bottom: var(--sp-3); }
.cart-summary__row { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); }
.cart-summary__row dt { font-weight: 600; }
.cart-summary__row dd { font-variant-numeric: tabular-nums; font-weight: 700; }
.cart-summary__row--muted dt, .cart-summary__row--muted dd { color: var(--text-muted); font-weight: 500; }
.cart-summary__note { margin-bottom: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); }
.cart-summary__links { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-3); font-size: var(--fs-sm); }

/* ==========================================================================
   Quick view
   ========================================================================== */

.quickview { display: grid; grid-template-columns: 1fr; overflow-y: auto; }

@media (min-width: 48em) {
  .quickview { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}

.quickview__media { background: var(--surface-sunk); }
.quickview__media .product-art { border-radius: 0; aspect-ratio: 4 / 5; }
@media (max-width: 47.99em) {
  .quickview__media .product-art { aspect-ratio: 16 / 10; }
}

.quickview__body { padding: var(--sp-6) var(--sp-5) var(--sp-5); }

.quickview__meta {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Leave room for the floating close button in the corner. */
.quickview__meta, .quickview__title { padding-right: 2.75rem; }
.quickview__title { margin-top: 0.35rem; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; }
.quickview__price { margin-top: 0.5rem; font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.quickview__desc { margin-top: var(--sp-3); color: var(--text-soft); font-size: var(--fs-sm); }
.quickview__variant { margin-top: var(--sp-4); max-width: 14rem; }
.quickview__qty { margin-top: var(--sp-4); }
.quickview__qty .field__label { margin-bottom: 0.4rem; }
.quickview__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-5); }
.quickview__actions .btn { flex: 1 1 10rem; }
.quickview__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); }

/* ==========================================================================
   Toasts
   ========================================================================== */

.toasts {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: calc(clamp(0.75rem, 3vw, 1.5rem) + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: grid;
  gap: 0.5rem;
  width: min(21rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--c-ink);
  color: var(--text-invert);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  animation: toast-in var(--dur) var(--ease-out) both;
}
.toast.is-leaving { animation: toast-out var(--dur) var(--ease) both; }
.toast__icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; color: var(--c-gold); }
.toast__title { font-weight: 700; }
.toast__body { color: var(--text-invert-soft); font-size: var(--fs-xs); margin-top: 0.1rem; }

@keyframes toast-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(0.5rem); } }

/* ==========================================================================
   Page header block
   ========================================================================== */

.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--c-blue);
  color: var(--text-invert);
  overflow: hidden;
}

.page-head__ridge { position: absolute; inset: auto 0 -1px 0; width: 100%; height: auto; color: var(--bg); }

.page-head__inner { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--c-gold); }
.page-head__title { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; }
.page-head__lede { margin-top: var(--sp-3); max-width: 56ch; color: var(--text-invert-soft); font-size: var(--fs-lg); }

.breadcrumbs { padding-block: var(--sp-4); font-size: var(--fs-xs); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.breadcrumbs__item { display: flex; align-items: center; gap: 0.35rem; color: var(--text-muted); }
.breadcrumbs__item .icon { width: 0.85rem; height: 0.85rem; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Shop
   ========================================================================== */

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-bottom: var(--sp-9);
}

@media (min-width: 60em) {
  .shop-layout { grid-template-columns: 16rem minmax(0, 1fr); }
}

.filters { position: relative; }

@media (min-width: 60em) {
  .filters { position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; }
}

.filters__toggle { width: 100%; justify-content: space-between; margin-bottom: var(--sp-3); }
@media (min-width: 60em) { .filters__toggle { display: none; } }

.filters__body {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.filters__body[hidden] { display: none; }

.filters__group { border: 0; padding: 0; margin: 0; }

.filters__legend {
  display: block;
  width: 100%;
  padding: 0 0 var(--sp-3);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.filters__options { display: grid; gap: 0.15rem; }

.filters__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.filters__option:hover { background: var(--bg-alt); }
.filters__option input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--c-red); }
.filters__option-count { margin-left: auto; font-size: var(--fs-2xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.filters__option:has(input:checked) { font-weight: 700; }

.filters__search { position: relative; }
.filters__search .icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--text-muted);
  pointer-events: none;
}
.filters__search .input { padding-left: 2.5rem; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
}

.shop-toolbar__count { font-size: var(--fs-sm); font-weight: 600; }
.shop-toolbar__count strong { font-variant-numeric: tabular-nums; }

.shop-toolbar__sort { display: flex; align-items: center; gap: 0.6rem; }
.shop-toolbar__sort .field__label { margin: 0; font-size: var(--fs-xs); white-space: nowrap; }
.shop-toolbar__sort .select { width: auto; min-width: 12rem; min-height: 2.625rem; font-size: var(--fs-sm); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-bottom: var(--sp-5); }
.active-filters__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-muted); }

.pill-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.125rem;
  padding: 0.3rem 0.7rem;
  background: var(--c-ink);
  color: var(--text-invert);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.pill-clear .icon { width: 0.85rem; height: 0.85rem; }
.pill-clear:hover { background: var(--c-leather-deep); }

.empty-state {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.empty-state__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.empty-state__body { margin: 0.5rem auto var(--sp-5); max-width: 40ch; color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Product detail
   ========================================================================== */

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: var(--sp-9);
}

@media (min-width: 58em) {
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .product-gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.product-gallery__stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-sunk);
}

.product-gallery__frame { display: none; }
.product-gallery__frame.is-active { display: block; animation: fade-in var(--dur) var(--ease) both; }
.product-gallery__frame .product-art { border-radius: 0; }

.product-gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; }

.product-gallery__thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-sunk);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.product-gallery__thumb:hover { transform: translateY(-2px); }
.product-gallery__thumb[aria-selected="true"] { border-color: var(--c-ink); }
.product-gallery__thumb .product-art { border-radius: 0; }

.product-info__meta {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-info__meta a { color: var(--c-leather); }

.product-info__title { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; }
.product-info__price { margin-top: var(--sp-3); font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.product-info__short { margin-top: var(--sp-3); font-size: var(--fs-lg); color: var(--text-soft); }

.product-info__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-4); }

.product-buy {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.product-buy__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4); }
.product-buy__variants { flex: 1 1 12rem; margin-bottom: 0; }

.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.variant-option { position: relative; }
.variant-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.variant-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.variant-option input:hover + span { border-color: var(--c-leather); }
.variant-option input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--text-invert); }
.variant-option input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.product-buy__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-5); }
.product-buy__actions .btn--primary { flex: 1 1 14rem; }

.product-buy__meta { margin-top: var(--sp-4); display: grid; gap: 0.35rem; font-size: var(--fs-xs); color: var(--text-muted); }
.product-buy__meta code { font-family: var(--font-mono); font-size: 0.95em; }

.product-details { margin-top: var(--sp-7); display: grid; gap: var(--sp-5); }
.product-details h2 { font-family: var(--font-display); font-size: var(--fs-xl); }
.product-details p + p { margin-top: var(--sp-3); }
.product-details__list { display: grid; gap: 0.4rem; font-size: var(--fs-sm); }
.product-details__list li { display: flex; gap: 0.6rem; }
.product-details__list .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.25rem; color: var(--c-turquoise); }

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-bottom: var(--sp-9);
  align-items: start;
}

@media (min-width: 58em) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 21rem; }
  .cart-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.cart-panel {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.cart-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.cart-panel__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }

.cart-page .cart-line { grid-template-columns: 5.5rem 1fr; }

@media (min-width: 40em) {
  .cart-page .cart-line { grid-template-columns: 6.5rem 1fr auto; align-items: start; }
  .cart-page .cart-line__controls { grid-column: auto; justify-content: flex-end; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: var(--sp-9);
  align-items: start;
}

@media (min-width: 62em) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 23rem; }
  .checkout-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.checkout-summary {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.checkout-summary__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-4); }
.checkout-summary__lines { display: grid; gap: var(--sp-3); max-height: 22rem; overflow-y: auto; }

.mini-line { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); }
.mini-line__media { border-radius: var(--r-xs); overflow: hidden; border: 1px solid var(--border); }
.mini-line__media .product-art { border-radius: 0; }
.mini-line__name { font-weight: 700; line-height: 1.3; }
.mini-line__meta { font-size: var(--fs-xs); color: var(--text-muted); }
.mini-line__price { font-weight: 700; font-variant-numeric: tabular-nums; }

.payment-block {
  padding: var(--sp-5);
  background: color-mix(in srgb, var(--c-turquoise) 7%, var(--surface));
  border: 1.5px dashed color-mix(in srgb, var(--c-turquoise) 55%, transparent);
  border-radius: var(--r-md);
}
.payment-block__title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.payment-block__title .icon { color: #1f5f5b; }
.payment-block__body { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-group + .faq-group { margin-top: var(--sp-8); }
.faq-group__heading { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--sp-4); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 0.6rem; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary:hover { background: var(--bg-alt); }
.faq-item__summary .icon { flex: none; width: 1.15rem; height: 1.15rem; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-item__summary .icon { transform: rotate(180deg); }

.faq-item__body { padding: 0 var(--sp-5) var(--sp-5); }
.faq-item__body p + p { margin-top: var(--sp-3); }
.faq-item__body p { color: var(--text-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   About / Visit
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 54em) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-first { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--slot-ratio, 4 / 3);
  padding: var(--sp-5);
  background: var(--surface-sunk);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  text-align: center;
  overflow: hidden;
}
.photo-slot__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.photo-slot__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.9rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}
.photo-slot__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; }
.photo-slot__hint { font-size: var(--fs-2xs); color: var(--text-muted); font-family: var(--font-mono); }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--sp-5); }
.value-card { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.value-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-sand-deep);
}
.value-card__title { margin-top: 0.4rem; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.value-card__body { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-muted); }

.info-list { display: grid; gap: var(--sp-4); }
.info-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  color: var(--c-leather);
}
.info-row__label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-muted); }
.info-row__value { margin-top: 0.2rem; font-size: var(--fs-base); font-weight: 600; }
.info-row__note { margin-top: 0.3rem; font-size: var(--fs-xs); color: var(--text-muted); }

.map-panel {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-cream-deep);
}
.map-panel__caption {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.map-panel__caption .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours-table caption { text-align: left; padding-bottom: var(--sp-3); color: var(--text-muted); font-size: var(--fs-xs); }
.hours-table th, .hours-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); text-align: left; }
.hours-table th { font-weight: 600; }
.hours-table td { color: var(--text-muted); text-align: right; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Policy pages
   ========================================================================== */

.policy { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); padding-bottom: var(--sp-9); }

@media (min-width: 58em) {
  .policy { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-8); }
  .policy__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}

.policy__toc-title { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-3); }
.policy__toc-list { display: grid; gap: 0.1rem; }
.policy__toc-list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-left: 2px solid var(--border);
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.policy__toc-list a:hover { color: var(--text); border-left-color: var(--c-red); }

.policy__section + .policy__section { margin-top: var(--sp-7); }
.policy__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.policy__body { margin-top: var(--sp-3); display: grid; gap: var(--sp-3); color: var(--text-soft); }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--c-ink);
  color: var(--text-invert);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.newsletter__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; pointer-events: none; }
.newsletter__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 52em) {
  .newsletter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
}
.newsletter__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; }
.newsletter__body { margin-top: var(--sp-3); color: var(--text-invert-soft); font-size: var(--fs-sm); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.newsletter__field { margin-bottom: 0; flex: 1 1 12rem; }
.newsletter__form .input { flex: 1 1 12rem; background: rgba(255, 255, 255, 0.08); border-color: var(--border-invert); color: var(--text-invert); }
.newsletter__form .input::placeholder { color: rgba(247, 239, 224, 0.5); }
.newsletter__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-invert-soft); }
.newsletter .field__error { color: #ffb4a5; }
.newsletter__status { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.newsletter__status:empty { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--sp-9) var(--sp-6);
  background: var(--c-charcoal);
  color: var(--text-invert);
  border-top: 4px solid var(--c-gold-deep);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border-invert);
}

@media (min-width: 54em) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--sp-9); }
}

.site-footer__statement { margin-top: var(--sp-4); max-width: 38ch; color: var(--text-invert-soft); font-size: var(--fs-sm); }

.site-footer__preview {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-4);
  padding: 0.7rem 0.9rem;
  background: rgba(247, 239, 224, 0.07);
  border-left: 3px solid var(--c-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-xs);
  color: var(--text-invert-soft);
}
.site-footer__preview .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--c-gold); }
.site-footer__preview a { color: var(--c-gold); font-weight: 600; }

.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--sp-6); }

.site-footer__heading {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}

.site-footer__list { display: grid; gap: 0.15rem; }
.site-footer__list a,
.site-footer__pending {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  font-size: var(--fs-sm);
  color: var(--text-invert-soft);
  text-decoration: none;
}
.site-footer__list a:hover { color: var(--text-invert); text-decoration: underline; }
.site-footer__list .icon { width: 1.05rem; height: 1.05rem; }
.site-footer__pending { color: rgba(247, 239, 224, 0.5); flex-wrap: wrap; }
.site-footer__pending .tag { border-color: rgba(247, 239, 224, 0.3); background: transparent; color: rgba(247, 239, 224, 0.7); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-invert-soft);
}
.site-footer__bottom a { color: var(--c-gold); }

/* ==========================================================================
   Error pages
   ========================================================================== */

.error-page { padding-block: clamp(4rem, 12vw, 8rem); }
.error-page__inner { max-width: 42rem; text-align: center; margin-inline: auto; }
.error-page__code {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 1;
  color: var(--c-sand-deep);
}
.error-page__title { margin-top: var(--sp-3); font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; }
.error-page__body { margin: var(--sp-3) auto var(--sp-6); max-width: 46ch; color: var(--text-soft); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row--center { justify-content: center; }
.error-page__detail {
  margin: var(--sp-5) auto;
  padding: var(--sp-4);
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface-sunk);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-align: left;
}

/* ==========================================================================
   Preview banner block (reusable, page level)
   ========================================================================== */

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: color-mix(in srgb, var(--c-gold) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c-gold-deep) 40%, transparent);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.preview-strip .icon { flex: none; color: var(--c-gold-deep); }
.preview-strip strong { font-weight: 700; }

/* ==========================================================================
   Utility: decorative ridge divider
   ========================================================================== */

.ridge { display: block; width: 100%; height: auto; }
.ridge--flip { transform: scaleY(-1); }
