/* Self-hosted typefaces. Both SIL OFL 1.1. See DESIGN.md section 3. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Tokens. See DESIGN.md. Change values here, never in components.
   ========================================================================== */

:root {
  /* Color: sampled from the Kozi Loft logo. See DESIGN.md section 2. */
  --paper: #F7F3EA;
  --linen: #F2E6D1;
  --ink: #353534;
  --ink-lift: #4A4A48;
  --brand: #5B3726;
  --brand-lift: #6E4531;
  --graphite: #6B6157;
  --rule: #DED3BF;
  --oxide: #8C4A2F;

  /* Type families, section 3 */
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-grotesk: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale, fluid 390px to 1440px */
  --t-display: clamp(2.75rem, 1.45rem + 5.33vw, 5.5rem);
  --t-title: clamp(1.875rem, 1.46rem + 1.70vw, 2.75rem);
  --t-heading: clamp(1.25rem, 1.13rem + 0.48vw, 1.5rem);
  --t-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-ui: 0.9375rem;
  --t-label: 0.6875rem;

  /* Space: 8px base, wide steps, section 4 */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 104px;
  --s-7: 168px;

  /* Layout */
  --margin: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --gutter: 24px;
  --measure: 66ch;

  /* Motion, section 7 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

/* Focus: never removed, section 8 */
:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 2px;
}

/* ==========================================================================
   Type roles
   ========================================================================== */

.t-display, .t-title {
  font-family: var(--f-serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.t-display { font-size: var(--t-display); }
.t-title { font-size: var(--t-title); }

.t-heading {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--t-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.t-body { font-size: var(--t-body); line-height: 1.6; }

.t-ui {
  font-family: var(--f-grotesk);
  font-weight: 400;
  font-size: var(--t-ui);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* The only uppercase in the system */
.t-label {
  font-family: var(--f-grotesk);
  font-weight: 500;
  font-size: var(--t-label);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.muted { color: var(--graphite); }
.oxide { color: var(--oxide); }
.measure { max-width: var(--measure); }

.rte > * + * { margin-top: var(--s-2); }
.rte a { text-decoration: underline; text-underline-offset: 4px; }
.rte a:hover { color: var(--oxide); }
.rte ul { list-style: disc; padding-left: 1.2em; }
.rte ol { list-style: decimal; padding-left: 1.2em; }
.rte img { margin-top: var(--s-3); }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: var(--s-5); }
@media (min-width: 900px) { .section { padding-block: var(--s-7); } }

.section--tight { padding-block: var(--s-4); }
@media (min-width: 900px) { .section--tight { padding-block: var(--s-6); } }

.band { background: var(--linen); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--gutter);
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, 1fr); } }

/* Section opener: label over title, hairline beneath */
.opener {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-4);
}
.opener__label { color: var(--graphite); }

/* ==========================================================================
   Buttons: two only, section 5
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--f-grotesk);
  font-weight: 500;
  font-size: var(--t-ui);
  line-height: 1;
  padding: 16px 32px;
  border: 1px solid var(--brand);
  border-radius: 0;
  background: var(--brand);
  color: var(--paper);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--brand-lift); border-color: var(--brand-lift); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--linen);
  border-color: var(--rule);
  color: var(--graphite);
  cursor: not-allowed;
}
.btn--wide { width: 100%; }

.btn-quiet {
  display: inline-block;
  font-family: var(--f-grotesk);
  font-size: var(--t-ui);
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.btn-quiet:hover { color: var(--oxide); }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: block; }
.field + .field { margin-top: var(--s-2); }
.field__label { display: block; color: var(--graphite); margin-bottom: var(--s-1); }

.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--f-grotesk);
  font-size: var(--t-ui);
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  appearance: none;
  transition: border-color var(--dur) var(--ease);
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--graphite); }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316130F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error { color: var(--oxide); margin-top: var(--s-2); }

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

.header { position: relative; border-bottom: 1px solid var(--rule); background: var(--paper); }
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 84px;
}
.header__brand {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header__brand img { height: clamp(32px, 4.2vw, 48px); width: auto; display: block; }

.nav { display: none; gap: var(--s-3); }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a, .header__util a, .header__util button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
  position: relative;
}
.nav a::after, .header__util a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after, .header__util a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__util { display: flex; align-items: center; gap: var(--s-3); }

.announce {
  background: var(--brand);
  color: var(--paper);
  text-align: center;
  padding: 10px var(--margin);
}

/* Mobile menu: a details element, no framework */
.menu { display: block; }
@media (min-width: 900px) { .menu { display: none; } }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute;
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-2) var(--margin) var(--s-3);
  z-index: 20;
}
.menu__panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.menu__panel a:last-child { border-bottom: 0; }

