/* six30.co — shared styles.
   Built on the 2026 brand guidelines (Design Assets/six30 new brand
   guidelines WIP.pdf). */

/* ---- brand faces, self-hosted ----
   Subset to Latin and converted to woff2 from the originals in
   Design Assets/. Regenerate with: see README "Brand → Fonts". */

@font-face {
  font-family: "Bonhomme Richard";
  src: url("/assets/fonts/bonhomme-richard.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aire Pro";
  src: url("/assets/fonts/aire-pro.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- palette, straight from the guidelines ---- */
  --spark: #c14040;          /* primary accent — the glow          */
  --curiosity: #1e1e1e;      /* ground                             */
  --conversation: #efe7dc;   /* type                               */
  --chemistry: #4e2f6b;      /* secondary                          */

  --ink: var(--conversation);
  --ink-soft: rgba(239, 231, 220, 0.74);
  --ink-faint: rgba(239, 231, 220, 0.48);
  --ground: var(--curiosity);
  --rule: rgba(239, 231, 220, 0.4);

  /* ---- type ----
     The three brand voices: script (chemistry), serif (sophistication),
     sans (clarity). Script is lowercase-only per the guidelines. */
  --font-script: "Bonhomme Richard", "Snell Roundhand", cursive;
  --font-serif: "Aire Pro", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.5rem, 4vw, 3.25rem);
  --column: 46rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;              /* Inter Light — "the voice of clarity" */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The official "classic black wash grain" from Design Assets, tiled. It already
   carries the ground colour (it averages #1c1c1c), so it replaces the flat
   background rather than sitting over it.

   The tile is 512px, built by 4-way mirroring a 256px crop of the original —
   a straight crop leaves a visible grid when it repeats, because this grain is
   blotchy enough that the tile edges don't butt up cleanly.

   background-size draws it at HALF its pixel dimensions, i.e. it's a @2x asset.
   Without that, one image pixel covers one CSS pixel, which on a retina screen
   is two device pixels — the grain renders at double size and reads as noise
   rather than texture. At 256px it lands 1:1 on device pixels where it matters.
   See README "The glow and the grain". */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/grain.png");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* A low, off-centre red bloom — the glow, at room scale. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(193, 64, 64, 0.22), transparent 70%),
    radial-gradient(45% 40% at 88% 6%, rgba(78, 47, 107, 0.2), transparent 70%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 400;
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) 0;
  text-align: center;
}

.site-header a { display: inline-block; line-height: 0; }

.site-header img {
  width: clamp(132px, 16vw, 196px);
  height: auto;
}

/* ---------- page shell ---------- */

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter);
}

.page--doc { justify-content: flex-start; }

/* ---------- home ---------- */

/* The headline runs full width so it holds one line; the reading copy stays
   in a narrow measure underneath. */
.hero {
  max-width: none;
  margin: 0;
}

.hero h2 { max-width: var(--column); }

.hero p { max-width: 52rem; }

/* The campaign headline — script, lowercase only, wearing the glow.
   Script faces sit small for their point size, hence the large clamp. */
.hero h1 {
  font-family: var(--font-script);
  font-size: min(7.5vw, 6rem);
  line-height: 1.34;
  text-transform: lowercase;
  color: var(--spark);
  margin-bottom: 0.5em;   /* clears the long descender swashes */
  text-shadow:
    0 0 6px rgba(193, 64, 64, 0.5),
    0 0 22px rgba(193, 64, 64, 0.35),
    0 0 54px rgba(193, 64, 64, 0.2);
}

/* inline-block keeps each clause intact, so the headline breaks at the
   sentence rather than mid-phrase when it has to wrap. */
.hero h1 span { display: inline-block; }

/* On phones one line forces the headline down to ~29px, which wastes the
   whole point of it. Breaking after each sentence lets it run about twice
   the size — the spans put the break in the right place. */
@media (max-width: 600px) {
  .hero h1 {
    font-size: min(14vw, 3.75rem);
    margin-bottom: 0.62em;   /* the second line's swash needs the clearance */
  }

  .hero h1 span { display: block; }
}

.hero h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.hero p {
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.hero .steps {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.75rem 0 1rem;
}

.hero .closer {
  color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero strong { font-weight: 600; color: var(--ink); }

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

/* Inter for anything that behaves like navigation, per the guidelines. */
.btn {
  display: inline-block;
  width: 100%;
  max-width: 385px;
  padding: 0.85em 1.75em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.05vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--spark);
  border-color: var(--spark);
  color: var(--conversation);
  box-shadow: 0 0 18px rgba(193, 64, 64, 0.45);
}

.iab-hint {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.55;
  text-align: center;
  margin: 10px 0 0;
  color: var(--ink);
  transition: opacity 0.2s;
}

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

/* Instagram sits on its own line under the other three at every width. It
   already did on phones, where the row ran out of space; a full-width basis
   makes it deliberate rather than a side effect of wrapping. */
.site-footer nav a:last-child { flex-basis: 100%; }

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--spark); }

