/* LUX — The London Edit · validation landing page (waitlist)
   Static, dependency-free. Tokens are the brand-guide values (08-brand/brand-guide.md §5), which are the
   prototype's own values (prototype/styles.css). Dark-first; the form sits on the warm paper surface.
   Contrast (brand guide table): ivory on charcoal 14.40:1, silver on charcoal 9.33:1, silver on graphite 7.76:1,
   ink on ivory 13.22:1, ink-2 on ivory 5.53:1, error-paper #8e352c on ivory 6.32:1 and on white 7.79:1, warn-paper #7a5612 on ivory 5.38:1 (computed 2026-10-11 with the WCAG formula). */

:root {
  --stone: #0f1012;
  --charcoal: #17181b;
  --graphite: #26282c;
  --graphite-2: #33363b;
  --ivory: #ede7d9;
  --ivory-2: #e4ddcc;
  --ivory-3: #d8d0bd;
  --ink: #1f2022;
  --ink-2: #585b60;
  --silver: #b9bcc2;
  --silver-dim: #8f9299;
  --plate: #dcdcdc;
  --hairline: rgba(185, 188, 194, 0.18);
  --rule: rgba(31, 32, 34, 0.22);
  --rule-soft: rgba(31, 32, 34, 0.12);
  --focus: #ece7da;
  --error-dark: #e39a90;
  --error-paper: #8e352c;
  --success-dark: #9fc3a9;
  --warn-paper: #7a5612;
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: Newsreader, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 300ms;
  --gutter: 16px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, figure, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--ink); }

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

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 14px; background: var(--ivory); color: var(--ink);
  border-radius: 2px; text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type helpers ---------- */

.kicker, .label, .micro {
  font-family: var(--font-ui); font-weight: 500; text-transform: uppercase;
}
.kicker { font-size: 12px; letter-spacing: 0.30em; line-height: 1.2; color: var(--silver); }
.label  { font-size: 12.5px; letter-spacing: 0.14em; line-height: 1.2; }
.micro  { font-size: 11px; letter-spacing: 0.22em; line-height: 1.2; }

.display-1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.005em; }
.display-2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.1rem + 2vw, 2.625rem); line-height: 1.12; letter-spacing: -0.005em; }
.heading   { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.title     { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.3; }
.body-l    { font-size: 1.125rem; line-height: 1.5; }
.body-s    { font-size: 0.875rem; line-height: 1.45; letter-spacing: 0.04em; }
.muted     { color: var(--silver); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 2px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn--primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); width: 100%; }
.btn--ink:hover { background: #000; }
.btn--ink:disabled { opacity: 0.7; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(185, 188, 194, 0.4); border-radius: 999px; }
.btn--ghost:hover { border-color: var(--ivory); }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; gap: 6px;
  color: var(--silver); text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: color var(--dur-2) var(--ease);
}
.text-link:hover { color: var(--ivory); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 24, 27, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
/* The mark is the exact master export; only proportional scaling is applied. 1644 × 309 → height 20px. */
.site-logo img { height: 20px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 8px; }
.site-header .btn { min-height: 44px; padding: 10px 18px; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; background: var(--stone); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 18, 0.92) 0%, rgba(15, 16, 18, 0.8) 46%, rgba(15, 16, 18, 0.3) 100%),
    linear-gradient(0deg, rgba(15, 16, 18, 0.9) 0%, rgba(15, 16, 18, 0.1) 50%);
}
.hero .wrap { padding-top: clamp(72px, 14vh, 140px); padding-bottom: clamp(56px, 10vh, 112px); }
.hero__inner { max-width: 640px; display: grid; gap: 20px; }
.hero__sub { max-width: 54ch; color: var(--ivory); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }
.hero__credit { margin-top: 32px; color: var(--silver); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--hairline); }
.section__head { display: grid; gap: 12px; max-width: var(--measure); margin-bottom: clamp(28px, 5vw, 48px); }
.section__intro { color: var(--silver); font-style: italic; font-family: var(--font-display); font-size: 1.125rem; }

.promise { display: grid; gap: 28px; }
.promise__item { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.promise__item p { color: var(--silver); max-width: 40ch; }

.drop + .drop { margin-top: clamp(48px, 8vw, 88px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hairline); }
.drop__head { display: grid; gap: 10px; margin-bottom: 24px; }
.drop__note { color: var(--silver); max-width: var(--measure); }
.pieces { display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; }
.piece { display: grid; gap: 14px; }
.piece__figure { display: grid; gap: 10px; }
.piece__plate { background: var(--plate); border-radius: 2px; overflow: hidden; aspect-ratio: 1 / 1; }
.piece__plate img { width: 100%; height: 100%; object-fit: cover; }
.piece__caption { color: var(--silver); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.piece__caption::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--silver); align-self: center; }
.piece__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.piece__colour { color: var(--silver-dim); }
.piece__body { color: var(--silver); max-width: 44ch; }

.honesty {
  padding: clamp(40px, 7vw, 72px) 0; background: var(--graphite); border-top: 1px solid var(--hairline);
}
.honesty blockquote { margin: 0; max-width: 52ch; display: grid; gap: 14px; }
.honesty blockquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.35; }

/* ---------- Form on paper ---------- */

.paper {
  color-scheme: light;
  background: var(--ivory); color: var(--ink);
  border-radius: 2px; padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 1px 0 var(--ivory-3), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.paper .kicker { color: var(--ink-2); }
.paper .muted { color: var(--ink-2); }
.form-grid { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field__label { font-weight: 500; }
.field__hint { color: var(--ink-2); font-size: 0.875rem; }
.req { color: var(--ink-2); font-weight: 400; }

.input, .select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color var(--dur-2) var(--ease);
}
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f2022' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

.choices { display: grid; gap: 8px; }
.choices--cols { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ivory-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.choice input:focus-visible { outline: none; }
.choice__group { display: grid; gap: 8px; }
.choice__group + .choice__group { margin-top: 8px; }
.choice__group-name { color: var(--ink-2); }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent input:focus-visible { outline: none; }
.consent span { display: block; line-height: 1.45; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.error { color: var(--error-paper); font-size: 0.875rem; display: none; }
.field.is-invalid .error { display: block; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .choice, .field.is-invalid .consent { border-color: var(--error-paper); }
.form-status { color: var(--error-paper); font-size: 0.9375rem; }
.form-status:empty { display: none; }

.small-print { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.01em; }
.small-print a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.thanks { display: grid; gap: 16px; max-width: 54ch; }
.thanks__share { padding-top: 8px; border-top: 1px solid var(--rule-soft); margin-top: 8px; }
.thanks a { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); color: var(--silver); font-size: 0.875rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer__logo img { height: 16px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { display: grid; gap: 6px; max-width: var(--measure); }

/* ---------- Draft banner (privacy page) ---------- */

.draft-banner { background: var(--ivory); color: var(--ink); padding: 12px var(--gutter); text-align: center; font-size: 0.875rem; }
.draft-banner strong { color: var(--warn-paper); }
.prose { max-width: var(--measure); display: grid; gap: 18px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-top: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.prose th { color: var(--silver); font-weight: 500; }
.prose .tbd { color: var(--silver); font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Layout breakpoints ---------- */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .promise { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pieces { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .form-grid--two { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .hero__inner { max-width: 720px; }
  .capture { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .capture__aside { position: sticky; top: 96px; display: grid; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
