@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3EEE3;
  --paper-hi: #FBF8F1;
  --blue: #2B4C9B;
  --blue-ink: #1F3A80;
  --blue-soft: #56679F;
  --pink: #FF48B0;
  --sun: #FFB511;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Helvetica Neue", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --grain: url("img/grain.png");
  --grain-soft: url("img/grain-soft.png");
  --mis-x: .05em;
  --mis-y: .035em;
  color-scheme: light;
  accent-color: var(--blue);
  scrollbar-color: var(--blue) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) url("img/paper.webp") repeat 0 0 / 400px;
  color: var(--blue);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: #14275C; }
input { caret-color: var(--pink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
a { color: inherit; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--blue); color: var(--paper-hi); padding: .6rem 1rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Two-ink overprint: the first layer prints off register, the second on top; both multiply. */
.ink-pair { display: inline-grid; isolation: isolate; }
.ink-pair > span {
  grid-area: 1 / 1;
  mix-blend-mode: multiply;
  -webkit-mask: var(--grain) 0 0 / 180px repeat;
  mask: var(--grain) 0 0 / 180px repeat;
  white-space: nowrap;
}
.ink-pair > span:first-child { transform: translate(var(--mis-x), var(--mis-y)); }
.ink-pair > span:last-child { mix-blend-mode: normal; }
.ink-pink { color: var(--pink); }
.ink-blue { color: var(--blue); }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96;
  line-height: .84;
  letter-spacing: -.005em;
  font-size: clamp(4.5rem, 10.6vw, 10rem);
}
.display .line { display: block; }
.display-2 { font-size: clamp(3rem, 6.5vw, 6rem); line-height: .9; }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem var(--gutter) .5rem;
}
.mark {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.75rem;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  --mis-x: .06em;
  --mis-y: .05em;
}
.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: underline 2px var(--pink);
  text-underline-offset: .35em;
  transition: text-decoration-thickness .15s ease-out, text-underline-offset .15s ease-out;
}
.nav a:hover { text-decoration-thickness: 5px; text-underline-offset: .22em; }