/* ---------- long-form documents (terms, privacy) ---------- */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.doc h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 2rem;
}

.doc h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.doc p { margin: 0 0 1.15rem; }

/* Squarespace set section headings as bold paragraphs, not <h2>. Kept as
   authored so the legal text is byte-for-byte the live copy; styled here. */
.doc p > strong:only-child {
  display: block;
  margin-top: 2.25rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.doc p:first-of-type > strong:only-child { margin-top: 0; }

.doc ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.doc li { margin-bottom: 0.6rem; }

.doc li ul { margin: 0.6rem 0 0; }

.doc li::marker { color: var(--spark); }

.doc strong { color: var(--ink); font-weight: 600; }

.doc a { color: var(--ink); text-decoration-color: var(--spark); }

/* ---------- waitlist form ---------- */

.form-wrap {
  max-width: 30rem;
  margin: 0 auto;
  width: 100%;
}

.form-wrap h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.34;
  text-transform: lowercase;
  text-align: center;
  color: var(--spark);
  margin-bottom: clamp(2rem, 6vw, 3rem);
  text-shadow:
    0 0 6px rgba(193, 64, 64, 0.5),
    0 0 22px rgba(193, 64, 64, 0.35),
    0 0 54px rgba(193, 64, 64, 0.2);
}

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.field label span { color: var(--spark); }

.field .hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.8em 1em;
  background: rgba(239, 231, 220, 0.05);
  border: 1px solid rgba(239, 231, 220, 0.26);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder { color: rgba(239, 231, 220, 0.36); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--spark);
  background: rgba(239, 231, 220, 0.08);
  box-shadow: 0 0 0 3px rgba(193, 64, 64, 0.18);
}

/* Native select popups are OS-rendered, so options need a dark-safe colour. */
.field select option { background: #262626; color: #efe7dc; }

/* Until something is chosen, a select's prompt should read as placeholder text
   like the inputs do. :invalid catches the required select (its prompt is
   `disabled selected`, so nothing is checked); :has() catches the optional ones
   (their prompt is a real selected option with an empty value). */
.field select:invalid,
.field select:has(option[value=""]:checked) {
  color: rgba(239, 231, 220, 0.36);
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(239, 231, 220, 0.6) 50%),
    linear-gradient(135deg, rgba(239, 231, 220, 0.6) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% + 2px),
    calc(100% - 0.8rem) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.hp { position: absolute; left: -9999px; }

.field-error {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--spark);
}

.field input[aria-invalid="true"] {
  border-color: var(--spark);
}

/* Shown instead of the rest of the form when someone picks Los Angeles. */
.la-panel {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(193, 64, 64, 0.5);
  border-radius: 10px;
  background: rgba(193, 64, 64, 0.1);
  text-align: center;
}

.la-panel p { margin: 0 0 0.75rem; color: var(--ink-soft); }

.la-panel p:first-child { color: var(--ink); }

.la-panel strong { font-weight: 600; }

.la-panel .btn { margin-top: 0.5rem; max-width: none; }

.form-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--spark);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(193, 64, 64, 0.12);
}

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

.form-wrap .btn {
  max-width: none;
  padding: 0.9em 1.5em;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* ---------- misc ---------- */

.centered {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.centered h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.34;
  text-transform: lowercase;
  color: var(--spark);
  margin-bottom: 0.45em;   /* scales with the script's descender swashes */
  text-shadow:
    0 0 6px rgba(193, 64, 64, 0.5),
    0 0 22px rgba(193, 64, 64, 0.35),
    0 0 54px rgba(193, 64, 64, 0.2);
}

.centered p {
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.centered a { color: var(--ink); text-decoration-color: var(--spark); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- intro ----------
   The neon icon flickering on, once per session, over a blackout. The page
   is fully rendered underneath the whole time — this only covers it, it
   never delays it — and any tap, key or scroll dismisses it immediately. */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.intro[hidden] { display: none; }

.intro.is-leaving { opacity: 0; pointer-events: none; }

.intro video {
  width: min(46vw, 46vh, 320px);
  height: auto;
  display: block;
}

.intro .skip {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, 0.4);
  background: none;
  border: 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  opacity: 0;
  animation: intro-skip-in 0.4s ease 1.1s forwards;
}

@keyframes intro-skip-in { to { opacity: 1; } }

/* Anyone who has asked for less motion gets the page directly — the intro
   never renders at all (see the inline script in index.html). */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}
