/* cf-html-v8 · Maison store theme (magazine direction).
   Warm paper, terracotta accents, a centred serif wordmark, an asymmetric
   opening spread, hairline-ruled product rows and a three-column colophon.
   The palette arrives from skin-tokens.css; the sand/paper ramp below is a
   neutral fallback used when the theme is previewed without that file. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --max: 1320px;
  --gut: clamp(18px, 4vw, 56px);
  --header-h: 72px;
  --paper-fallback: #FFFDF8;
  --sand-fallback: #F4EDE1;
  --ink-fallback: #201B15;
  --clay-fallback: #B4552D;
  --paper: var(--skin-bg, var(--paper-fallback));
  --sand: var(--sand-fallback);
  --ink: var(--skin-text, var(--ink-fallback));
  --clay: var(--skin-accent, var(--clay-fallback));
  --serif: var(--skin-heading, "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif);
  --sans: var(--skin-body, "Karla", "Helvetica Neue", Arial, sans-serif);
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--ink) 30%, transparent);
  --muted: color-mix(in srgb, var(--ink) 64%, transparent);
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { overflow-wrap: anywhere; }
::selection { background: var(--clay); color: var(--paper); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.visually-hidden, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { top: 0; left: 0; }
.skip:focus {
  width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
  padding: 10px 16px; z-index: 80; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead__bar {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  min-height: var(--header-h);
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 26px;
}
.nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.masthead__toggle { display: none; }
.masthead__nav {
  grid-column: 1; grid-row: 1;
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 4px 16px;
  min-width: 0;
}
.masthead__link {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 3px 0;
  max-width: 100%; overflow-wrap: anywhere;
}
.masthead__nav > .masthead__link { white-space: nowrap; flex: 0 0 auto; }
.masthead__link:hover { color: var(--ink); }
.masthead__links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 16px; min-width: 0; flex: 0 1 auto;
}
/* The top bar carries the featured part of the menu (six collection links)
   so the centred wordmark stays on one line; the full list is rendered in
   the small-screen menu and in the footer, where nothing is withheld. */
@media (min-width: 721px) {
  .masthead__links > .masthead__link:nth-child(n + 6) { display: none; }
}
.masthead__brand {
  grid-column: 2; grid-row: 1; justify-self: center;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 27px);
  font-weight: 500; letter-spacing: 0.005em; line-height: 1.12;
  text-decoration: none; text-align: center;
  max-width: min(100%, 44vw); overflow-wrap: anywhere;
}
.masthead__tools {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: flex; align-items: center; gap: 20px; min-width: 0;
}
.search { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.search__input {
  width: 148px; min-width: 0; padding: 7px 0;
  border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; color: inherit;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
}
.search__input::placeholder { color: var(--muted); }
.search__submit {
  border: 0; padding: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.search__submit:hover { color: var(--ink); }
.search__panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(360px, calc(100vw - 2 * var(--gut)));
  max-height: 62vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--rule-strong);
  padding: 6px; z-index: 50;
}
.search__row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 10px; text-decoration: none; font-size: 13px;
}
.search__row:hover { background: var(--sand); }
.search__row span:last-child { color: var(--muted); white-space: nowrap; }
.search__empty { margin: 0; padding: 10px; font-size: 12px; color: var(--muted); }
.masthead__cart {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 1px solid var(--ink);
}
.masthead__cart:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0 0 10px; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.textlink {
  display: inline-block; align-self: flex-start;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink);
}
.textlink:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- opening spread ---------- */
.opening {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(30px, 5vw, 68px) var(--gut) 0;
  display: grid; align-items: stretch;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}
.opening__copy {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; padding: 0 clamp(22px, 3vw, 52px) clamp(26px, 4vw, 52px) 0;
}
.opening__copy--solo { grid-column: 1 / -1; padding-right: 0; max-width: 54rem; }
.opening__title {
  margin: 0 0 22px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 92px); line-height: 0.94;
  letter-spacing: -0.02em; max-width: 15ch; overflow-wrap: anywhere;
}
.opening__lede {
  margin: 0 0 30px; max-width: 40ch;
  font-size: clamp(14px, 1.1vw, 17px); line-height: 1.66; color: var(--muted);
}
.opening__figure {
  margin: 0; position: relative; min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: clamp(22px, 3vw, 52px);
}
.opening__image {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--sand);
}
.opening__caption {
  margin: 12px 0 0; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- section shell ---------- */
.edit { max-width: var(--max); margin: clamp(56px, 7vw, 104px) auto 0; padding: 0 var(--gut); }
.edit--flush { margin-top: clamp(22px, 3vw, 38px); }
.edit__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 28px;
}
.edit__head > div { min-width: 0; }
.edit__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.06;
  letter-spacing: -0.015em; overflow-wrap: anywhere;
}

