/* One screen, no scroll: header / [shoes | pillars + email] / footer. */
@font-face { font-family: "Catalog Pixel"; src: url("assets/pixel.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Catalog Matrice"; src: url("assets/matrice.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ink: #111110;
  --ink-2: #4A4A47;
  --rule: #111110;
  --f-label: "Catalog Pixel", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-data: "Catalog Matrice", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fade: 1400ms;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink); font-family: var(--f-label); font-size: 14px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  height: 100vh; height: 100svh;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(12px, 2.5vh, 28px);
  padding: max(clamp(14px, 3vh, 28px), env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           max(clamp(12px, 2.5vh, 22px), env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

header, footer { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.logo { font-size: 30px; white-space: nowrap; line-height: 1; }
.logo i { font-style: normal; font-family: var(--f-data); }
.logo i:nth-of-type(1) { margin-left: -0.09em; }
.logo i:nth-of-type(2) { margin-left: -0.097em; }
.logo i:nth-of-type(3) { margin-left: -0.017em; }
.small { font-size: 14px; color: var(--ink-2); }
footer { border-top: 1.5px solid var(--rule); padding-top: 10px; font-size: 12px; }

main {
  min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: center;
  border-top: 1.5px solid var(--rule);
}

/* Shoes: stacked images, slow crossfade. */
.stage { position: relative; width: 100%; aspect-ratio: 1520 / 700; max-height: 100%; }
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity var(--fade) ease-in-out;
}
.stage img.on { opacity: 1; }

.side { display: grid; gap: clamp(16px, 3.5vh, 36px); align-content: center; min-width: 0; }

.pillars { display: grid; gap: clamp(10px, 2vh, 18px); }
.pillars > div { border-top: 1.5px dotted var(--rule); padding-top: 8px; display: grid; gap: 4px; }
.pillars h2 { font: 22px/1 var(--f-label); margin: 0; }
.pillars p { font: 300 16px/1.4 var(--f-text); margin: 0; }

.join { display: grid; gap: 8px; }
form { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1.5px solid var(--rule); }
input[type=email] { font: 17px var(--f-text); padding: 14px 16px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); min-width: 0; }
input[type=email]::placeholder { color: var(--ink-2); }
button { font: 17px var(--f-label); padding: 14px 18px; border: 0; border-radius: 0; border-left: 1.5px solid var(--rule); background: var(--ink); color: var(--paper); cursor: pointer; white-space: nowrap; }
button:hover { background: var(--ink-2); }
button:disabled { cursor: default; background: var(--ink-2); }
input:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.status { min-height: 1.3em; font-size: 14px; }
.status:empty { min-height: 0; }
.meter { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.meter b { font: 400 15px var(--f-data); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Phones and narrow windows: shoes on top, then email, then the three pillars, still on one screen. */
@media (max-width: 760px) {
  .page { gap: 10px; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .logo { font-size: 24px; }
  header .small { font-size: 11px; }
  main { grid-template-columns: 1fr; align-content: start; gap: 10px; padding-top: 6px; }
  .stage { max-height: 22svh; margin: 0 auto; }
  .side { gap: 12px; align-content: start; }
  .join { order: -1; gap: 6px; }
  input[type=email] { padding: 11px 12px; font-size: 16px; }
  button { font-size: 15px; padding: 11px 12px; }
  .meter { font-size: 12px; }
  .meter > span { white-space: nowrap; }
  .meter b { font-size: 13px; }
  .pillars { gap: 8px; }
  .pillars > div { padding-top: 6px; gap: 2px; }
  .pillars h2 { font-size: 17px; }
  .pillars p { font-size: 13.5px; line-height: 1.3; }
  footer { font-size: 10.5px; padding-top: 8px; }
}
@media (max-width: 360px) {
  form { grid-template-columns: 1fr; }
  button { border-left: 0; border-top: 1.5px solid var(--rule); }
  .meter { flex-wrap: wrap; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .stage { max-height: 18svh; }
  .pillars p { font-size: 12.5px; }
  footer span:last-child { display: none; }
}
/* Short landscape windows: tighten so nothing scrolls. */
@media (min-width: 761px) and (max-height: 640px) {
  .pillars p { font-size: 14px; }
  .pillars h2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage img { transition: none; }
}
