/* Parallax — coming soon
   Concept: three risograph ink plates (pink, blue, yellow) printed out of register.
   Your cursor, phone tilt and scroll move the plates; press and hold to line them up. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2-variations"),
       url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F4F5F0;
  --ink: #272A63;
  --muted: #565A8C;
  --pink: #FF48B0;
  --blue: #0078BF;
  --yellow: #FFE800;
  --sheet-ink: #272A63;
  --blend: multiply;
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14162E;
    --ink: #ECEDF6;
    --muted: #A6A9CC;
    --blend: screen;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .28;
  mix-blend-mode: var(--blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { body::after { opacity: .12; } }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.hero.holding { cursor: grabbing; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
  font-size: .95rem;
}
.mark {
  text-decoration: none;
  font-weight: 700;
  font-variation-settings: "wdth" 80;
  letter-spacing: .01em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
}
.status i {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--pink);
}

.stage {
  position: relative;
  min-height: 0;
}

.plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  mix-blend-mode: var(--blend);
  pointer-events: none;
}

.word {
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-size: clamp(4.5rem, min(26vw, 40vh), 24rem);
  line-height: .8;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }

.marks { position: absolute; inset: 0; will-change: transform; }
.marks svg {
  position: absolute;
  width: clamp(18px, 3vw, 28px);
  height: auto;
}
.marks .tl { top: 6%; left: 2%; }
.marks .tr { top: 6%; right: 2%; }
.marks .bl { bottom: 6%; left: 2%; }
.marks .br { bottom: 6%; right: 2%; }

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
}
.lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4;
}
.hint-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.hint {
  margin: 0;
  max-width: 28ch;
  text-align: right;
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s;
}
.hero.holding .hint { color: var(--ink); }

.tilt-btn, .notify button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

@media (max-width: 640px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hint-wrap { align-items: flex-start; }
  .hint { text-align: left; }
}

/* ---------- Press (scroll-driven overprint) ---------- */

.press {
  position: relative;
  height: 320vh;
}
.press-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 4vw;
  padding: 6vh max(1.25rem, 5vw);
  overflow: hidden;
}
.press-copy h2 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-stretch: 62%;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .92;
}
.press-copy p {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.press-stack {
  position: relative;
  height: min(78vh, 720px);
}

.sheet {
  position: absolute;
  width: 58%;
  height: 40%;
  padding: clamp(1rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  color: var(--sheet-ink);
  background: var(--c);
  mix-blend-mode: var(--blend);
  will-change: transform;
}
.sheet h3 {
  margin: 0 0 .4rem;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  font-stretch: 72%;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1;
}
.sheet p {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.4;
}

.s-pink   { --c: var(--pink);   top: 0;   left: 0; }
.s-blue   { --c: var(--blue);   top: 30%; left: 42%; justify-content: center; align-items: flex-end; text-align: right; color: #F4F5F0; }
.s-blue p { max-width: 20ch; }
.s-yellow { --c: var(--yellow); top: 60%; left: 4%; justify-content: flex-end; }

@media (max-width: 760px) {
  .press { height: 300vh; }
  .press-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 1.5rem;
    padding-top: max(8vh, env(safe-area-inset-top));
  }
  .press-stack { height: 100%; max-height: 640px; }
  .sheet { width: 82%; height: 36%; }
  .s-pink   { top: 0;   left: 0; }
  .s-blue   { top: 32%; left: 18%; }
  .s-yellow { top: 64%; left: 0; }
}

/* ---------- Finale ---------- */

.finale {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh max(1.25rem, 5vw);
}
.layers {
  display: grid;
  margin-bottom: 2rem;
}
.layer {
  grid-area: 1 / 1;
  color: var(--c);
  mix-blend-mode: var(--blend);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-stretch: 62%;
  font-size: clamp(3.6rem, 14vw, 12rem);
  line-height: .85;
  word-spacing: .14em;
}
.finale-copy {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.notify {
  display: flex;
  gap: .5rem;
  width: min(100%, 460px);
}
.notify input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .7rem 1.1rem;
}
.notify input::placeholder { color: var(--muted); opacity: .8; }
@media (max-width: 420px) {
  .notify { flex-direction: column; }
}
.form-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: .95rem;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1.25rem, 5vw) max(1.5rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .9rem;
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