/* Sheets carry crop marks at their corners */
.sheet { position: relative; }
.crop {
  position: absolute;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
}
.crop-tl { top: .25rem; left: calc(var(--gutter) - 2.25rem); }
.crop-tr { top: .25rem; right: calc(var(--gutter) - 2.25rem); }
.crop-bl { bottom: .5rem; left: calc(var(--gutter) - 2.25rem); }
.crop-br { bottom: .5rem; right: calc(var(--gutter) - 2.25rem); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  grid-template-areas: "copy art";
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem) var(--gutter) 5.5rem;
}
.hero-copy { grid-area: copy; }
.lede {
  max-width: 33em;
  margin: clamp(1.5rem, 2.6vw, 2.25rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
}

.art { grid-area: art; margin: 0; justify-self: end; width: 100%; max-width: 38rem; }
.art-svg { display: block; width: 100%; height: auto; max-height: min(76svh, 44rem); overflow: visible; }
.plate { mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.plate-pink { transform: translate(5px, -4px); }
.plate-blue { transform: translate(-3px, 3px); }
.art:hover .plate-pink { transform: translate(9px, -2px); }
.art:hover .plate-blue { transform: translate(-5px, 5px); }
.reg { color: var(--blue); }

.yours-key { transition: opacity .6s ease-out .5s; }
.yours-ink { mix-blend-mode: multiply; }
.pass-rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.yours-label {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 40px;
  fill: var(--blue);
}
.yours-note { font-family: var(--body); font-size: 19px; fill: var(--blue); }
.is-printed .pass-rect { transform: scaleY(1); }
.is-printed .yours-fill { transform: translate(-3px, 3px); }
.is-printed .yours-key { opacity: .35; }
.is-printing .pass-rect { animation: ink-pass 1.1s cubic-bezier(.3, .1, .2, 1) both; }
.is-printing .yours-fill { animation: settle 1.5s cubic-bezier(.16, 1, .3, 1) both; }
.is-printing .plate-pink { animation: drum 1.1s cubic-bezier(.16, 1, .3, 1); }
@keyframes ink-pass { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes settle { 0%, 55% { transform: translate(8px, -7px); } 100% { transform: translate(-3px, 3px); } }
@keyframes drum { 0% { transform: translate(5px, -4px); } 35% { transform: translate(11px, -1px); } 100% { transform: translate(5px, -4px); } }

.slug {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.4rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2rem;
  padding-top: .7rem;
  border-top: 2px solid var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.slug-inks { display: inline-flex; align-items: center; gap: .45rem; }
.chip { display: inline-block; width: .8em; height: .8em; border-radius: 50%; }
.chip + .chip, .slug-inks .chip:not(:first-child) { margin-left: .5rem; }
.chip-pink { background: var(--pink); }
.chip-blue { background: var(--blue); }
.chip-sun { background: var(--sun); }

/* Waitlist form */
.wait { max-width: 36rem; }
.wait-label {
  display: block;
  margin-bottom: .65rem;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: .9rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.wait-row { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: stretch; }
.field { position: relative; isolation: isolate; flex: 1 1 15rem; display: flex; }
.field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid var(--pink);
  border-radius: 3px;
  transform: translate(5px, 5px);
  -webkit-mask: var(--grain-soft) 0 0 / 256px repeat;
  mask: var(--grain-soft) 0 0 / 256px repeat;
  transition: transform .18s ease-out;
}
.field:focus-within::after { transform: translate(0, 0); }
input[type="email"] {
  width: 100%;
  min-height: 3.4rem;
  padding: .85rem 1rem;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: var(--paper-hi);
  color: var(--blue-ink);
  font: inherit;
  font-size: 1.1rem;
}
input[type="email"]::placeholder { color: var(--blue-soft); opacity: 1; }
input[type="email"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input[aria-invalid="true"] { border-color: #B3125F; border-width: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.btn {
  position: relative;
  isolation: isolate;
  min-height: 3.4rem;
  padding: .9rem 1.6rem;
  border: 0;
  background: none;
  color: var(--paper-hi);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  -webkit-mask: var(--grain-soft) 0 0 / 256px repeat;
  mask: var(--grain-soft) 0 0 / 256px repeat;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.btn::before { z-index: -1; background: var(--blue); }
.btn::after { z-index: -2; background: var(--pink); transform: translate(6px, 6px); mix-blend-mode: multiply; }
.btn > span { position: relative; }
.btn:hover::before { transform: translate(-1px, -2px); }
.btn:hover::after { transform: translate(10px, 3px); }
.btn:active::before, .btn:active::after { transform: translate(2px, 2px); }
.btn[disabled] { cursor: progress; }
.btn[disabled]::after { animation: drum-btn .8s ease-in-out infinite alternate; }
@keyframes drum-btn { from { transform: translate(6px, 6px); } to { transform: translate(2px, 8px); } }

.wait-hint { margin: .85rem 0 0; font-size: .98rem; }
.wait-hint.is-error { color: #A0104F; font-weight: 700; }
.wait-hint.is-done {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.3;
}
.wait.is-done .wait-row, .wait.is-done .wait-label { display: none; }
.again {
  margin-left: .35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 400;
  text-decoration: underline 2px var(--pink);
  text-underline-offset: .3em;
  cursor: pointer;
}

/* Where we are */
.run { padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.section-lede { margin: 1.1rem 0 clamp(2.5rem, 5vw, 4rem); font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.proofs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  counter-reset: none;
}
.proof { padding-top: 1.25rem; border-top: 2px solid var(--blue); }
.proof-art { display: block; width: 100%; max-width: 15rem; height: auto; margin-bottom: 1rem; overflow: visible; }
.proof-full { mix-blend-mode: multiply; }
.proof-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: .95;
  text-transform: uppercase;
}
.proof-tag {
  display: inline-block;
  margin: .6rem 0 .75rem;
  padding: .15rem .55rem;
  border: 2px solid var(--blue);
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.is-now .proof-tag { background: var(--sun); border-color: var(--sun); }
.proof p:last-child { margin: 0; max-width: 30em; }

/* For grown-ups */
.grownups {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(5rem, 10vw, 9rem);
}
.grownups .display-2 { position: sticky; top: 2rem; }
.faq { border-bottom: 2px solid var(--blue); }
.faq details { border-top: 2px solid var(--blue); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background:
    linear-gradient(var(--pink), var(--pink)) center / 100% 3px no-repeat,
    linear-gradient(var(--pink), var(--pink)) center / 3px 100% no-repeat;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline 2px var(--pink); text-underline-offset: .25em; }
.faq p { margin: 0 0 1.4rem; max-width: 60ch; }

/* Close: a full sunflower ink field */
.close {
  isolation: isolate;
  text-align: center;
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter);
}
.close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sun);
  -webkit-mask: var(--grain-soft) 0 0 / 256px repeat;
  mask: var(--grain-soft) 0 0 / 256px repeat;
}
.display-close { font-size: clamp(4rem, 9vw, 8.5rem); }
.close-lede { margin: 1.5rem auto 2.25rem; font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 700; }
.wait-close { margin: 0 auto; text-align: left; }
.wait-close input[type="email"] { background: var(--paper-hi); }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter) 2rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "art" "lede" "form";
    min-height: 0;
    padding-bottom: 2rem;
  }
  .hero-copy { display: contents; }
  .hero h1 { grid-area: title; }
  .lede { grid-area: lede; margin-top: 1.5rem; }
  .wait[data-source="hero"] { grid-area: form; }
  .art { justify-self: center; max-width: 17.5rem; margin-top: 1.5rem; }
  .display { font-size: clamp(4rem, 29vw, 9rem); }
  .slug { position: static; grid-column: 1 / -1; margin: 2.5rem 0 0; font-size: .72rem; gap: .35rem 1.25rem; }
  .crop-tl, .crop-tr, .crop-bl, .crop-br { display: none; }
  .proofs { grid-template-columns: minmax(0, 1fr); }
  .proof { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .proof-art { grid-row: 1 / span 3; margin: 0; }
  .proof-tag { justify-self: start; }
  .grownups { grid-template-columns: minmax(0, 1fr); }
  .grownups .display-2 { position: static; }
  .display-2 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .display-close { font-size: clamp(3.6rem, 19vw, 6rem); }
}

@media (max-width: 520px) {
  .mark { font-size: 1.5rem; }
  .wait-row { flex-direction: column; }
  .field { flex: none; }
  .btn { width: 100%; }
  .foot { flex-direction: column; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ink-pair > span:first-child { transform: translate(calc(var(--mis-x) * .5), calc(var(--mis-y) * .5)); }
}
