:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #7a7a7a;
  --line: #e7e7e7;
  --photo: #ffffff;
  --accent: #9a8155;
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.frame {
  width: min(1280px, calc(100% - 4rem));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .frame {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "eye mark action";
  align-items: center;
  min-height: 5.25rem;
  gap: 1.5rem;
}

.wordmark {
  grid-area: mark;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-header .eyebrow {
  grid-area: eye;
  justify-self: start;
}

.header-action {
  grid-area: action;
  justify-self: end;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.header-action:hover { border-bottom-color: var(--ink); }

/* Masthead */

.masthead {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.lede {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Catalogue grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 2.5rem;
  padding-bottom: 6rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.card-photo {
  position: relative;
  background: var(--photo);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-photo img,
.hero-frame img,
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-photo img {
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-photo .photo-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.card:hover .card-photo img,
.card:focus-visible .card-photo img {
  transform: scale(1.03);
}

.card:hover .photo-hover,
.card:focus-visible .photo-hover {
  opacity: 1;
}

.card-body {
  margin-top: 1.5rem;
  text-align: center;
}

.card h2,
.details h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.12em;
}

.card h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.card-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.card-price {
  display: inline-flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.price-label {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 3rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-footer .frame {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.site-footer p { margin: 0; }

.site-footer p:first-child {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-footer .eyebrow {
  justify-self: center;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .frame p:last-child { justify-self: end; }

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.1rem;
}

.site-footer a:hover { border-bottom-color: #ffffff; }

/* Model page */

.model-page { padding: 2.5rem 0 6rem; }

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link::before { content: "\2190\00a0\00a0"; }

.back-link:hover { color: var(--ink); }

.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 5rem;
  align-items: start;
}

.hero-frame {
  background: var(--photo);
  aspect-ratio: 3 / 4;
  max-height: 82vh;
  margin: 0 auto;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  overflow-x: auto;
}

.thumbs button,
.swatch {
  background: transparent;
  cursor: pointer;
}

.thumbs button {
  flex: 0 0 4.5rem;
  height: 6rem;
  padding: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: var(--photo);
  opacity: 0.6;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.thumbs button:hover { opacity: 0.85; }

.thumbs button[aria-pressed="true"] {
  opacity: 1;
  border-bottom-color: var(--ink);
}

.details {
  position: sticky;
  top: 8rem;
  padding-top: 1rem;
}

.details h1 {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--line);
}

.spec-list dt,
.spec-list dd {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.spec-list dd {
  justify-content: flex-end;
  font-size: 0.95rem;
  font-weight: 400;
}

.variant-label {
  margin: 2.25rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.swatch[aria-pressed="true"] { color: var(--ink); }

.dot {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--paper), 0 0 0 4px transparent;
  transition: box-shadow 0.25s ease;
}

.swatch:hover .dot,
.swatch[aria-pressed="true"] .dot {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--paper), 0 0 0 4px var(--ink);
}

.trade-note {
  margin: 2.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.button {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  padding: 1.15rem 1.5rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

/* Inquiry form */

.form-page {
  max-width: 36rem;
  padding-bottom: 6rem;
}

.form-page .masthead { padding-bottom: 2.5rem; }

.form-page .lede a { color: var(--ink); }

form { margin-top: 1rem; }

.field { margin: 0 0 1.75rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cfcfcf;
  background: transparent;
  padding: 0.6rem 0;
  border-radius: 0;
  font-weight: 400;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field textarea { min-height: 7rem; resize: vertical; }

form .button { margin-top: 2.25rem; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.errors {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: #8a2a20;
  font-size: 0.9rem;
}

.confirm {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.status {
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1.75rem;
  }

  .model-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-frame { max-height: 70vh; }

  .details { position: static; padding-top: 0; }
}

@media (max-width: 640px) {
  .frame { width: calc(100% - 2.5rem); }

  .site-header .frame {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "mark action";
    min-height: 4rem;
    gap: 1rem;
  }

  .site-header .eyebrow { display: none; }

  .wordmark {
    justify-self: start;
    font-size: 1.3rem;
    letter-spacing: 0.32em;
    margin-right: 0;
  }

  .header-action {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    white-space: nowrap;
  }

  .masthead { padding: 3.25rem 0 2.75rem; }

  .lede { font-size: 0.9rem; }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 1rem;
    padding-bottom: 4rem;
  }

  .card-body { margin-top: 1rem; }

  .card h2 { font-size: 1.05rem; letter-spacing: 0.08em; }

  .card-meta { font-size: 0.7rem; }

  .card-price {
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
  }

  .price-label { font-size: 0.55rem; }

  .model-page { padding-top: 1.5rem; }

  .back-link { margin-bottom: 1.25rem; }

  .site-footer { padding: 2.25rem 0; }

  .site-footer .frame {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .site-footer .eyebrow,
  .site-footer .frame p:last-child { justify-self: center; }
}
