@font-face {
  font-family: "Allure Serif";
  src: url("assets/fonts/serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Allure Serif";
  src: url("assets/fonts/serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Allure Sans";
  src: url("assets/fonts/sans.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ivory: #fffcf7;
  --ink: #26221e;
  --muted: #665e55;
  --accent: #775438;
  --line: #ded7cb;
  --serif: "Allure Serif", Georgia, serif;
  --sans: "Allure Sans", Arial, sans-serif;
  --gutter: clamp(18px, 5.1vw, 82px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #86562e; outline-offset: 5px; }
.shell { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip-link { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 10px 18px; background: var(--ivory); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { display: block; width: fit-content; text-decoration: none; }
.brand-mark {
  display: block;
  position: relative;
  overflow: hidden;
  width: 174px;
  aspect-ratio: 572 / 224;
  mix-blend-mode: multiply;
}

/* Display the original lettering on the page's light background. */
.brand-mark img {
  position: absolute;
  left: calc(-64 / 572 * 100%);
  top: calc(-244 / 224 * 100%);
  width: calc(712 / 572 * 100%);
  max-width: none;
  height: auto;
  filter: grayscale(1) invert(1) contrast(1.3);
}

.footer-brand .brand-mark { width: 132px; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 47px); }
.main-nav a { padding: 10px 0; text-decoration: none; font-size: 13px; }
.main-nav a:hover, .back:hover, .phone:hover { text-decoration: underline; text-underline-offset: 5px; }

.outline-button, .solid-button {
  min-height: 48px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.outline-button:hover { background: var(--ink); color: var(--ivory); }
.header-contact { justify-self: end; min-height: 42px; gap: 15px; }
.solid-button { color: var(--ivory); background: var(--ink); }
.solid-button:hover { background: #514132; }
.solid-button span, .arrow { font-size: 17px; line-height: 1; }
.arrow { display: inline-block; transform: rotate(-40deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  padding-block: clamp(45px, 5vw, 77px) clamp(52px, 6.1vw, 98px);
}

.eyebrow { color: var(--accent); font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .18em; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 27px; height: 1px; background: #a87c52; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(48px, 6.05vw, 95px); line-height: .96; letter-spacing: -.075em; margin-block: 18px 26px; }
.hero-line { white-space: nowrap; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-description { font-size: clamp(14px, 1.22vw, 16px); color: var(--muted); line-height: 1.72; max-width: 37ch; margin-bottom: 28px; }
.hero-looks { display: grid; grid-template-columns: 1.12fr .88fr; gap: 12px; align-items: end; }
.hero-look { display: block; position: relative; overflow: hidden; background: #d9cbb9; text-decoration: none; }
.hero-look-women { aspect-ratio: .73; }
.hero-look-men { aspect-ratio: .74; margin-bottom: -16px; }
.hero-look > img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-label { position: absolute; z-index: 1; inset: auto 12px 12px; width: fit-content; max-width: calc(100% - 24px); padding: 5px 9px; color: white; background: #26221e; font-size: 12px; letter-spacing: .03em; }

.collection { background: var(--ivory); border-block: 1px solid var(--line); scroll-margin-top: 16px; padding-block: 45px 71px; }
.collection-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.collection h2, .contact h2 { font-size: clamp(36px, 4.1vw, 64px); letter-spacing: -.055em; line-height: 1.08; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button, .gallery-views button {
  background: transparent;
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 6px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover, .gallery-views button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"], .gallery-views button[aria-pressed="true"] { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.count { color: var(--muted); font-size: 12px; margin-block: 14px 19px; min-height: 1.55em; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(15px, 2vw, 32px); row-gap: 34px; }
.product { min-width: 0; }
.product-button { display: flex; flex-direction: column; align-items: stretch; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; }
.product-photo, .gallery-image {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ebe9e5;
}
.product-photo { aspect-ratio: 2 / 3; }
.model-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  isolation: isolate;
  container-type: size;
}

.photo-plane {
  --crop-width: min(100cqw, calc(100cqh * var(--source-aspect)));
  --crop-height: calc(var(--crop-width) / var(--source-aspect));
  position: absolute;
  width: var(--crop-width);
  height: var(--crop-height);
  left: calc(50cqw - var(--crop-width) / 2);
  top: calc(50cqh - var(--crop-height) / 2);
}

/* Bring distant jackets up to catalog size, retaining the full garment and its background. */
.blurred-photo .photo-plane {
  --crop-width: max(100cqw, calc(100cqh * var(--source-aspect)),
    min(calc(90cqw / var(--jacket-width)), calc(90cqh * var(--source-aspect) / var(--jacket-height))));
  left: clamp(calc(100cqw - var(--crop-width)), calc(50cqw - var(--crop-width) * var(--jacket-center-x)), 0px);
  top: clamp(calc(100cqh - var(--crop-height)), calc(50cqh - var(--crop-height) * var(--jacket-center-y)), 0px);
}

.photo-plane img { width: 100%; height: 100%; }
.photo-label-cover { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.blurred-photo .photo-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(var(--background-blur, 10px));
  mask-image: var(--background-mask);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.product-info { min-height: 77px; flex: 1; display: flex; justify-content: space-between; align-items: start; gap: 8px; padding-block: 13px 8px; border-bottom: 1px solid var(--line); }
.product-info > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.product-name { display: block; font: 400 clamp(18px, 1.94vw, 27px)/1.14 var(--serif); letter-spacing: -.034em; }
.product-color { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.product-arrow { display: grid; place-items: center; flex: none; width: 34px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); font-size: 14px; transition: background-color .2s, color .2s; }
.product-arrow .arrow { font-size: inherit; }
.product-button:hover .product-arrow { color: var(--ivory); background: var(--ink); }

.contact { background: #ede6d9; padding-block: 42px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.contact p { color: var(--muted); margin-top: 12px; }
.contact-actions { display: grid; justify-items: center; gap: 10px; flex-shrink: 0; }
.phone, .back { color: var(--ink); text-decoration: none; font-size: 13px; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 86px; gap: 15px; }
.back span { margin-left: 6px; }

.product-dialog { max-width: min(910px, calc(100% - 36px)); max-height: calc(100dvh - 36px); width: 100%; padding: 22px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); }
.product-dialog::backdrop { background: rgb(35 28 21 / .58); }
.close-dialog { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; font-size: 25px; line-height: 1; }
.close-dialog:hover { background: var(--ink); color: var(--ivory); }
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 51px); align-items: center; }
.gallery-image { aspect-ratio: 4 / 5; }
.gallery-image .model-photo { object-fit: contain; }
.gallery-image .original { width: 100%; height: 100%; position: absolute; object-fit: contain; }
.gallery-views { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.gallery-views button { font-size: 12px; padding-inline: 10px; }
.detail-copy { padding-block: 24px; }
.detail-copy h2 { margin-block: 10px; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.052em; line-height: 1.08; }
.detail-color { color: var(--muted); font-size: 13px; }
.detail-description { border-top: 1px solid var(--line); padding-top: 17px; margin-block: 19px 23px; }
.detail-note { color: var(--muted); font-size: 12px; margin-top: 12px; max-width: 34ch; }

@media (max-width: 960px) {
  .hero { gap: 26px; }
  h1 { font-size: clamp(39px, 6.05vw, 68px); }
}

@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 10px; }
  .brand-mark { width: 134px; }
  .footer-brand .brand-mark { width: 118px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 30px; padding-block: 2px 1px; }
  .main-nav a { display: grid; align-items: center; min-height: 43px; padding: 0; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 34px 44px; }
  h1 { font-size: clamp(40px, 10.8vw, 81px); margin-block: 14px 19px; }
  .hero-description { margin-bottom: 20px; }
  .hero-looks { gap: 8px; max-width: 530px; width: 100%; }
  .hero-look-men { margin-bottom: -8px; }
  .hero-label { inset: auto 8px 8px; max-width: calc(100% - 16px); }
  .collection { padding-block: 32px 49px; }
  .collection-head { align-items: flex-start; flex-direction: column; gap: 15px; padding-bottom: 13px; }
  .product-grid { row-gap: 23px; }
  .product-info { min-height: 67px; gap: 5px; padding-top: 10px; }
  .product-arrow { width: 27px; font-size: 12px; }
  .contact-inner { align-items: flex-start; flex-direction: column; gap: 19px; }
  .contact-actions { justify-items: start; }
  .footer { min-height: 73px; }
  .product-dialog { padding: 12px; max-width: calc(100% - 22px); max-height: calc(100dvh - 22px); }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .close-dialog { top: 17px; right: 17px; }
  .detail-copy { padding: 0 3px 8px; }
  .detail-description { padding-top: 11px; margin-block: 12px 14px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .blurred-photo { --background-blur: 8px; }
  .product-info { min-height: 64px; }
  .product-name { font-size: clamp(21px, 5.8vw, 25px); }
}

@media (max-width: 380px) {
  .header-contact { font-size: 12px; padding-inline: 10px; gap: 6px; }
  .brand-mark, .footer-brand .brand-mark { width: 116px; }
  .header-inner { column-gap: 7px; }
  .filters { gap: 5px; }
  .filters button { padding-inline: 10px; font-size: 12px; }
  .hero-label { font-size: 11px; }
}

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