/* Yunki. Barlow and Barlow Condensed, SIL Open Font License 1.1, served from this site. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --ground: #070917;      /* the dark of the studio photographs */
  --raise: #10132a;
  --line: #262b4d;
  --line-strong: #4a5080;
  --ink: #eef0f8;
  --soft: #aab0cc;
  --rule: #f4c000;        /* the measuring yellow: rule, numerals, primary action */
  --on-rule: #14110a;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --narrow: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); scrollbar-color: var(--line-strong) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
::selection { background: var(--rule); color: var(--on-rule); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--rule); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rule); outline-offset: 3px; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 7.5vw, 3rem); line-height: 1.04; }
.note { max-width: 31rem; margin: 0.9rem 0 0; color: var(--soft); }

.skip { position: absolute; left: 1.25rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 999px; background: var(--rule); color: var(--on-rule); font-weight: 500; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* Top line */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem 0; }
.wordmark, .wordmark a { display: flex; align-items: center; gap: 0.55rem; }
.wordmark { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.wordmark a { text-decoration: none; }
.mark { display: block; width: 2.1rem; height: 2.1rem; border-radius: 0.45rem; }
.top { align-items: center; }
.status { margin: 0; font-family: var(--narrow); font-weight: 600; font-size: 1.15rem; color: var(--soft); }

/* Home: the photograph, measured */
.hero { position: relative; }
.hero .top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; }
.hero h1 { position: absolute; z-index: 2; top: 4.6rem; left: 1.25rem; right: 1.25rem; font-size: clamp(2.2rem, 10.2vw, 4.4rem); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--rule); font-variant-numeric: tabular-nums; white-space: nowrap; }

.shot { position: relative; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: 50% 38%; }
.shot::before, .shot::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.shot::before { top: 0; height: 34%; background: linear-gradient(var(--ground) 8%, transparent); }
.shot::after { bottom: 0; height: 10%; background: linear-gradient(transparent, var(--ground) 92%); }

.ruler { position: absolute; z-index: 2; left: 5%; right: 5%; top: 78.5%; animation: draw 1.1s var(--out) 0.25s backwards; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ruler svg { display: block; width: 100%; height: auto; overflow: visible; }
.ruler line { stroke: var(--rule); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ruler .base { stroke-width: 2; }
.ruler-nums { position: relative; height: 1rem; margin: 0.3rem 0 0; padding: 0; list-style: none; font-family: var(--narrow); font-weight: 600; font-size: 0.95rem; line-height: 1; color: var(--rule); font-variant-numeric: tabular-nums; }
.ruler-nums li { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; transition: opacity 0.25s var(--out); }
.ruler-nums.is-swapping li { opacity: 0; }

.under { position: relative; z-index: 2; margin-top: -0.75rem; padding-bottom: 3.75rem; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1rem; }
.scale-switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--raise); }
.scale-switch button { min-height: 2.75rem; padding: 0 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font-family: var(--narrow); font-weight: 600; font-size: 1.08rem; cursor: pointer; transition: background-color 0.25s var(--out), color 0.25s var(--out); }
.scale-switch button:hover { color: var(--ink); }
.scale-switch button[aria-pressed="true"] { background: var(--rule); color: var(--on-rule); }
.lede { max-width: 31rem; margin: 1.3rem 0 0; color: var(--soft); }
.lede strong { color: var(--ink); font-weight: 500; }

/* Primary action */
.go, .signup button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; border: 0; border-radius: 999px; background: var(--rule); color: var(--on-rule); font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: 0 0.7rem 1.2rem -0.5rem rgba(0, 0, 0, 0.7); transition: transform 0.25s var(--out), box-shadow 0.25s var(--out); }
.go:hover, .signup button:hover { transform: translateY(-2px); box-shadow: 0 1rem 1.5rem -0.5rem rgba(0, 0, 0, 0.75); }
.go:active, .signup button:active { transform: translateY(0); }
.signup button[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* From the shelf */
.shelf { padding-bottom: 4rem; }
.shelf h2 span { display: block; }
.solo { max-width: 26rem; margin: 1.75rem 0 0; }
.solo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 54%; border-radius: 4px; }
.solo figcaption { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.35; color: var(--soft); }
.solo figcaption b { display: block; color: var(--ink); font-weight: 500; }
.credit { margin: 1.1rem 0 0; font-size: 0.875rem; color: var(--soft); }

