:root {
  --black: #090809;
  --ink: #111012;
  --surface: #171518;
  --surface-2: #211d21;
  --cream: #f5f0e7;
  --muted: #b8afb5;
  --gold: #d5b269;
  --gold-light: #f2d58c;
  --ruby: #7d1736;
  --line: rgba(213, 178, 105, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 89% 15%, rgba(125, 23, 54, 0.22), transparent 25rem),
    var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.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;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--gold-light);
  border-radius: 0.3rem;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 1.2rem;
  color: var(--black);
  background: linear-gradient(100deg, #a67c32, #f2d58c 48%, #b68b3e);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1320px);
  min-height: 6.2rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand img {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
}
.brand span {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.28em;
}

.main-nav { display: flex; gap: clamp(1.4rem, 3vw, 2.8rem); }
.main-nav a {
  position: relative;
  color: #ded7da;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.72rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.menu-button > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.32rem 0;
  background: currentColor;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(21rem, 0.83fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 5rem) 0 clamp(4.5rem, 8vw, 8rem);
}

.gallery { min-width: 0; }
.main-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #d8d3c0;
}
.main-photo-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
}
.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease, transform 500ms ease;
}
.main-photo-wrap:hover .main-photo { transform: scale(1.012); }
.main-photo.is-changing { opacity: 0.45; }
.launch-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  color: var(--cream);
  background: rgba(9, 8, 9, 0.84);
  border: 1px solid rgba(242, 213, 140, 0.55);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.photo-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.38rem 0.65rem;
  color: #fff;
  background: rgba(9, 8, 9, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  margin-top: 0.8rem;
}
.thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #252125;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.thumbnail.active { border-color: var(--gold-light); opacity: 1; }
.thumbnail:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.product-info {
  position: sticky;
  top: 1.5rem;
  padding: clamp(0rem, 2vw, 1.4rem) 0;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.product-info h1,
.editorial-copy h2,
.section-heading h2,
.modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}
.product-info h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  letter-spacing: -0.045em;
}
.product-subtitle {
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.benefits { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.benefits span {
  padding: 0.38rem 0.7rem;
  color: #dcd5da;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
}
.intro-copy {
  max-width: 35rem;
  margin: 1.6rem 0 1.9rem;
  color: #d1cace;
  line-height: 1.78;
}

.option-group {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.option-group legend { padding: 0; color: #c4bbc0; font-size: 0.9rem; }
.option-group legend strong { color: var(--cream); font-weight: 650; }
.color-options, .size-options { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }
.color-option,
.size-options button {
  min-height: 2.75rem;
  color: #d9d1d5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
}
.color-swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14);
}
.color-swatch.red { background: #d70c35; }
.color-swatch.ruby { background: #b95776; }
.color-swatch.black { background: #111; }
.color-option:hover, .size-options button:hover { color: #fff; border-color: rgba(242, 213, 140, 0.7); }
.color-option.selected, .size-options button.selected {
  color: var(--black);
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.color-option.selected .color-swatch { border-color: rgba(0, 0, 0, 0.25); }

.size-group { position: relative; }
.size-group > .text-button { position: absolute; top: 1.25rem; right: 0; }
.text-button {
  padding: 0;
  color: var(--gold-light);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.85rem;
}
.size-options button { min-width: 3rem; padding: 0.55rem 0.75rem; }

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.7rem;
  padding: 0.8rem 1.1rem;
  color: #191310;
  background: linear-gradient(110deg, #b88a3d, #f0d488 52%, #bd9148);
  border: 0;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 160ms ease, transform 160ms ease;
}
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.primary-button svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.choice-summary { margin: 0.7rem 0 0; color: var(--muted); text-align: center; font-size: 0.82rem; }
.choice-summary strong { color: #e6dde2; }

.purchase-section { margin-top: 0.5rem; min-width: 0; }
.purchase-note { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.yampi-purchase { padding: 1.25rem; color: #211d21; background: #fff; border-radius: 0.5rem; min-width: 0; }
.yampi-purchase select, .yampi-purchase input { max-width: 100%; font-size: 1rem; }
#yampi-error { color: #8b1936; }
.yampi-purchase .ymp-buy-button-holder { max-width: none; }
.yampi-purchase .ymp-image { margin: 0 auto; max-width: 100%; }
.yampi-purchase .ymp-buy-button { background: linear-gradient(110deg, #b88a3d, #f0d488 52%, #bd9148) !important; color: #191310 !important; border-radius: 0.25rem !important; min-height: 3.7rem; }
.yampi-purchase .ymp-buy-button:focus-visible { outline: 2px solid #7d1736; outline-offset: 3px; }

.editorial-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.65fr 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 10rem) max(1rem, calc((100vw - 1320px) / 2));
  background:
    linear-gradient(100deg, rgba(125, 23, 54, 0.9), rgba(58, 15, 31, 0.85)),
    var(--ruby);
}
.editorial-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(242, 213, 140, 0.22), transparent 24rem);
  content: "";
}
.editorial-mark {
  position: relative;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 0.75;
  -webkit-text-stroke: 1px rgba(242, 213, 140, 0.46);
}
.editorial-copy, .detail-list { position: relative; }
.editorial-copy h2 { font-size: clamp(2.45rem, 5vw, 5rem); letter-spacing: -0.04em; }
.editorial-copy > p:last-child { max-width: 38rem; margin: 1.6rem 0 0; color: #eadde2; }
.detail-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.detail-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.7rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #f3eaf0;
}
.detail-list span { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.12em; }

.size-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 8rem);
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 4.7rem); letter-spacing: -0.04em; }
.section-heading > p:last-child { color: var(--muted); }
.size-table-wrap { align-self: center; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
th { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; }
td { color: #dcd4d8; }
td strong { color: var(--cream); font-family: var(--serif); font-size: 1.4rem; }
.special-size-note { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.85rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-brand img { width: 3.5rem; height: 3.5rem; border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--serif); letter-spacing: 0.22em; }
.footer-brand span, .site-footer > p { color: var(--muted); font-size: 0.8rem; }
.site-footer > p { max-width: 29rem; margin: 0; text-align: right; }

.modal {
  width: min(100% - 2rem, 33rem);
  padding: clamp(1.4rem, 4vw, 2.3rem);
  color: var(--cream);
  background: #151316;
  border: 1px solid var(--line);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.55);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal h2 { font-size: 2rem; }
.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}
.modal-size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 1.6rem 0; }
.modal-size-grid span { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem; background: var(--surface-2); text-align: center; }
.modal-size-grid small { color: var(--muted); }
.modal-size-grid strong { color: var(--gold-light); font-family: var(--serif); font-size: 1.5rem; }
.modal > p { color: var(--muted); }
.order-card { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; margin: 1.6rem 0; padding: 0.75rem; background: var(--surface-2); }
.order-card img { width: 5.5rem; height: 5.5rem; object-fit: cover; }
.order-card div { display: flex; flex-direction: column; gap: 0.35rem; }
.order-card span { color: var(--muted); font-size: 0.88rem; }
.copy-status { min-height: 1.5rem; margin: 0.7rem 0 0; color: var(--gold-light) !important; text-align: center; font-size: 0.85rem; }

@media (max-width: 900px) {
  .site-header { min-height: 5.25rem; }
  .brand img { width: 3rem; height: 3rem; }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1rem;
    background: rgba(9, 8, 9, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 0; }
  .product-shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-info { position: static; padding: 0; }
  .product-info h1 { max-width: 13ch; font-size: clamp(2.8rem, 11vw, 5rem); }
  .editorial-section { grid-template-columns: 0.45fr 1.55fr; }
  .detail-list { grid-column: 1 / -1; }
  .size-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .announcement { min-height: 2.8rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .brand span { font-size: 1.05rem; letter-spacing: 0.2em; }
  .product-shell { width: 100%; padding-top: 0; }
  .gallery { display: flex; flex-direction: column; }
  .main-photo-wrap { aspect-ratio: 1 / 1.08; }
  .main-photo { object-fit: cover; }
  .thumbnails {
    order: -1;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin: 0;
    padding: 0.7rem 1rem;
    scrollbar-width: none;
  }
  .thumbnails::-webkit-scrollbar { display: none; }
  .thumbnail { flex: 0 0 4.1rem; }
  .product-info { padding: 0 1rem; }
  .benefits span { font-size: 0.74rem; }
  .color-option { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
  .size-options button { flex: 1 0 3rem; }
  .editorial-section { grid-template-columns: 1fr; padding-right: 1rem; padding-left: 1rem; }
  .editorial-mark { position: absolute; top: 2rem; right: -0.5rem; opacity: 0.4; }
  .editorial-copy { z-index: 1; }
  .editorial-copy h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .size-section { padding-right: 1rem; padding-left: 1rem; }
  th, td { padding: 0.9rem 0.75rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer > p { text-align: left; }
  .modal-size-grid { grid-template-columns: repeat(2, 1fr); }
}

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