/* The walking poster uses the same ink colours as the footprint artwork. */
:root {
  color-scheme: light;
  --paper: #fbf8f4;
  --ink: #10100f;
  --text: #30302d;
  --blue: #123eb0;
  --rule: #bebab3;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
.wrap { width: min(calc(100% - clamp(2rem, 7vw, 8rem)), 74rem); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.masthead { display: flex; align-items: center; gap: 2rem; padding-block: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1; font-weight: 850; letter-spacing: -.06em; }
.brand small { display: block; margin-top: .3rem; font-size: .79rem; letter-spacing: 0; font-weight: 500; }
.brand-mark { width: 1.45em; height: 1.4em; }
nav { margin-left: auto; }
nav a { padding-block: .65rem; font-size: 1rem; }
.age { white-space: nowrap; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 760; letter-spacing: -.04em; }
.cover { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 1rem 0 2.5rem; }
h1, h2, h3, .prompt { letter-spacing: -.05em; }
h1 { font-size: clamp(6rem, 9.7vw, 9.2rem); line-height: .89; font-weight: 900; letter-spacing: -.075em; align-self: start; margin-top: .45em; }
h1 span { display: block; margin-left: .5em; }
.walking-poster { position: relative; min-width: 0; }
.step-covers { display: none; }
.scene {
  display: block;
  width: 100%; height: auto;
  mix-blend-mode: darken;
  /* Isolate the illustration from the lettering at the edge of the source poster. */
  clip-path: polygon(0 0, 18.7% 0, 21.3% 4.2%, 22% 7.5%, 100% 7.5%, 100% 100%, 0 100%);
}
.cover-footer { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 2rem; padding-top: .75rem; }
.prompt { font-weight: 760; font-size: clamp(1.35rem, 2.8vw, 2.5rem); line-height: 1.12; }
.button { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1rem; border: 0; border-radius: 0; background: var(--ink); color: white; font: inherit; font-weight: 750; text-decoration: none; text-align: center; cursor: pointer; }
.cover .button { font-size: clamp(1.2rem,2.3vw,1.8rem); letter-spacing: -.03em; }
.button:hover { background: var(--blue); }
.button:disabled { opacity: .7; cursor: progress; }
.spread { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(2rem,8vw,8rem); padding-block: clamp(3rem,6vw,6rem); }
h2 { font-size: clamp(2.25rem,4.1vw,4.2rem); line-height: 1.02; font-weight: 780; text-wrap: balance; }
.story { padding-block: clamp(3rem,6vw,6rem); border-top: 1px solid var(--ink); }
.story h2, .how h2 { font-size: clamp(2.65rem,6vw,5.6rem); font-weight: 850; line-height: .98; }
.play-scenes, .research { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(2rem,6vw,6rem); }
.play-scenes { margin-block: clamp(1.5rem,3vw,3rem) clamp(2.5rem,5vw,5rem); }
.play-scenes figure { margin: 0; }
.play-scenes img, .phone-print { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.play-scenes figcaption { max-width: 40ch; color: var(--text); }
.play-scenes strong { display: block; color: var(--ink); font-size: clamp(1.5rem,2.5vw,2.25rem); letter-spacing: -.045em; line-height: 1.15; margin-block: .65rem .45rem; }
.research { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.how { background: #fff0cb; }
.how-layout { padding-block: clamp(3rem,6vw,6rem); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem clamp(2rem,6vw,6rem); }
.how h2 { max-width: 11ch; }
.phone-print { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.how-intro, .signup h2 + p { margin-top: 1.2rem; max-width: 33rem; font-size: 1.11rem; }
.story p, .sequence dd, .how-intro { color: var(--text); }
.research h3 { margin-bottom: .45rem; font-size: 1.4rem; letter-spacing: -.035em; line-height: 1.25; }
.source { display: inline-block; margin-top: .65rem; color: var(--blue); font-size: .94rem; }
.sequence dd + dt { border-top: 1px solid #ccba8c; margin-top: 1rem; padding-top: 1rem; }
.sequence dt { font-size: 1.22rem; font-weight: 740; }
.sequence dd { margin-top: .3rem; }
.signup { background: var(--ink); color: var(--paper); }
.postage { position: relative; width: 9.5rem; height: 5.6rem; margin: 1.6rem 0 0 .4rem; }
.stamp { height: 100%; padding: .35rem; color: #bb381a; background: #fff0cb; transform: rotate(-7deg); mask: radial-gradient(circle at 4px 4px, transparent 2.3px, black 2.7px) -4px -4px / 8px 8px, linear-gradient(black,black) center / calc(100% - 8px) calc(100% - 8px) no-repeat; }
.postmark { display: none; position: absolute; width: 6.8rem; left: 2.2rem; bottom: .55rem; transform: rotate(-10deg); color: #e76949; }
.signup.is-saved .postmark { display: block; }
.signup h2 { max-width: 12ch; }
.signup .button { width: 100%; background: var(--paper); color: var(--ink); }
.signup .button:hover { background: #cedbff; }
.signup :focus-visible { outline-color: #adc3ff; }
form { max-width: 32rem; }
label { display: block; margin-bottom: .45rem; font-weight: 650; }
input { width: 100%; padding: .83rem 1rem; border: 2px solid transparent; border-radius: 0; background: white; color: var(--ink); font: inherit; }
input[aria-invalid="true"] { border-color: #d84327; }
#note { color: #dedbd6; margin: .55rem 0 1.1rem; font-size: .9rem; }
#feedback { margin-top: .75rem; min-height: 1.55em; font-weight: 600; }
#feedback.error, #email-error { color: #ffa28f; }
#email-error:not(:empty) { margin-bottom: .5rem; font-weight: 600; }
/* The complete mark is the default, including for reduced motion and print. */
@media screen and (prefers-reduced-motion: no-preference) {
  .play-scenes figure.in-view { animation: print-scene .45s ease-out backwards; }
  .play-scenes figure:nth-child(2).in-view { animation-delay: .16s; }
  @keyframes print-scene { from { opacity: 0; transform: translateY(.4rem); } }
  .signup.is-saved .postmark { animation: press-postmark .22s ease-out backwards; }
  @keyframes press-postmark { from { opacity: 0; transform: rotate(-14deg) scale(1.15); } }
  .step-covers { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: var(--paper); }
  .step-covers rect { opacity: 0; animation: uncover-print .18s ease-out backwards; animation-delay: calc(.2s + var(--step) * .26s); }
  @keyframes uncover-print { from { opacity: 1; } to { opacity: 0; } }
  .stalks path { stroke-dasharray: 1; animation: grow-stem .58s ease-out both; }
  .florets use { transform-box: fill-box; transform-origin: center; animation: open-floret .42s .4s cubic-bezier(.2,.8,.3,1.15) both; }
  .florets use:nth-child(2n) { animation-delay: .52s; }
  .florets use:nth-child(3) { animation-delay: .6s; }
  .brand-mark { transition: transform .3s ease; transform-origin: 50% 90%; }
  .brand:is(:hover,:focus-visible) .brand-mark { transform: rotate(-9deg); }
  @keyframes grow-stem { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes open-floret { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
@media (max-width: 48rem) {
  .masthead { padding-block: .9rem .4rem; justify-content: space-between; }
  .masthead nav { display: none; }
  .cover { display: block; padding: .75rem 0 1.8rem; }
  h1 { font-size: clamp(4.15rem, 18vw, 8rem); margin: 0; }
  h1 span { margin-left: 1.05em; }
  .walking-poster { width: 100%; max-width: 33rem; margin: -.2rem auto 0; }
  .cover-footer { display: block; padding-top: .25rem; }
  .prompt { margin-bottom: .85rem; font-size: clamp(1.2rem,4.8vw,1.8rem); }
  .spread { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.75rem; }
  .play-scenes, .research, .how-layout { grid-template-columns: 1fr; }
  .play-scenes img { max-width: 29rem; margin-inline: auto; }
  .phone-print { grid-area: auto; max-width: 28rem; justify-self: center; }
  .postage { height: 4.2rem; margin-top: 1.1rem; }
}
