/* Pen & Chalk site styles, built from the design mock. Tokens come from the app: Palette.swift, Typography.swift, Motion.swift, Spacing.swift. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat Brush";
  src: url("/fonts/caveat-brush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* board */
  --board: #1E2A2D;
  --board-deep: #151E20;
  --board-raised: #27363A;
  --board-line: rgba(242, 244, 243, 0.22);
  --ledge: #33454A;
  /* ink */
  --ink: #F2F4F3;
  --muted: #C3CDCE;
  --on-chalk: #182326;
  /* habit chalks */
  --sky: #8EC8F0;
  --sun: #F4D35E;
  --mint: #8EE3C6;
  --lilac: #C4B3F7;
  --tangerine: #F6A24D;
  --lime: #CFE77A;
  --aqua: #4FB9C9;
  /* slip: neutral grey, for slips only */
  --slip: #A4A7A9;

  /* type */
  --ui: "Atkinson Hyperlegible Next", sans-serif;
  --hand: "Caveat Brush", cursive;
  --fs-display: clamp(4rem, 2.2rem + 7.4vw, 8.25rem);
  --fs-display-2: clamp(2.6rem, 1.7rem + 3.4vw, 4.5rem);
  --fs-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --fs-h3: 1.3125rem;      /* app title: 21 / 800 */
  --fs-small: 0.9375rem;
  --fs-note: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);

  /* spacing: the app's 4 pt base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px; --s40: 160px;
  --gutter: clamp(24px, 6vw, 96px);
  --air: clamp(96px, 13vw, 200px);        /* between story beats */
  --measure: 34rem;

  /* radii */
  --r-s: 9px; --r-m: 12px; --r-l: 16px; --r-xl: 28px;

  /* motion: Motion.swift */
  --ease-std: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-chalk: cubic-bezier(0.3, 0, 0.15, 1);
  --ease-slow: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --t-press: 90ms; --t-quick: 180ms; --t-fade: 240ms; --t-stroke: 280ms; --t-settle: 420ms; --t-draw: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--board);
  /* the board: faint speckle, old chalk haze, a vignette. Never a flat fill. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .96 0 0 0 0 .955 -1.6 0 0 0 .86'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"),
    radial-gradient(60vw 34vw at 78% 6%, rgba(242, 244, 243, 0.045), transparent 70%),
    radial-gradient(50vw 40vw at 8% 38%, rgba(242, 244, 243, 0.03), transparent 70%),
    radial-gradient(70vw 40vw at 90% 72%, rgba(242, 244, 243, 0.028), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 600;                         /* the app never sets type lighter than 600 */
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
strong { font-weight: 800; }
a { color: inherit; }
.defs { position: absolute; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }

.skip { position: absolute; left: var(--s4); top: -80px; z-index: 10; background: var(--ink); color: var(--on-chalk); padding: var(--s3) var(--s4); border-radius: var(--r-s); font-weight: 800; }
.skip:focus { top: var(--s4); }

/* ------------------------------------------------------------ type */
.hand { font-family: var(--hand); font-weight: 400; }
.display { font-family: var(--hand); font-weight: 400; font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance; }
.display--2 { font-size: var(--fs-display-2); line-height: 1; }
h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.24; }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 31rem; }
.quiet { color: var(--muted); }
.note { font-size: var(--fs-note); line-height: 1.1; color: var(--ink); }
.wavy { text-decoration: underline wavy; text-decoration-thickness: 1.5px; text-underline-offset: 6px; font-weight: 700; color: var(--ink); }
.wavy:hover { color: var(--sky); }

