:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-deep: #e6dfd2;
  --card: #faf8f2;
  --ink: #1d1e1a;
  --muted: #6a6c64;
  --line: #cbc4b6;
  --olive: #485042;
  --rust: #a84f32;
  --white: #fffdf8;
  --radius: 2px;
  --page: min(1480px, calc(100vw - 56px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

img { display: block; max-width: 100%; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 5;
  width: var(--page);
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: .12em;
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50% 50% 44% 44%;
  position: relative;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 7px;
  left: 4px;
  top: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero {
  width: var(--page);
  min-height: 610px;
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: end;
  gap: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: 54px;
  right: 8%;
  border: 1px solid var(--line);
  border-radius: 50% 50% 44% 44%;
  opacity: .7;
}

.hero::after {
  content: "";
  position: absolute;
  width: 242px;
  height: 70px;
  top: 32px;
  right: calc(8% + 68px);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.hero-copy,
.hero-stats { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--rust);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 7.8vw, 126px);
  font-weight: 400;
  line-height: .83;
  letter-spacing: -.055em;
}

.hero h1 em {
  font-weight: 400;
  color: var(--olive);
}

.hero-intro {
  max-width: 620px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-stats div {
  padding: 22px 10px 22px 0;
}

.hero-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats strong,
.hero-stats span { display: block; }

.hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-index {
  position: absolute;
  right: -18px;
  bottom: 8px;
  margin: 0;
  color: var(--paper-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 13vw, 210px);
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.collection-index {
  padding: 74px max(28px, calc((100vw - min(1480px, calc(100vw - 56px))) / 2));
  background: var(--olive);
  color: var(--white);
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) 1fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.section-nav { display: grid; }

.section-nav a {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none;
  transition: color .16s ease, padding-left .16s ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: #e4c5ad;
  padding-left: 8px;
}

.nav-number,
.nav-count {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.8vw, 42px);
}

.catalog-tools {
  position: sticky;
  z-index: 4;
  top: 0;
  width: 100%;
  min-height: 82px;
  padding: 14px max(28px, calc((100vw - min(1480px, calc(100vw - 56px))) / 2));
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, .34fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(243, 239, 230, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.search-field,
.select-field {
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .52);
}

.search-field { padding: 0 15px; gap: 12px; }

.search-field svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-field input::placeholder { color: var(--muted); }

.key-hint {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 11px;
}

.select-field { position: relative; }

.select-field::after {
  content: "↓";
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.select-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.results-count {
  min-width: 160px;
  margin: 0 0 0 8px;
  color: var(--muted);
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.catalog {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 120px;
}

.catalog-section {
  padding-top: 88px;
}

.catalog-section[hidden],
.product-card[hidden] { display: none; }

.catalog-heading {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}

.catalog-heading .section-number {
  color: var(--rust);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
}

.catalog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.03em;
}

.catalog-heading p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 18px;
}

.product-card {
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-media {
  position: relative;
  background: var(--paper-deep);
}

.product-image-button {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .28s ease;
}

.product-image-button:hover .product-main-image { transform: scale(1.018); }

.card-order,
.image-count-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  min-height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  background: rgba(29, 30, 26, .86);
  color: var(--white);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .08em;
  pointer-events: none;
}

.card-order { left: 10px; }
.image-count-badge { right: 10px; }

.thumbnail-row {
  padding-top: 8px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbnail-row button {
  width: 48px;
  height: 56px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  background: var(--paper-deep);
  cursor: pointer;
}

.thumbnail-row button[aria-pressed="true"] { border-color: var(--ink); }

.thumbnail-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding: 17px 2px 0; }

.product-collection {
  margin: 0 0 8px;
  color: var(--rust);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.product-info h3 {
  min-height: 2.5em;
  margin: 0 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.24;
}

.product-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.product-facts div {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.product-facts dt,
.product-facts dd { margin: 0; }

.product-facts dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-facts dd {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
}

.product-facts .price-value {
  font-size: 15px;
  font-weight: 750;
}

.source-link {
  display: none;
  margin-top: 16px;
  color: var(--muted);
  text-underline-offset: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.source-link:hover { color: var(--rust); }

.empty-state {
  width: var(--page);
  margin: 72px auto 0;
  padding: 80px 24px;
  border: 1px dashed var(--line);
  text-align: center;
}

.empty-state p {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.empty-state button {
  padding: 11px 17px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.site-footer {
  min-height: 180px;
  padding: 52px max(28px, calc((100vw - min(1480px, calc(100vw - 56px))) / 2));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  background: var(--ink);
  color: var(--white);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer .wordmark-mark::after { background: var(--ink); }

.site-footer p {
  max-width: 500px;
  margin: 0;
  color: #c9c5ba;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.image-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.image-dialog::backdrop {
  background: rgba(18, 19, 16, .86);
  backdrop-filter: blur(6px);
}

.dialog-toolbar {
  height: 58px;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.dialog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.icon-button,
.dialog-arrow {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.dialog-stage {
  min-height: 52vh;
  max-height: 68vh;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  background: #ddd7cb;
}

.dialog-stage img {
  width: 100%;
  height: 64vh;
  max-height: 730px;
  object-fit: contain;
}

.dialog-arrow {
  width: 46px;
  height: 46px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 30, 26, .35);
  border-radius: 50%;
}

.dialog-arrow:disabled { opacity: .25; cursor: default; }

.dialog-caption {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dialog-caption .eyebrow { margin-bottom: 8px; }

.dialog-caption h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.dialog-meta {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.dialog-meta p { margin: 0; }

.dialog-meta span,
.dialog-meta strong { display: block; }

.dialog-meta span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.dialog-meta strong { font-size: 12px; }

.dialog-meta a {
  display: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; align-items: initial; gap: 50px; }
  .hero-stats { max-width: 620px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: 1fr 240px; }
  .results-count { grid-column: 1 / -1; margin: 0; min-width: 0; text-align: left; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { min-height: 78px; }
  .header-note { display: none; }
  .hero { min-height: auto; padding: 66px 0 58px; }
  .hero::before { width: 230px; height: 230px; right: -80px; }
  .hero::after { width: 150px; height: 44px; right: -40px; }
  .hero h1 { font-size: clamp(50px, 16vw, 78px); }
  .hero-stats strong { font-size: 28px; }
  .hero-intro { font-size: 14px; }
  .collection-index { padding: 52px 16px; }
  .section-kicker,
  .section-nav a { grid-template-columns: 52px 1fr auto; gap: 10px; }
  .nav-name { font-size: 24px; }
  .catalog-tools { padding: 12px 16px; grid-template-columns: 1fr; gap: 8px; }
  .results-count { padding: 3px 0; }
  .key-hint { display: none; }
  .catalog-section { padding-top: 62px; }
  .catalog-heading { grid-template-columns: 52px 1fr; gap: 10px; }
  .catalog-heading p { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
  .product-info h3 { font-size: 17px; }
  .product-facts div { grid-template-columns: 37px 1fr; gap: 6px; }
  .site-footer { padding: 42px 16px; flex-direction: column; align-items: flex-start; }
  .dialog-stage { grid-template-columns: 45px minmax(0, 1fr) 45px; }
  .dialog-stage img { height: 55vh; }
  .dialog-arrow { width: 36px; height: 36px; }
  .dialog-caption { grid-template-columns: 1fr; }
  .dialog-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-main-image { aspect-ratio: 1 / 1.12; }
  .product-info h3 { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Helvinda integration bar & catalogue CTAs */
.helvinda-bar {
  background: #8f1f24;
  color: #f6efe6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px calc((100vw - var(--page)) / 2);
}

.helvinda-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.helvinda-brand svg { border-radius: 6px; }

.helvinda-brand small {
  display: block;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.helvinda-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
}

.helvinda-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.helvinda-links a:hover { border-bottom-color: currentColor; }

.helvinda-links .helvinda-cta {
  border: 1px solid rgba(246, 239, 230, .55);
  border-radius: 999px;
  padding: 6px 14px;
}

.helvinda-links .helvinda-cta:hover {
  background: #f6efe6;
  color: #8f1f24;
  border-color: #f6efe6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.hero-button {
  display: inline-block;
  padding: 12px 22px;
  background: #8f1f24;
  color: #f6efe6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: var(--radius);
  border: 1px solid #8f1f24;
}

.hero-button:hover { background: #75181d; border-color: #75181d; }

.hero-button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-button--ghost:hover { background: var(--paper-deep); color: var(--ink); }

@media (max-width: 720px) {
  .helvinda-bar { padding: 10px 16px; }
  .helvinda-links a:not(.helvinda-cta) { display: none; }
}
