:root {
  --frame: #eceae6;
  --panel: #f8f7f4;
  --ink: #0c0b0a;
  --ink-soft: #57524d;
  --black: #0c0b0a;
  --on-dark: #f8f7f4;
  --on-dark-soft: #cbc5bd;
  --rule: #c9c5be;
  --stone: #8d857a;
  --sand: #d8d2c8;
  --ext: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --gutter: clamp(1rem, 2.6vw, 2.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--ext);
  font-stretch: 108%;
  font-weight: 350;
  font-size: 0.9375rem;
  line-height: 1.6;
}

::selection { background: var(--ink); color: var(--panel); }
.dark ::selection { background: var(--on-dark); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -999rem; top: 0; padding: 0.75rem 1rem; background: var(--ink); color: var(--on-dark); }
.skip:focus { left: 0; z-index: 2; }

.caps {
  font-stretch: 125%;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page { max-width: 90rem; margin: 0 auto; padding: 0 var(--gutter) var(--gutter); }
.dark { background: var(--black); color: var(--on-dark); }

/* Header */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: 1.75rem 0;
}
.top nav { display: flex; gap: clamp(1rem, 2.6vw, 2.75rem); }
.top nav:first-of-type { justify-content: flex-end; }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

.wordmark { display: grid; justify-items: center; gap: 0.45rem; text-decoration: none; }
.wordmark b {
  font-stretch: 125%;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.belt { display: block; width: 2.4rem; height: 0.7rem; fill: currentColor; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(36rem, 70vh); }
.hero-text {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}
h1 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 250;
  font-size: clamp(1.5rem, 2.9vw, 2.625rem);
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-text p {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--on-dark-soft);
}
.hero-text a { margin-top: 2.25rem; }

/* Right-hand hero panel. Shows the mark until a photograph is supplied:
   save it as images/hero.jpg and add the class "plate--photo" to the panel. */
.plate {
  display: grid;
  place-items: center;
  min-height: 16rem;
  background-color: var(--stone);
  color: var(--panel);
}
.plate svg { width: clamp(7rem, 15vw, 13rem); height: auto; fill: currentColor; }
.plate--photo { background-image: url("images/hero.jpg"); background-size: cover; background-position: center; }
.plate--photo svg { display: none; }

/* Brands */
.brands { background: var(--sand); padding: clamp(2.75rem, 5vw, 4.25rem) clamp(1.25rem, 3vw, 2.5rem); text-align: center; }
.brands h2 { margin: 0; }
.brands p {
  margin: 1.25rem auto 0;
  max-width: 24em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  text-wrap: balance;
}
.roundels { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.75rem; }
.roundel {
  display: grid;
  place-items: center;
  width: clamp(6rem, 11vw, 8.5rem);
  aspect-ratio: 1;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--panel);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.05;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.roundel:hover { background: var(--ink); color: var(--on-dark); }
.roundel img { max-width: 100%; max-height: 100%; }

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.5rem;
  background: var(--panel);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}
.about .say { grid-column: 1 / span 7; }
.about h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.about .say p { margin: 1.75rem 0 0; max-width: 34em; color: var(--ink-soft); }
.facts { grid-column: 9 / span 4; margin: 0; align-self: end; border-top: 1px solid var(--rule); }
.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 450; }

/* Contact and footer */
.foot { padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem) 1.5rem; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; margin: 0; }
.routes dt { color: var(--on-dark-soft); }
.routes dd {
  margin: 0.7rem 0 0;
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.routes address { font-style: normal; font-variant-numeric: lining-nums; }
.foot .wordmark { margin: clamp(3.5rem, 7vw, 6rem) auto 0; width: max-content; max-width: 100%; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(248 247 244 / 0.25);
  font-size: 0.8125rem;
  font-stretch: 100%;
  color: var(--on-dark-soft);
}

/* Text pages: privacy, terms */
.doc { background: var(--panel); padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem); }
.doc-inner { max-width: 44rem; }
.doc h1 {
  font-family: var(--serif);
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: none;
}
.doc .updated { margin: 1rem 0 0; color: var(--ink-soft); }
.doc h2 { margin: 2.75rem 0 0.6rem; font-stretch: 112%; font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.doc p, .doc address { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; font-style: normal; }

/* Not found */
.lost { display: grid; align-content: center; justify-items: center; min-height: min(32rem, 64vh); padding: 4rem 1.5rem; text-align: center; }
.lost p {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--on-dark-soft);
}
.lost a { margin-top: 2.25rem; }

@media (max-width: 56rem) {
  .top { grid-template-columns: auto auto; justify-content: center; row-gap: 1rem; column-gap: clamp(1rem, 2.6vw, 2.75rem); }
  .top .wordmark { order: -1; grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .about .say, .facts { grid-column: 1 / -1; }
  .routes { grid-template-columns: 1fr; }
}