/* ------------------------------------------------------------ chalk drawing */
.art { width: 100%; height: auto; overflow: visible; }
.s { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.c-ink { color: var(--ink); } .c-muted { color: var(--muted); } .c-sky { color: var(--sky); } .c-sun { color: var(--sun); } .c-slip { color: var(--slip); }
.c-line { color: var(--board-line); } .c-line2 { color: rgba(242, 244, 243, 0.5); }
.f-ink { fill: var(--ink); } .f-sky { fill: var(--sky); } .f-sun { fill: var(--sun); } .f-mint { fill: var(--mint); } .f-slip { fill: var(--slip); }
.f-deep { fill: var(--board-deep); } .f-ledge { fill: var(--ledge); }
.art text, .glyph text { font-family: var(--hand); }
.art text.small { font-family: var(--ui); font-weight: 700; }
.t-ink { fill: var(--ink); } .t-muted { fill: var(--muted); } .t-onchalk { fill: var(--on-chalk); }
.dotted { stroke-dasharray: 0.1 7; }
.trail { stroke-dasharray: 0.1 9; }
.ring { stroke-dasharray: 0.0065 0.0065; }
.smear { color: rgba(242, 244, 243, 0.055); filter: blur(7px); }
.wipe { opacity: 0.2; filter: blur(3.4px); }

/* ------------------------------------------------------------ plates (the app's chalk-filled buttons) */
.plate {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 var(--s8);
  color: var(--on-chalk); text-decoration: none;
  font-weight: 800; font-size: 1.1875rem; letter-spacing: 0.006em; line-height: 1;
  border-radius: var(--r-l);
}
.plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sky); border-radius: var(--r-l); filter: url(#rough); }
.plate:hover::before { filter: url(#rough) brightness(1.07); }
.plate--small { min-height: 44px; padding: 0 var(--s5); font-size: 0.9375rem; border-radius: var(--r-m); }
.plate--small::before { border-radius: var(--r-m); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.cta__note { font-size: var(--fs-small); color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------------ top bar */
.top { position: relative; z-index: 2; padding-block: var(--s6); }
.top__in { display: flex; align-items: center; gap: var(--s8); }
.wordmark { font-family: var(--hand); font-size: 2rem; line-height: 1; text-decoration: none; color: var(--ink); margin-right: auto; }
.top__nav { display: flex; gap: var(--s8); }
.top__nav a, .foot__nav a { font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--muted); padding-block: var(--s3); }
.top__nav a:hover, .foot__nav a:hover { color: var(--ink); text-decoration: underline wavy; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(32px, 5vw, 72px) var(--air); }
.hero__in { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.hero__copy { display: grid; gap: var(--s8); justify-items: start; }
.hero__art { max-width: 700px; justify-self: end; width: 100%; }

/* ------------------------------------------------------------ story beats */
.beat { padding-block: 0 var(--air); }
.beat__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.beat__copy { display: grid; gap: var(--s5); max-width: var(--measure); justify-items: start; }
.beat__copy > p:not(.quiet) { color: var(--muted); }
.beat__copy--wide { max-width: 44rem; }
.tick { height: 44px; width: auto; margin-bottom: var(--s2); overflow: visible; }

.beat--stick .beat__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 80px); }
.beat--stick .beat__art { order: -1; }
.beat--stick .beat__copy { justify-self: end; }

.window__art { margin-top: var(--s16); position: relative; max-width: 900px; margin-left: clamp(0px, 9vw, 150px); }
.window__note { color: var(--muted); transform: rotate(-2deg); transform-origin: left; margin-top: var(--s4); margin-left: var(--s6); }
.art--tally { padding-left: 0; }

/* ------------------------------------------------------------ screens: drawn onto the board, not put in a device */
.shot { position: relative; width: min(100%, 300px); }
.shot__frame { position: relative; border-radius: 13.5% / 6.2%; }
.shot__frame picture { display: block; border-radius: inherit; }
.shot__frame img { width: 100%; height: auto; border-radius: inherit; background: var(--board-deep); }
.shot__frame::after {                        /* the chalk line round the screen */
  content: ""; position: absolute; inset: -9px; border: 2.6px solid var(--ink); border-radius: 15% / 6.9%;
  filter: url(#outline); opacity: 0.92; pointer-events: none;
}
.shot__note { position: absolute; display: flex; align-items: flex-start; gap: var(--s2); width: 11ch; }
.shot__note--right { left: calc(100% + 18px); top: 30%; transform: rotate(-3deg); flex-direction: column; }
.shot__note--left { right: calc(100% + 18px); top: 36%; transform: rotate(3deg); flex-direction: column-reverse; align-items: flex-end; text-align: right; }
.note-arrow { width: 62px; height: auto; overflow: visible; flex: none; }

.when { display: flex; align-items: center; gap: var(--s2); font-size: 1.75rem; line-height: 1; margin-bottom: var(--s6); }
.glyph { width: 30px; height: 30px; overflow: visible; }

.beat__in--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.shot--build { justify-self: center; margin-right: clamp(0px, 8vw, 130px); }

/* a quit day */
.day { position: relative; margin-top: var(--s16); }
.daytrail { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 24px; overflow: visible; }
.day__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); }
.moment { display: grid; justify-items: start; align-content: start; gap: var(--s3); }
.moment .when { background: var(--board); padding-right: var(--s4); position: relative; margin-bottom: var(--s8); }
.moment .shot { margin-bottom: var(--s8); margin-left: 9px; }
.moment > p:last-child { color: var(--muted); max-width: 22rem; }
.ask { font-style: normal; font-size: 1.3em; line-height: 1; color: var(--ink); }

/* same marks */
.equal { padding-block: 0 var(--air); }
.equal__title { max-width: 14ch; }
.equal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); margin-top: var(--s16); align-items: start; }
.twin { display: grid; gap: var(--s5); }
.twin .art { width: auto; height: 124px; }
.twin--slip .art { height: 104px; margin-top: 20px; }
.twin figcaption { display: grid; gap: 2px; border-top: 1.5px solid var(--board-line); padding-top: var(--s4); }
.twin figcaption strong { font-size: var(--fs-h3); line-height: 1.24; }
.twin figcaption span { color: var(--muted); max-width: 24rem; }

