/* The pages following the painted opener share one sheet of paper. */
.page-home {
  --paper: #f8f8f6;
  --ink: #242423;
  --muted: #545453;
  --line: #cececa;
  --line-strong: #aaa9a6;
  --light: #eeeee9;
  --chart-neutral: #a8a8a5;
  --red: var(--ink);
  --red-soft: #eaeae7;
  --serif: var(--display);
  --sheet-width: min(1112px, calc(100% - clamp(36px, 7vw, 84px)));
  --section-space: clamp(56px, 8vw, 108px);
  --sheet-title: clamp(35px, 4.4vw, 58px);
}
.first-drafts { --paper: #f1e8d4; --ink: #2a2118; }
.first-drafts::after {
  content: ''; position: absolute; inset: auto 0 0; height: min(11svh, 90px);
  z-index: 2; pointer-events: none; background: linear-gradient(transparent, #f8f8f6);
}
html:has(.page-home) { scroll-padding-top: 64px; }
#homepage:focus-visible { outline: none; }
#homepage:focus-visible h1 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.page-home ::selection { background: #d8d8d4; color: #191919; }
.page-home main > section:not(.first-drafts).wrap,
.page-home :is(.manifesto, .model-data, .model-explainer) > .wrap,
.page-home .footer.wrap { width: var(--sheet-width); max-width: none; margin-inline: auto; }

.page-home main :is(.hero-copy h1, .manifesto h2, .proof-heading h2, .model-data-heading h2,
                    .model-flow-heading h2, .home-faq-heading h2, .closing-simple h2) {
  margin: 0 auto;
  max-width: 25ch;
  font: 460 var(--sheet-title)/1.055 var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -.018em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.page-home main h2 em, .page-home main h1 em { font: inherit; color: inherit; }
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding: 0 .15em;
  font: 500 20px/1.2 var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -.018em;
  color: var(--ink);
}
.page-home .hero.editorial-hero { padding: var(--section-space) 0 0; }
.page-home .editorial-hero .hero-copy { display: block; text-align: center; }
.page-home .hero-copy h1 { max-width: none; white-space: normal; font-size: clamp(42px, 5.8vw, 80px); }
.page-home .hero-copy h1 em { display: inline; margin: 0; padding: 0; }
.page-home .hero-copy .hero-description { max-width: none; margin: 22px auto 4px; font: 460 clamp(21px, 2.2vw, 29px)/1.2 var(--display); }
.page-home .hero-detail, .page-home .manifesto-copy > p, .page-home .model-data-heading > p,
.page-home .proof-test-intro > p {
  margin: 16px auto 0;
  max-width: 57ch;
  padding: 0;
  font: clamp(15px, 1.3vw, 18px)/1.6 var(--body);
  color: var(--muted);
  text-wrap: pretty;
}
.page-home .hero-detail { margin-top: 8px; max-width: 54ch; }
.hero-copy .paper-link { margin-top: 10px; }
.page-home .hero-stage {
  --hero-stacked: 0;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 3.8fr) minmax(110px, 1fr);
  gap: 0 clamp(12px, 2.4vw, 32px);
  margin-top: clamp(26px, 3.5vw, 50px);
}
.page-home .hero-stage .hero-art { grid-area: 1 / 2; }
.page-home .hero-stage .hero-invitation, .page-home .hero-stage .art-note-position {
  align-self: center;
  max-width: 190px;
  margin: 0;
  padding: 0;
  font-size: clamp(24px, 2.25vw, 32px);
}
.page-home .hero-stage .hero-invitation { grid-area: 1 / 1; }
.page-home .hero-stage .art-note-position { grid-area: 1 / 3; align-self: start; margin-top: 10%; }
.page-home .hero-art-footer { grid-area: 2 / 2; padding-top: 22px; gap: 30px; }
.page-home .hero-art-footer .hero-note { font-size: clamp(21px, 2.1vw, 28px); }
.page-home .paint-surface, .page-home .proof-result-image, .page-home .model-flow-image img {
  border-radius: 2px;
  box-shadow: 0 1px 2px #0002, 0 7px 19px #00000014;
}
.page-home .manifesto { background: transparent; color: var(--ink); }
.page-home .manifesto .intro-section {
  display: flex; flex-direction: column; gap: 28px;
  padding: var(--section-space) 0 0;
}
.page-home .manifesto-copy { width: 100%; text-align: center; }
.page-home .manifesto-copy h2 { max-width: 22ch; }
.page-home .manifesto-copy p { margin-top: 22px; }
.page-home .polaroid-gallery { width: min(100%, 540px); }
.page-home .polaroid-slot:focus-visible .polaroid, .page-home .polaroid-flip:focus-visible { outline-color: var(--ink); }

.page-home .proof-section { padding-block: var(--section-space) calc(var(--section-space) * .5); text-align: center; }
.page-home .proof-heading { margin-bottom: 24px; }
.page-home .proof-tabs { margin: 0; background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.page-home .proof-tabs > button, .page-home .switch-selection { border-radius: 999px; }
.page-home .proof-test-intro, .page-home .proof-panel[data-proof-panel] .proof-test-intro {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px;
  margin: 20px 0 34px; min-height: 0;
}
.page-home .proof-test-intro > p { margin: 0; max-width: 62ch; }
.page-home .proof-iteration-count { margin: 0; }
.page-home .proof-board { text-align: left; }
.page-home [data-proof-panel="iterations"] .proof-board { max-width: 900px; margin-inline: auto; }
.page-home .proof-result > figcaption { font-size: 14px; min-height: 30px; }
.page-home .proof-result-redraft > figcaption > span { color: var(--ink); background: transparent; padding: 0; font-weight: 700; }
.page-home .proof-result-redraft .proof-result-image { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.page-home .proof-result-redraft .proof-result-image > img { outline: 0; }
.page-home .proof-callout { color: #383838; }
@media (min-width: 881px) {
  .page-home .proof-board .proof-callout { font-size: clamp(24px, 2.15vw, 31px); line-height: 1; }
}
.page-home .proof-model-picker, .page-home .proof-source-picker { justify-content: center; }

.page-home .model-data { background: transparent; border: 0; padding: calc(var(--section-space) * .6) 0; }
.page-home .model-data-heading { display: block; margin-bottom: 36px; text-align: center; }
.page-home .model-data-heading > p { margin-top: 20px; }
.page-home .data-projection { border: 1px solid var(--line); background: #ffffff75; }
.page-home :is(.data-observed-note, .data-projection-note, .data-chart-note, .data-test-note, .data-result-stats p, .data-grader-stat p, .data-pricing p, .data-patents p, .model-data-method) { font-size: 13px; line-height: 1.65; }
.page-home .data-score-input .data-score-track > span { background: repeating-linear-gradient(125deg, #999 0 1px, transparent 1px 4px); border: 1px solid #999; }
.page-home .model-data h3 { font-weight: 460; }
.page-home .home-faq.section-space { padding-block: var(--section-space) 0; }
.page-home .home-faq .home-faq-heading { margin-bottom: 34px; }
.page-home .home-faq .faq-index { color: var(--muted); }
.page-home .home-faq .faq-plus { font-family: var(--display); }
.page-home .closing.closing-simple.wrap {
  flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  border: 0; padding: var(--section-space) 0; background: transparent;
  color: var(--ink); text-align: center;
}
.page-home .footer { padding: 0 0 24px; }
.page-home .footer .footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }

@media (max-width: 760px) {
  html:has(.page-home) { scroll-padding-top: 58px; }
  .page-home .hero-stage { --hero-stacked: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .page-home .hero-stage .hero-invitation { grid-area: 1 / 1; }
  .page-home .hero-stage .art-note-position { grid-area: 1 / 2; margin: 0; align-self: end; }
  .page-home .hero-stage .hero-art { grid-area: 2 / 1 / 3 / -1; }
  .page-home .hero-art-footer { grid-area: 3 / 1 / 4 / -1; padding-top: 8px; gap: 20px; }
  .page-home .proof-test-intro, .page-home .proof-panel[data-proof-panel] .proof-test-intro { margin-bottom: 22px; }
  .page-home .proof-iteration-count { width: min(100%, 220px); }
}
