@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f1eb;
  --ink: #2b171e;
  --muted: #655158;
  --plum: #351a24;
  --rose: #e9aebc;
  --rule: #d9cac6;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}

a { color: inherit; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 400;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .6rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer { padding-inline: var(--gutter); }

.navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 100rem;
  min-height: 4.75rem;
  margin: 0 auto;
}

.nav-link,
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-link {
  justify-self: start;
  padding-block: .65rem;
  text-decoration: none;
}

.nav-link:hover { text-decoration: underline; }

.nav-about { justify-self: end; }

.wordmark {
  font-size: clamp(1.95rem, 4.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  min-height: clamp(32rem, 41vw, 44rem);
  background: var(--plum);
  color: var(--paper);
}

.hero-copy {
  align-self: center;
  justify-self: end;
  width: min(100%, 44rem);
  padding: 3.75rem clamp(1.25rem, 3vw, 4rem) 3.75rem var(--gutter);
}

.hero .eyebrow {
  color: var(--rose);
  margin-bottom: 1.45rem;
}

.hero h1 {
  font-size: clamp(4.15rem, 8.1vw, 9rem);
  letter-spacing: -.045em;
  line-height: .83;
}

.hero h1 em {
  display: block;
  color: var(--rose);
}

.hero-description { margin-top: 1.7rem; }

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: 1.7rem;
  padding: .9rem 1.1rem;
  background: var(--paper);
  color: var(--ink);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-link:hover { background: var(--rose); }
.hero-link:focus-visible { outline-color: var(--paper); }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: #5d343b;
}

.hero-photo img {
  position: absolute;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.collection {
  max-width: 100rem;
  margin: 0 auto;
  padding: clamp(3.25rem, 6vw, 6rem) var(--gutter);
}

.collection-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: .6rem;
  margin-bottom: 1.55rem;
}

.collection h2,
.about h2,
.detail-copy h2 {
  font-size: clamp(3rem, 5.7vw, 6rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.collection-header > p {
  color: var(--muted);
  font-size: .86rem;
}

.collection-header span { margin-inline: .3em; }

.dress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.95rem, 2.4vw, 2.4rem);
}

.dress-photo {
  aspect-ratio: 5 / 9;
  object-fit: cover;
  object-position: center 67%;
  background: #c6ac9b;
}

.dress-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding-block: .95rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.dress h3 {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1;
}

.dress-caption p, .dress-notes, .concept-note {
  color: var(--muted);
  font-size: .83rem;
}

.dress-caption p { margin-top: .3rem; }
.dress-notes { margin-top: .65rem; }
.concept-note { margin-top: 1.55rem; }

.dress-open,
.detail-close {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.dress-open:hover,
.detail-close:hover {
  background: var(--plum);
  color: var(--paper);
}

.dress-open:focus-visible,
.detail-close:focus-visible { outline-color: var(--ink); }

.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.4rem clamp(2rem, 8vw, 10rem);
  padding: clamp(3rem, 6vw, 6rem) max(var(--gutter), calc((100% - 87rem) / 2));
  background: #ebd7d9;
}

.about p { max-width: 33rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.25rem;
}

.site-footer .wordmark { font-size: clamp(1.7rem, 4vw, 2.15rem); }

dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop { background: rgb(27 12 19 / 75%); }

body:has(dialog[open]) { overflow: hidden; }

.detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-image {
  height: min(80dvh, 43rem);
  object-fit: contain;
  background: #c7a382;
}

.detail-copy {
  align-self: center;
  padding: 4.5rem 1.8rem 2rem;
}

.detail-copy h2 {
  margin-block: .65rem 1rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.detail-sizes {
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 700;
}

.detail-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: var(--paper);
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .hero { min-height: 30rem; }
  .hero h1 { font-size: clamp(3.5rem, 8.6vw, 5.1rem); }
}

@media (max-width: 620px) {
  .navigation { min-height: 3.9rem; }
  .navigation .nav-link { font-size: .65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy {
    justify-self: center;
    padding: 2.5rem var(--gutter) 2rem;
    text-align: center;
  }
  .hero h1 { font-size: clamp(3.15rem, 13.8vw, 5.65rem); }
  .hero h1 em { display: inline; }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-description { margin-top: 1.15rem; }
  .hero-link { margin-top: 1.15rem; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .dress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dress h3 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-image { height: min(56dvh, 27rem); }
  .detail-copy { padding: 1.35rem; }
}

@media (max-width: 340px) {
  .hero h1 em { display: block; }
  .dress-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