/* the cairn */
.cairn__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.shot--cairn { justify-self: center; width: min(100%, 340px); }
.explain { margin-top: var(--s3); max-width: 30rem; }
.explain summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--muted); padding-block: var(--s3); min-height: 44px; }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: ""; width: 9px; height: 9px; border-right: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.explain[open] summary::after { transform: translateY(2px) rotate(225deg); }
.explain summary:hover { color: var(--ink); }
.explain p { color: var(--ink); }

.after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: clamp(72px, 9vw, 136px); }
.after__item { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s10); align-items: center; }
.after__item p { color: var(--muted); margin-top: var(--s3); }
.shot--small .shot__frame::after { inset: -7px; border-width: 2.2px; }

/* ------------------------------------------------------------ free and Pro */
.included { padding-block: 0 var(--air); }
.included__head { display: grid; gap: var(--s5); max-width: 40rem; }
.included__head p { color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: var(--s16); }
.tier h3 { padding-bottom: var(--s4); border-bottom: 1.5px solid var(--board-line); margin-bottom: var(--s4); }
.ticks { display: grid; gap: var(--s3); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); align-items: start; color: var(--ink); }
.ico { width: 22px; height: 22px; margin-top: 0.22em; overflow: visible; }
.tier .ico { color: var(--mint); }
.tier--pro .ico { color: var(--sky); }
.ticks--row { grid-template-columns: repeat(2, max-content); gap: var(--s3) var(--s12); }
.ticks--row .ico { color: var(--mint); }

/* ------------------------------------------------------------ privacy */
.private { padding-block: 0 var(--air); }
.private__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.private__in h2 { max-width: 10ch; }
.private__body { display: grid; gap: var(--s6); max-width: var(--measure); padding-top: var(--s3); }
.private__body > p:first-child { font-size: var(--fs-lede); }

/* ------------------------------------------------------------ questions */
.faq { padding-block: 0 var(--air); }
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__head { display: grid; gap: var(--s5); }
.faq__list { border-top: 1.5px solid var(--board-line); }
.faq details { border-bottom: 1.5px solid var(--board-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding-block: var(--s5); font-size: var(--fs-h3); font-weight: 800; line-height: 1.24; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sky); }
.faq .plus { color: var(--muted); flex: none; margin: 0; }
.faq .plus .v { transform-origin: 12px 12px; }
.faq details[open] .plus .v { transform: scaleY(0); }
.faq details p { color: var(--muted); max-width: 38rem; padding-bottom: var(--s6); }
.faq details p strong { color: var(--ink); }