/* Drop: the places */
.drop { padding-bottom: 4rem; }
.places { margin: 1.75rem 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.places li { border-top: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.75rem; align-items: baseline; padding: 1.15rem 0 1.2rem; text-decoration: none; }
a.place { transition: transform 0.3s var(--out); }
a.place:hover { transform: translateX(0.4rem); }
.place .no { grid-row: span 2; font-family: var(--narrow); font-weight: 700; font-size: 2.6rem; line-height: 0.9; color: var(--rule); font-variant-numeric: tabular-nums; }
.place .name { font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.place .fact { color: var(--soft); font-size: 0.95rem; }

/* Waitlist */
.list { background: var(--raise); border-top: 1px solid var(--line); }
.list .wrap { padding-top: 3.25rem; padding-bottom: 3.5rem; }
.signup { max-width: 31rem; margin-top: 1.5rem; }
.pick { margin: 0 0 1.2rem; padding: 0; border: 0; }
.pick legend, .signup label.field { display: block; padding: 0; margin-bottom: 0.55rem; font-weight: 500; }
.pick-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: block; padding: 0.8rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; line-height: 1; cursor: pointer; transition: background-color 0.2s var(--out), color 0.2s var(--out), border-color 0.2s var(--out); }
.pick span:hover { border-color: var(--rule); }
.pick input:checked + span { background: var(--rule); border-color: var(--rule); color: var(--on-rule); }
.pick input:focus-visible + span { outline: 3px solid var(--rule); outline-offset: 3px; }
.signup-row { display: grid; gap: 0.75rem; }
.signup input[type="email"] { width: 100%; min-height: 3.25rem; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ground); color: var(--ink); caret-color: var(--rule); }
.signup input[type="email"]::placeholder { color: #8d94b5; }
.signup input[type="email"]:hover { border-color: var(--soft); }
.signup input[type="email"]:autofill, .signup input[type="email"]:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--rule); box-shadow: 0 0 0 100px var(--ground) inset; }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.signup-note { margin: 0.75rem 0 0; color: var(--soft); font-size: 0.95rem; }
.signup-status { min-height: 1.6em; margin: 0.6rem 0 0; font-weight: 500; }
.signup-status.is-done { color: var(--rule); }

/* How Yunki picks */
.picks { padding-top: 3.25rem; padding-bottom: 3rem; }
.picks dl { display: grid; gap: 1.6rem; margin: 1.75rem 0 0; }
.picks dt { font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.picks dd { max-width: 26rem; margin: 0.35rem 0 0; color: var(--soft); }

.brand-band { background: #f7bf06; }
.brand-band img { display: block; width: 100%; height: clamp(8.5rem, 22vw, 15rem); object-fit: cover; object-position: 53% 50%; }
.picks { padding-bottom: 4rem; }
.foot { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--soft); font-size: 0.95rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.foot p { margin: 0; }

/* Model page */
.model { padding-top: 2rem; padding-bottom: 4rem; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--soft); font-size: 0.95rem; }
.model h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.02; }
.model-shots { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.model-shots img { display: block; width: 100%; height: auto; border-radius: 4px; }
.facts { margin: 2rem 0 0; border-bottom: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.model .signup { margin-top: 2.5rem; }

/* Legal pages */
.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.page h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.02; }
.page h2 { margin-top: 2.5rem; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.2; }
.page p, .page li { max-width: 38rem; color: var(--soft); }
.page p { margin: 0.75rem 0 0; }
.page ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.page strong { color: var(--ink); font-weight: 500; }

@media (min-width: 34rem) {
  .signup-row { grid-template-columns: 1fr auto; }
  .model-shots { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .wrap { padding-left: 2.5rem; padding-right: 2.5rem; }
  .top { padding: 1.75rem 2.5rem 0; }
  .site-top { max-width: 74rem; margin: 0 auto; }
  /* Same two columns as the sections below, so the plate lines up with the shelf picture. */
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; align-items: center; max-width: 74rem; margin: 0 auto; padding: 0 2.5rem; min-height: min(100vh, 50rem); }
  /* On wide screens the photograph is a plate, like the one on the shelf: no dissolves, nothing cut off the car. */
  .shot { border-radius: 4px; }
  .shot::before, .shot::after { display: none; }
  .shot img { aspect-ratio: 1 / 0.92; object-position: 50% 47%; }
  .solo { max-width: none; }
  .solo img { aspect-ratio: 4 / 3; object-position: 50% 52%; }
  .hero h1 { position: static; grid-column: 1; grid-row: 1; align-self: end; padding: 7rem 0 0; font-size: clamp(2.5rem, 3.7vw, 3.4rem); }
  .shot { grid-column: 2; grid-row: 1 / span 2; }
  .under { grid-column: 1; grid-row: 2; align-self: start; max-width: none; margin: 1.75rem 0 0; padding: 0 0 3rem; }
  .shelf, .drop { padding-bottom: 6rem; }
  .shelf .wrap, .drop .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 4rem; align-items: start; }
  .solo, .places { margin-top: 0; grid-column: 2; grid-row: 1 / span 3; }
  .credit { grid-column: 1; }
  .picks dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .list .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ruler { animation: none; }
  .go, .signup button, .scale-switch button, .ruler-nums li, .pick span, a.place { transition: none; }
}