/* ---------- product rail ---------- */
.rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px) clamp(16px, 2.2vw, 30px);
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--sand);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card__media:hover img { transform: scale(1.03); }
.card__placeholder {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 12px; text-align: center;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); overflow-wrap: anywhere;
}
.card__tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 6px 10px; background: var(--clay); color: var(--paper);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.card__body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 4px 14px;
  padding: 14px 0 18px; border-bottom: 1px solid var(--rule);
}
.card__title {
  margin: 0; font-family: var(--sans); font-weight: 500;
  font-size: 13.5px; line-height: 1.42; letter-spacing: 0.01em; min-width: 0;
}
.card__title a { text-decoration: none; overflow-wrap: anywhere; }
.card__title a:hover { color: var(--clay); }
.card__price {
  margin: 0; font-size: 13px; letter-spacing: 0.03em;
  color: var(--muted); white-space: nowrap; text-align: right;
}
.card__price s { margin-right: 7px; color: color-mix(in srgb, var(--ink) 42%, transparent); }

/* ---------- collections index ---------- */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc__row { border-bottom: 1px solid var(--rule); }
.toc__link {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; padding: 18px 0; text-decoration: none;
}
.toc__name {
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.16; letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.toc__link:hover .toc__name { color: var(--clay); }
.toc__arrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; flex: 0 0 auto;
}

/* ---------- material note ---------- */
.manifesto {
  margin-top: clamp(56px, 7vw, 104px);
  background: var(--sand);
  padding: clamp(40px, 6vw, 84px) 0;
}
.manifesto__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(22px, 4vw, 64px);
}
.manifesto__label { min-width: 0; }
.manifesto__lead {
  margin: 0 0 20px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.14;
  letter-spacing: -0.015em; overflow-wrap: anywhere;
}
.manifesto__text {
  margin: 0 0 28px; max-width: 52ch;
  font-size: 15.5px; line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
}
.manifesto__facts {
  list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px;
}
.manifesto__facts li {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); overflow-wrap: anywhere;
}

/* ---------- hairline notes strip ---------- */
.notes {
  max-width: var(--max); margin: clamp(40px, 5vw, 68px) auto 0;
  padding: 16px var(--gut);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px;
}
.notes p {
  margin: 0; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere;
}

/* ---------- breadcrumb / collection head ---------- */
.crumbs {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gut) 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.collection-head {
  max-width: var(--max); margin: clamp(18px, 2.6vw, 32px) auto 0;
  padding: 0 var(--gut) clamp(18px, 2.6vw, 30px);
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 18px 40px; align-items: end;
  border-bottom: 1px solid var(--rule);
}
.collection-head__main { min-width: 0; }
.collection-head__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 0.98;
  letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.collection-head__lede {
  margin: 0; max-width: 44ch; padding-bottom: 6px;
  font-size: 15px; color: var(--muted);
}

/* ---------- product detail ---------- */
.detail {
  max-width: var(--max); margin: clamp(18px, 2.6vw, 34px) auto 0;
  padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 4vw, 72px); align-items: start;
}
.detail__media {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--sand); min-width: 0;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__copy { min-width: 0; padding-top: clamp(2px, 2vw, 26px); }
.detail__title {
  margin: 0 0 16px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02;
  letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.detail__price {
  margin: 0 0 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(16px, 1.4vw, 19px); letter-spacing: 0.04em;
}
.detail__price s { margin-right: 10px; color: var(--muted); }
.detail__note { margin: 0 0 26px; max-width: 44ch; color: var(--muted); }
.detail__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-bottom: 24px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; padding: 14px 30px; border: 0; border-radius: 0;
  background: var(--clay); color: var(--paper); cursor: pointer;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
}
.button:hover { background: var(--ink); }
.detail__actions > a {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink);
}
.detail__actions > a:hover { color: var(--clay); border-color: var(--clay); }
.detail__source {
  display: inline-block; margin-bottom: 30px; max-width: 100%;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  padding-bottom: 4px; border-bottom: 1px solid var(--rule-strong);
  overflow-wrap: anywhere;
}
.detail__source:hover { color: var(--ink); }
.detail__facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: 10px; font-size: 13px; color: var(--muted);
}
.detail__facts li { overflow-wrap: anywhere; }