/* ==========================================================================
   Product card, section 5
   ========================================================================== */

.card { display: block; }
.card__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--linen);
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__frame img + img { opacity: 0; transition: opacity var(--dur) var(--ease); }
.card:hover .card__frame img + img { opacity: 1; }

.card__name { margin-bottom: 6px; }
.card__meta { color: var(--graphite); margin-bottom: 6px; }

.tag {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 1;
  background: var(--paper);
  color: var(--oxide);
  padding: 5px 9px;
}

.price--was { color: var(--graphite); text-decoration: line-through; margin-right: 8px; }

/* ==========================================================================
   Product page
   ========================================================================== */

.pdp { display: grid; gap: var(--s-4) var(--gutter); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
  .pdp__buy { position: sticky; top: var(--s-3); }
}

.gallery { display: grid; gap: var(--s-1); }
.gallery__item { background: var(--linen); }
.gallery__item img { width: 100%; }
.gallery__item--hero { aspect-ratio: 4 / 5; }
.gallery__item--hero img { width: 100%; height: 100%; object-fit: cover; }

/* Spec table: the most important component, section 5 */
.spec { width: 100%; border-collapse: collapse; max-width: 52ch; }
.spec caption {
  text-align: left;
  color: var(--graphite);
  padding-bottom: var(--s-1);
}
.spec th, .spec td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec th { font-weight: 500; color: var(--graphite); width: 42%; padding-right: var(--s-2); }
.spec td { font-family: var(--f-grotesk); font-size: var(--t-ui); font-variant-numeric: tabular-nums; }

.buy-stack { max-width: 52ch; }
.buy-stack > * + * { margin-top: var(--s-3); }

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

.line { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-2) var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .line { grid-template-columns: 88px 1fr auto auto; align-items: start; } }
.line__frame { aspect-ratio: 4 / 5; background: var(--linen); }
.line__frame img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; border: 1px solid var(--rule); }
.qty input { width: 48px; text-align: center; border: 0; background: none; padding: 10px 0; font-family: var(--f-grotesk); }
.qty button { width: 40px; background: none; border: 0; cursor: pointer; }
.cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); }

/* ==========================================================================
   Footer: the only inversion, section 2
   ========================================================================== */

.footer { background: var(--ink); color: var(--paper); padding-block: var(--s-5); margin-top: var(--s-5); }
.footer a:hover { color: #C9BFAE; }
.footer__grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-5); } }
.footer__label { color: var(--graphite); margin-bottom: var(--s-2); }
.footer__list li + li { margin-top: 10px; }
.footer__base { border-top: 1px solid rgba(244, 241, 234, 0.16); margin-top: var(--s-4); padding-top: var(--s-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); color: var(--graphite); }

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.stack > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }

/* Home page reveal only, once, section 7 */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Variant options: hidden radio, label is the control */
.swatch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.swatch:hover { border-color: var(--graphite); }
input:checked + .swatch { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
input:disabled + .swatch { color: var(--graphite); border-color: var(--rule); text-decoration: line-through; cursor: not-allowed; }
input:focus-visible + .swatch { outline: 2px solid var(--oxide); outline-offset: 2px; }

/* ==========================================================================
   Page components. These lived in the Shopify section files and move here
   now that there are no sections.
   ========================================================================== */

.hero__inner { padding-block: var(--s-5) var(--s-4); }
.hero__title { margin-top: var(--s-2); }
.hero__body { margin-top: var(--s-3); color: var(--graphite); }
.hero__cta { margin-top: var(--s-4); }
.hero__frame { background: var(--linen); aspect-ratio: 3 / 2; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero__inner { padding-block: var(--s-6) var(--s-5); }
}

.note { display: grid; gap: var(--s-4); }
.note__media { aspect-ratio: 3 / 2; background: var(--rule); }
.note__media img { width: 100%; height: 100%; object-fit: cover; }
.note__heading { margin-top: var(--s-2); }
.note__text { margin-top: var(--s-3); max-width: 52ch; }
.note__cta { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .note { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
}

/* Grid spans. Two up on phones, three up from 900px, via the 12 column grid. */
.col { grid-column: span 2; }
@media (min-width: 600px) { .col { grid-column: span 3; } }
@media (min-width: 900px) { .col { grid-column: span 4; } }

/* ==========================================================================
   Commerce layer. Colamy-style merchandising on top of the base system.
   ========================================================================== */

/* Search field in the header */
.search { flex: 1 1 auto; max-width: 520px; display: none; }
@media (min-width: 900px) { .search { display: block; } }
.search form { position: relative; }
.search input {
  width: 100%;
  font-family: var(--f-grotesk);
  font-size: var(--t-ui);
  padding: 11px 44px 11px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}
.search input:focus { border-color: var(--ink); outline: none; }
.search button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Category bar under the header */
.catbar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.catbar__inner {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 48px;
}
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; padding: 12px 0; position: relative; }
.catbar a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.catbar a:hover::after, .catbar a[aria-current="page"]::after { transform: scaleX(1); }
.catbar a.is-sale { color: var(--oxide); }

/* Hero carousel */
/* All slides share one grid cell, so the banner is always as tall as the
   tallest slide and never resizes as it advances. visibility:hidden keeps the
   inactive ones out of the accessibility tree and unclickable while still
   contributing their height. */
.hero-slides { position: relative; display: grid; background: var(--linen); }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: clamp(420px, 58vh, 660px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-slide__img { position: absolute; inset: 0; }
.hero-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 58vh, 660px);
  padding-block: var(--s-5);
  max-width: 46ch;
}
.hero-slide--shaded .hero-slide__body { color: var(--paper); }
.hero-slide--shaded .hero-slide__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,19,15,0.62) 0%, rgba(22,19,15,0.24) 62%, transparent 100%);
}
.hero-slide__heading { margin-top: var(--s-2); }
.hero-slide__text { margin-top: var(--s-3); }
.hero-slide__cta { margin-top: var(--s-4); }

.carousel-nav {
  position: absolute;
  bottom: var(--s-3);
  right: var(--margin);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  z-index: 2;
}
.carousel-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.carousel-btn:hover { border-color: var(--ink); }
.carousel-count { font-variant-numeric: tabular-nums; background: var(--paper); padding: 6px 10px; }

/* Value marquee */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 11px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item { padding-inline: var(--s-3); white-space: nowrap; }
.marquee__item::before { content: "\00b7"; margin-right: var(--s-3); color: var(--graphite); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Room tiles */
.rooms { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 700px) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--linen);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--s-3);
}
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22,19,15,0.55) 0%, transparent 55%);
}
.room__label { position: relative; z-index: 1; }
.room:has(img) .room__label { color: var(--paper); }

/* Merchandising badges on cards */
.badge-row { position: absolute; top: var(--s-2); left: var(--s-2); z-index: 1; display: flex; gap: 6px; }
.badge { padding: 5px 9px; background: var(--paper); }
.badge--sale { background: var(--oxide); color: var(--paper); }
.badge--new { background: var(--brand); color: var(--paper); }
.card__eyebrow { color: var(--graphite); margin-bottom: 6px; }

/* Best sellers: card overlaid on a lifestyle shot */
.feature {
  position: relative;
  background: var(--linen);
  min-height: clamp(460px, 62vh, 700px);
  display: flex;
  align-items: flex-end;
  padding: var(--s-4) 0;
}
.feature__img { position: absolute; inset: 0; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22,19,15,0.5) 0%, transparent 60%);
}
.feature__inner { position: relative; width: 100%; }
.feature__head { color: var(--paper); margin-bottom: var(--s-3); }
.feature__rail {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s-1);
}
.feature__rail::-webkit-scrollbar { display: none; }
.feature__rail > * {
  flex: 0 0 auto;
  width: min(260px, 72vw);
  scroll-snap-align: start;
  background: var(--paper);
  padding: var(--s-2);
}

/* Email capture popup */
.popup[hidden] { display: none; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--s-3);
  background: rgba(22, 19, 15, 0.55);
}
.popup__panel {
  background: var(--paper);
  max-width: 460px;
  width: 100%;
  padding: var(--s-4);
  position: relative;
}
.popup__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.popup__body { margin-top: var(--s-2); color: var(--graphite); }
.popup form { margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.popup__dismiss { margin-top: var(--s-2); text-align: center; }

/* Help button */
.help {
  position: fixed;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 18px;
  border: 0;
  cursor: pointer;
  box-shadow: none;
}
.help:hover { background: var(--ink-lift); }

/* Search results */
.search-empty { padding-block: var(--s-4); }

.code-box__code {
  font-family: var(--f-grotesk);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-top: var(--s-1);
}