/* ------------------------------------------------------------ close */
.close { padding-block: 0 clamp(72px, 9vw, 128px); }
.close__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.close__art { max-width: 600px; }
.close__copy { display: grid; gap: var(--s5); justify-items: start; }
.close__copy > p { color: var(--muted); font-size: var(--fs-lede); margin-bottom: var(--s4); }
.close .display--2 { font-size: var(--fs-display); line-height: 0.92; }
.stone text { font-size-adjust: none; }

/* ------------------------------------------------------------ footer: the chalk tray */
.tray { width: 100%; height: 40px; }
.foot__band { background: var(--board-deep); padding-block: var(--s10) var(--s12); }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s8); }
.foot .wordmark { font-size: 1.75rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--s8); }
.foot__fine { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; font-weight: 600; }

/* ============================================================ motion
   The base styles above are the finished drawing. Motion is only added when script is running
   (html.js, set in the head) and the reader has not asked for reduced motion. Without either,
   every drawing is complete from the first frame. */
@keyframes draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }
@keyframes wipe { from { opacity: 1; filter: blur(0); } }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* M1 to M4: the hero plays once, on load */
  .js .art--hero .draw { stroke-dasharray: 1 1.5; animation: draw var(--t, 0.3s) var(--ease-chalk) var(--d, 0s) both; }
  .js .art--hero .fadein { animation: fadein var(--t, 0.24s) var(--ease-std) var(--d, 0s) both; }
  .js .art--hero .write { animation: write var(--t, 0.22s) var(--ease-std) var(--d, 0s) both; }
  .js .art--hero .wipe { animation: wipe 0.9s var(--ease-slow) 2.7s both; }

  /* M5 to M8: each drawing is drawn once, when it arrives (main.js adds .is-drawn) */
  .js [data-draw] .draw { stroke-dasharray: 1 1.5; }
  .js [data-draw]:not(.is-drawn) .draw { stroke-dashoffset: 1.02; }
  .js [data-draw]:not(.is-drawn) .ring,
  .js [data-draw]:not(.is-drawn) .stone,
  .js [data-draw]:not(.is-drawn) .late { opacity: 0; }
  .js [data-draw].is-drawn .draw { animation: draw var(--t, 0.28s) var(--ease-chalk) var(--d, 0s) both; }
  .js [data-draw].is-drawn .draw.slow { animation-timing-function: var(--ease-slow); }
  .js [data-draw].is-drawn .ring { animation: fadein 0.42s var(--ease-std) var(--ring-d, 1.3s) both; }
  .js [data-draw].is-drawn .stone { animation: settle 0.28s var(--ease-std) calc(0.75s + var(--k) * 0.18s) both; }
  .js [data-draw].is-drawn .late { animation: fadein 0.24s var(--ease-std) var(--d, 1.4s) both; }

  /* M9, M10 */
  .plate { transition: transform var(--t-press) ease-out; }
    .faq .plus .v { transition: transform var(--t-quick) var(--ease-std); }
  .explain summary::after { transition: transform var(--t-quick) var(--ease-std); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
  .plate:active { transform: none; }
  .plate:active::before { filter: url(#rough) brightness(0.92); }
}

@media print {
  .js [data-draw] .draw, .js .art--hero .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js [data-draw] .ring, .js [data-draw] .stone, .js [data-draw] .late { opacity: 1; animation: none; }
  .top, .foot .tray, .skip { display: none; }
}

/* ============================================================ privacy, support, 404 */
.doc { padding-block: clamp(24px, 4vw, 56px) var(--air); }
.doc__in { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.doc__body { display: grid; gap: var(--s6); max-width: 40rem; }
.doc__body > p, .doc__part p { max-width: var(--measure); }
.doc__lede { color: var(--ink); max-width: 36rem; }
.doc__part { display: grid; gap: var(--s3); padding-top: var(--s6); border-top: 1.5px solid var(--board-line); margin-top: var(--s4); }
.doc__part:first-of-type { margin-top: var(--s8); }
.doc__part h2 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.24; }
.doc__part p { color: var(--muted); }
.doc__part p strong, .doc__part p a { color: var(--ink); }
.doc__date { color: var(--muted); font-size: var(--fs-small); margin-top: var(--s8); }
.doc__download { margin-top: var(--s2); }
.doc__contact { display: grid; gap: var(--s3); justify-items: start; margin-top: var(--s2); }
.doc__contact .plate { font-size: 1.0625rem; padding-inline: var(--s6); overflow-wrap: anywhere; text-align: center; }
.doc__faq { margin-top: var(--s2); padding-block: 0; }
.nowrap { white-space: nowrap; }
.doc__faq summary { font-size: 1.125rem; }
.doc__more { margin-top: var(--s4); }
.doc__art { justify-self: start; position: sticky; top: var(--s12); padding-top: var(--s24); }
.art--ticked { width: 150px; }
.art--slipdoc { width: 112px; }
.doc__art--slip .note { color: var(--muted); transform: rotate(-3deg); margin-top: var(--s4); }
.doc--404 { min-height: 50vh; }
.wavy { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .doc__in { grid-template-columns: minmax(0, 1fr); }
  .doc__art { display: none; }
}
@media (max-width: 640px) {
  .doc__contact { justify-items: stretch; }
}

/* ============================================================ responsive */
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .after { grid-template-columns: 1fr; }
  .after__item { grid-template-columns: 200px minmax(0, 1fr); }
  .shot__note { width: 9ch; }
}

@media (max-width: 860px) {
  :root { --air: clamp(88px, 16vw, 140px); }
  .hero__in, .beat__in, .beat--stick .beat__in, .beat__in--shot, .cairn__top, .private__in, .faq__in, .close__in { grid-template-columns: minmax(0, 1fr); }
  /* like the app's own story screens: the drawing first, the words under it */
  .hero__art { order: -1; justify-self: start; max-width: 460px; }
  .hero { padding-top: var(--s2); }
  .tick { height: 36px; }
  .beat--stick .beat__copy { justify-self: start; }
  .beat--stick .beat__art { order: 0; max-width: 560px; }
  .window__art { margin-left: 0; margin-top: var(--s10); }
  .window__note { margin-left: 0; }
  .shot--build, .shot--cairn { justify-self: start; margin-inline: 9px 0; width: min(72%, 300px); }
  .shot__note--right, .shot__note--left { left: calc(100% + 14px); right: auto; top: 26%; transform: rotate(-3deg); flex-direction: column; align-items: flex-start; text-align: left; width: 9ch; }
  .shot__note--left .note-arrow { transform: scaleX(-1); order: -1; }
  .private__in h2, .equal__title { max-width: none; }
  .close__art { max-width: 520px; }
  .day__list, .equal__grid { gap: var(--s8); }
  .after__item { grid-template-columns: 170px minmax(0, 1fr); gap: var(--s8); }
}

@media (max-width: 640px) {
  .shot__note--right, .shot__note--left { width: 6.5ch; font-size: 1.3125rem; }
  .note-arrow { width: 46px; }

  /* the day runs down the page */
  .daytrail { display: none; }
  .day { margin-top: var(--s10); }
  .day__list { grid-template-columns: 1fr; gap: var(--s16); border-left: 2.6px dotted rgba(195, 205, 206, 0.6); padding-left: var(--s6); margin-left: 6px; }
  .moment .when { background: none; margin-bottom: var(--s5); }
  .moment .shot { width: min(72%, 280px); margin-bottom: var(--s6); }

  .equal__grid { grid-template-columns: 1fr; gap: var(--s12); margin-top: var(--s10); }
  .twin .art { height: 104px; } .twin--slip .art { height: 88px; margin-top: 0; }
  .after__item { grid-template-columns: 132px minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .after__item .shot { margin-left: 7px; }
  .tiers { grid-template-columns: 1fr; gap: var(--s12); margin-top: var(--s12); }
  .ticks--row { grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--s3) var(--s8); }
  .plate:not(.plate--small) { width: 100%; }
  .cta { width: 100%; align-items: stretch; }
  .foot__nav { gap: var(--s6); }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.75rem; }
  .after__item { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s5); }
  .ticks--row { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.1875rem; }
}