/* ---------- colophon ---------- */
.colophon {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(36px, 5vw, 64px) 0 26px;
  background: var(--sand); color: var(--ink);
}
.colophon__top { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); text-align: center; }
.colophon__brand {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.colophon__note {
  margin: 0 auto; max-width: 46ch; font-size: 13px; color: var(--muted);
}
.colophon__cols {
  max-width: var(--max); margin: clamp(26px, 4vw, 44px) auto 0;
  padding: clamp(22px, 3vw, 30px) var(--gut) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.colophon__col {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; padding-right: 24px;
}
.colophon__col + .colophon__col {
  border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  padding-left: 24px; padding-right: 24px;
}
.colophon__col .colophon__title {
  margin: 0 0 4px; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.colophon__col a, .colophon__col p {
  margin: 0; font-size: 13.5px; text-decoration: none;
  color: var(--ink); overflow-wrap: anywhere;
}
.colophon__col a:hover { color: var(--clay); }
.colophon__base {
  max-width: var(--max); margin: clamp(22px, 3vw, 34px) auto 0;
  padding: 16px var(--gut) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 24px;
}
.colophon__copy {
  margin: 0; max-width: 100%; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere;
}
.colophon__policy { display: flex; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.colophon__policy a {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.colophon__policy a:hover { color: var(--clay); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .masthead__bar { min-height: 68px; gap: 8px 18px; }
  .masthead__links > .masthead__link:nth-child(n + 5) { display: none; }
  .masthead__nav { gap: 4px 12px; }
  .masthead__link { font-size: 10px; letter-spacing: 0.12em; }
  .masthead__brand { font-size: 20px; max-width: 46vw; }
  .search__input { width: 104px; }
  .opening { grid-template-columns: minmax(0, 1fr); }
  .opening__copy { padding: 0 0 clamp(22px, 3vw, 32px); }
  .opening__figure {
    border-left: 0; border-top: 1px solid var(--rule);
    padding: clamp(18px, 3vw, 28px) 0 0;
  }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-head { grid-template-columns: minmax(0, 1fr); }
  .collection-head__lede { padding-bottom: 0; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .manifesto__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .masthead { position: static; }
  .masthead__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 60px; gap: 0 12px; padding-top: 6px;
  }
  .masthead__toggle {
    display: inline-flex; grid-column: 1; grid-row: 1;
    padding: 8px 0; cursor: pointer;
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted);
  }
  .masthead__nav {
    display: none; grid-column: 1 / -1; grid-row: 3;
    flex-direction: column; align-items: flex-start; gap: 0;
    border-top: 1px solid var(--rule); padding: 10px 0 14px;
  }
  .masthead__links {
    flex-direction: column; align-items: flex-start; gap: 0; width: 100%;
  }
  .masthead__link { padding: 7px 0; font-size: 11.5px; letter-spacing: 0.12em; }
  .nav-check:checked ~ .masthead__nav { display: flex; }
  .masthead__brand {
    grid-column: 2; grid-row: 1;
    max-width: 100%; font-size: 19px;
  }
  .masthead__tools { display: contents; }
  .masthead__cart {
    grid-column: 3; grid-row: 1; justify-self: end;
    padding-bottom: 2px; font-size: 10.5px;
  }
  .search {
    grid-column: 1 / -1; grid-row: 2; width: 100%;
    padding: 9px 0 11px; border-top: 1px solid var(--rule);
  }
  .search__input { flex: 1 1 auto; width: auto; font-size: 13px; }
  .search__panel { right: 0; left: 0; width: auto; }
  .opening { padding-top: 26px; }
  .opening__title { font-size: clamp(38px, 11vw, 54px); margin-bottom: 18px; }
  .opening__lede { margin-bottom: 24px; }
  .edit { margin-top: 46px; }
  .edit__head { align-items: flex-start; }
  .rail {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: 66%; grid-template-columns: none;
    gap: 14px; padding-bottom: 6px;
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-left: 0;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; min-width: 0; }
  .toc__link { padding: 15px 0; }
  .manifesto__facts { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px var(--gut); }
  .collection-head__title { font-size: clamp(32px, 9vw, 44px); }
  .detail__media { aspect-ratio: 4 / 5; }
  .colophon__cols { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .colophon__col, .colophon__col + .colophon__col {
    border-left: 0; padding: 0 0 14px;
  }
  .colophon__col + .colophon__col {
    border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    padding-top: 14px;
  }
  .colophon__base { flex-direction: column; align-items: flex-start; }
}

/* Keep the layout itself inside the viewport at 390/1440: long serif words,
   the opening image and the product rail must never widen the document. */
h1, h2, h3, .masthead__brand, .opening__title, .edit__title,
.collection-head__title, .detail__title, .toc__name, .colophon__brand {
  overflow-wrap: anywhere; word-break: normal;
}
.opening, .edit, .rail, .manifesto, .notes, .detail, .colophon { min-width: 0; max-width: 100%; }
.rail > *, .edit__head > *, .colophon__col > * { min-width: 0; }
img { max-width: 100%; height: auto; }
