:root {
  --blue: #0058e0;
  --yellow: #ffd000;
  --ink: #202023;
  --paper: #fff;
  /* Sampled from the opening video's unchanging outer background. */
  --page-background: #fbf8f0;
  --muted: #626269;
  --brand-angle: -6deg;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--page-background);
}
body {
  margin: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 5px 9px 4px 8px;
  font-weight: bold;
  padding: 12px 20px;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
button:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--ink);
}
button:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 32px;
  text-decoration: none;
  letter-spacing: -1.5px;
  color: var(--blue);
  transform: rotate(var(--brand-angle));
  white-space: nowrap;
}
.wordmark em,
.wordmark span {
  color: var(--yellow);
  font-style: normal;
}
.header-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.demo-label {
  font-size: 13px;
  color: var(--muted);
}
.motion {
  font-size: 13px;
  cursor: pointer;
}
.motion input {
  accent-color: var(--blue);
}
.small {
  padding: 8px 16px;
  font-size: 14px;
}
.intro {
  max-width: 1190px;
  margin: 35px auto 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 35px;
  gap: 50px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 900;
  color: var(--blue);
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin: 18px 0 24px;
}
h1 span {
  position: relative;
  white-space: nowrap;
}
h1 span:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 9px;
  background: repeating-linear-gradient(174deg, #ffd00099 0 2px, #ffd00040 2px 3px);
  transform: rotate(-2deg);
  z-index: -1;
}
.lede {
  max-width: 450px;
  font-size: 18px;
  color: #55555c;
}
.tagline,
.hand,
.scribble-note,
.printer-note {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
}
.tagline {
  font-size: 23px;
  transform: rotate(-2deg);
  margin-top: 25px;
}
.tagline span {
  color: var(--blue);
  font-size: 42px;
  padding-left: 25px;
}
.pip-zone {
  text-align: center;
  position: relative;
  padding-top: 28px;
}
.pip-zone img {
  width: 100%;
  max-width: 450px;
  height: auto;
}
.scribble-note {
  color: var(--blue);
  font-size: 17px;
  line-height: 1.25;
  transform: rotate(7deg);
  position: absolute;
  right: -5px;
  top: 0;
}
.printer-note {
  font-size: 15px;
  display: block;
  transform: rotate(2deg);
  margin-top: -8px;
}
.press {
  max-width: 1060px;
  margin: 45px auto 0;
  padding: 0 25px;
}
.jobs-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.hand {
  font-size: 20px;
  transform: rotate(-3deg);
}
.jobs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.jobs button {
  flex: 1;
  white-space: nowrap;
  font-size: 14px;
  padding: 12px 9px;
}
.jobs button span {
  font-size: 11px;
  opacity: 0.65;
  margin-right: 6px;
}
.jobs button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
}
.paper-slot {
  margin: 30px auto 0;
  height: 18px;
  background: repeating-linear-gradient(-8deg, #0755d1 0 2px, #3177e0 2px 4px);
  border: 3px solid var(--ink);
  border-radius: 10px 13px 5px 5px;
  position: relative;
  z-index: 2;
  max-width: 890px;
  box-shadow: 0 4px 0 #aaa;
}
.paper-slot span {
  display: block;
  background: #242429;
  height: 5px;
  width: 94%;
  margin: 5px auto;
  border-radius: 20px;
}
.status {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin: 14px 0;
}
.sheet-window {
  overflow: hidden;
  padding: 0 12px 15px;
}
.sheet {
  background: #fff;
  max-width: 850px;
  margin: auto;
  padding: 38px 48px 28px;
  border: 2px solid var(--ink);
  border-radius: 1px 3px 7px 2px;
  box-shadow: 5px 6px 0 #dedee2;
  transform-origin: top center;
  position: relative;
}
.sheet:focus {
  outline: none;
}
.sheet:before {
  position: absolute;
  content: "";
  top: 6px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  pointer-events: none;
  border: 1px solid #b8b8bf;
  border-radius: 2px 7px 3px 5px;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  gap: 10px;
}
.paper-title {
  font:
    900 clamp(30px, 4vw, 45px)/1.13 Georgia,
    serif;
  letter-spacing: -1px;
  text-align: center;
  margin: 21px 0 12px;
}
.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
}
.ruler {
  height: 5px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 18px 0 22px;
}
.reading-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reading-controls button {
  font-size: 12px;
  padding: 6px 10px;
  box-shadow: none;
  border-color: #b8b8bf;
}
.reading-controls button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf4ff;
}
.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}
.columns > div + div {
  border-left: 1px solid #aaa;
  padding-left: 25px;
}
.kicker {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-transform: uppercase;
}
h2 {
  font:
    900 28px/1.15 Georgia,
    serif;
  margin: 8px 0 16px;
}
h3 {
  font:
    900 21px/1.2 Georgia,
    serif;
  margin: 12px 0;
}
p {
  margin: 12px 0;
}
.story {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}
.cliffhanger {
  font-weight: bold;
}
.tomorrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: bold;
}
.little-section {
  margin-bottom: 22px;
}
.mission {
  padding: 16px;
  background: repeating-linear-gradient(-7deg, #fff6c9 0 3px, #fff9dd 3px 5px);
  border: 2px solid var(--ink);
  border-radius: 3px 7px 2px 5px;
  transform: rotate(1deg);
}
.paper-footer {
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  margin-top: 28px;
}
.paper-footer span {
  font-size: 12px;
  color: var(--muted);
}
.paper-footer button {
  background: var(--yellow);
  font-size: 14px;
  white-space: nowrap;
}
.step {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  border-bottom: 1px dashed #aaa;
  padding: 18px 0;
}
.step b:first-child {
  font:
    900 33px Georgia,
    serif;
  color: var(--blue);
}
.step h3 {
  margin: 0 0 6px;
}
.step p {
  margin: 0;
}
.setting {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 6px 2px 8px 4px;
  background: #f4f8ff;
  margin: 22px 0;
}
.setting label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.setting input,
.setting select {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 8px;
  background: white;
  max-width: 100%;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid var(--ink);
  padding: 18px;
  border-radius: 3px 10px 4px 7px;
}
.plan h3 { margin-top: 0; }
.plan-detail { margin: 0 0 16px; font-size: 15px; }
.plan:first-child {
  background: #eef5ff;
}
.plan:last-child {
  background: #fff8d6;
}
.price {
  font:
    900 44px Georgia,
    serif;
  margin: 20px 0 12px;
}
.price small {
  display: block;
  font:
    14px "Trebuchet MS",
    sans-serif;
}
.plan ul {
  padding-left: 19px;
  font-size: 15px;
  min-height: 135px;
}
.plan button {
  margin-top: auto;
  width: 100%;
  font-size: 14px;
}
@media (max-width: 1000px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}
.fine {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  background: #f3f6fa;
  margin: 20px 0;
}
.gift-card {
  text-align: center;
  border: 3px dashed var(--blue);
  padding: 30px 20px;
  background: #fff;
  font-family: Georgia, serif;
  transform: rotate(-1deg);
}
.gift-card strong {
  font-size: 27px;
  color: var(--blue);
}
/* Give the gift copy and note enough room on smaller tablets. */
@media (min-width: 761px) and (max-width: 1000px) {
  .sheet[data-page="gift"] .columns { grid-template-columns: minmax(0, 1fr); }
  .sheet[data-page="gift"] .columns > div { min-width: 0; }
  .sheet[data-page="gift"] .gift-card {
    border-left: 3px dashed var(--blue);
    padding-left: 20px;
    transform: none;
  }
}
footer {
  max-width: 1100px;
  margin: 45px auto 30px;
  text-align: center;
  padding: 15px 20px;
}
footer p {
  font-size: 14px;
}
footer small {
  font-size: 11px;
  color: var(--muted);
}
.ink {
  animation: ink 0.45s both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.printing {
  animation: print 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}
.leaving {
  animation: roll 0.25s ease-in both;
}
.no-motion .ink,
.no-motion .printing,
.no-motion .leaving {
  animation: none !important;
}
.no-motion * {
  scroll-behavior: auto !important;
  transition: none !important;
}
@keyframes ink {
  from {
    opacity: 0;
    filter: blur(1px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes print {
  from {
    transform: translateY(-65px) scaleY(0.92);
    opacity: 0.1;
  }
  to {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}
@keyframes roll {
  to {
    transform: translateY(-70px) scaleY(0.85);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  header {
    padding: 20px;
    align-items: flex-start;
  }
  .wordmark {
    font-size: 25px;
  }
  .header-right {
    gap: 10px;
    flex-direction: column;
    align-items: flex-end;
  }
  .demo-label {
    display: none;
  }
  .intro {
    margin: 20px auto 10px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px;
  }
  .intro-copy {
    text-align: center;
  }
  h1 {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
  .lede {
    margin: 20px auto;
    font-size: 16px;
  }
  .tagline {
    font-size: 23px;
    margin-bottom: 0;
  }
  .pip-zone {
    max-width: 370px;
    margin: auto;
    padding-top: 35px;
  }
  .pip-zone img {
    max-width: 310px;
  }
  .scribble-note {
    right: 0;
    font-size: 14px;
  }
  .printer-note {
    font-size: 12px;
  }
  .press {
    margin-top: 30px;
    padding: 0 13px;
  }
  .jobs {
    gap: 10px;
  }
  .jobs button {
    flex: 1 1 28%;
    font-size: 12px;
    padding: 11px 7px;
  }
  .jobs button span {
    display: none;
  }
  .jobs-heading {
    padding: 0 8px;
  }
  .hand {
    font-size: 17px;
  }
  .sheet-window {
    padding: 0 5px 10px;
  }
  .sheet {
    padding: 25px 21px 20px;
  }
  .paper-title {
    font-size: 31px;
  }
  .paper-top {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .columns > div + div {
    border-left: 0;
    border-top: 1px solid #aaa;
    padding-left: 0;
    padding-top: 20px;
  }
  .story {
    font-size: 17px;
  }
  .paper-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .sheet[data-page="pricing"] .paper-title {
    font-size: clamp(20px, 5vw, 30px);
  }
  .plan ul {
    min-height: 0;
  }
  .paper-slot {
    margin-top: 24px;
  }
  .printing {
    animation-name: printmobile;
  }
  @keyframes printmobile {
    from {
      transform: translateY(65px);
      opacity: 0.1;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ink,
  .printing,
  .leaving {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
/* The print queue stays in reach while the paper feeds out on scroll. */
body {
  padding-bottom: 110px;
}
.intro {
  display: block;
  text-align: center;
  max-width: 820px;
}
.intro-copy .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 590px;
}
.intro h1 br {
  display: none;
}
.intro h1 {
  font-size: clamp(38px, 5vw, 62px);
}
.intro h1 br:after {
  content: " ";
}
.intro .tagline span {
  display: none;
}
.jobs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  border-top: 3px solid var(--ink);
  padding: 17px max(20px, calc((100vw - 1040px) / 2)) calc(20px + env(safe-area-inset-bottom));
  flex-wrap: nowrap;
  box-shadow: 0 -5px 0 #0058e012;
}
.jobs button {
  min-height: 45px;
}
.jobs-heading {
  justify-content: center;
  gap: 24px;
}
.print-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: white;
  padding-top: 8px;
  pointer-events: none;
}
.print-head .pip-zone {
  padding: 0;
  margin: auto;
  width: 150px;
  height: 150px;
}
.print-head .pip-zone img {
  width: 150px;
  height: 150px;
  display: block;
}
.print-head .scribble-note,
.print-head .printer-note {
  display: none;
}
.print-head .paper-slot {
  margin: 0 auto;
  height: 18px;
}
.sheet-window {
  padding-top: 0;
  overflow: hidden;
  position: relative;
}
.sheet {
  will-change: transform;
  translate: 0 var(--paper-pull, 0px);
}
.status {
  position: relative;
  z-index: 9;
  background: var(--page-background);
  margin: 0;
  padding: 9px 0;
}
.press {
  scroll-margin-top: 10px;
}
.no-motion .sheet {
  translate: none;
  will-change: auto;
}
.no-motion .print-head {
  position: relative;
}
.sheet:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -5px;
}
footer {
  padding-bottom: 20px;
}
@media (max-width: 760px) {
  body {
    padding-bottom: 105px;
  }
  .intro h1 {
    font-size: 39px;
  }
  .intro {
    padding: 0 22px;
  }
  .jobs {
    padding: 12px 8px calc(14px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .jobs button {
    font-size: 11px;
    white-space: normal;
    flex: 1 1 20%;
    padding: 7px 4px;
    line-height: 1.2;
    min-height: 47px;
    box-shadow: 2px 3px 0 var(--ink);
  }
  .jobs-heading {
    gap: 10px;
    flex-direction: column;
  }
  .jobs-heading .hand {
    font-size: 16px;
  }
  .print-head .pip-zone,
  .print-head .pip-zone img {
    width: 112px;
    height: 112px;
  }
  .press {
    margin-top: 20px;
  }
  .sheet {
    scroll-margin-bottom: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet {
    translate: none !important;
    will-change: auto;
  }
  .print-head {
    position: relative;
  }
}

/* ==========================================================================
   Phase 1 fixes (November 2026). Everything above is the original design.
   These rules only adjust readability, touch size, focus and spacing.
   ========================================================================== */

/* Room for the fixed bottom buttons and the printer strip. app.js measures
   both and updates --nav-h / --head-h; these are the starting guesses. */
:root {
  --nav-h: 90px;
  --head-h: 176px;
}
html {
  scroll-padding-top: calc(var(--head-h) + 12px);
  scroll-padding-bottom: calc(var(--nav-h) + 16px);
}
body {
  padding-bottom: calc(var(--nav-h) + 20px);
}
.sheet {
  scroll-margin-bottom: 0;
}

/* iPhone notch and home bar: keep buttons and text out of the unsafe edges. */
header {
  padding-left: max(44px, env(safe-area-inset-left));
  padding-right: max(44px, env(safe-area-inset-right));
}
.jobs {
  padding-left: max(20px, env(safe-area-inset-left), calc((100vw - 1040px) / 2));
  padding-right: max(20px, env(safe-area-inset-right), calc((100vw - 1040px) / 2));
}

/* Focus ring: the coral ring was too faint on white. Blue is easy to see. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: var(--blue);
}
#answer:focus-visible,
#plan-note:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* Finger-sized targets (at least 44px tall). */
.small,
.reading-controls button,
.setting input,
.setting select {
  min-height: 44px;
}
.motion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
}
.motion input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.motion input:disabled {
  cursor: default;
}

/* Small print, made readable. */
.reading-controls button {
  font-size: 14px;
  padding: 8px 14px;
}
.kicker,
.status,
.paper-top {
  font-size: 12px;
}
.fine,
.tomorrow,
.paper-footer span,
.setting small,
.gift-card small,
footer small {
  font-size: 13px;
}
.setting small,
.gift-card small {
  display: block;
}
.jobs button span {
  opacity: 0.8;
}

@media (max-width: 760px) {
  header {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .jobs {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
  .jobs button {
    font-size: 12px;
  }
  .paper-top {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* Short screens (a phone turned sideways): shrink Pip and the button bar so
   there is still room to read the paper between them. */
@media (max-height: 520px) {
  .print-head .pip-zone,
  .print-head .pip-zone img {
    width: 72px;
    height: 72px;
  }
  .print-head {
    padding-top: 4px;
  }
  .jobs {
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .jobs button {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* Hold a page-height space for the paper until app.js has put the first
   sheet in, so the footer never flashes up and then jumps down. */
.sheet-window {
  min-height: 100vh;
}
.js-ready .sheet-window {
  min-height: 0;
}

/* The very smallest phones: keep the original 11px so all five buttons fit. */
@media (max-width: 360px) {
  .jobs button {
    font-size: 11px;
  }
}

/* The opening keeps the website off screen until playback and its pause end. */
html.opening-pending,
.opening-pending body {
  overflow: hidden;
}
.opening-pending body {
  padding-bottom: 0;
}
.opening-pending body > header,
.opening-pending body > main,
.opening-pending body > footer {
  display: none;
}
.opening[hidden] {
  display: none;
}
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--page-background);
}
.opening-frame {
  position: relative;
  flex: none;
  width: min(100%, 480px, calc((100dvh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 0.75));
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.opening-video {
  position: absolute;
  display: block;
  left: 0;
  top: -10%;
  width: 100%;
  height: auto;
  /* Display source rows 96–1056. All moving artwork fits inside, with margin. */
  aspect-ratio: 9 / 16;
  object-fit: contain;
}
.opening-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
}
.opening-controls button,
.opening-remember {
  min-height: 44px;
}
.opening-controls button {
  padding: 6px 12px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}
.opening-controls button:hover,
.opening-controls button:active {
  transform: none;
  box-shadow: none;
  background: #fff8d6;
}
.opening-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.opening-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}
.opening-note {
  flex: none;
  margin: 0;
  font-size: 14px;
  text-align: center;
}

/* The paper lives between its compact masthead and the fixed printer. */
:root {
  --head-h: 64px;
  --nav-h: 180px;
  --feed-distance: 60vh;
  --feed-width: min(820px, calc(58vw - 12px));
  --slot-front: 21%;
  /* The paper stops at 820px; leave at most 144px of printer on either side. */
  --printer-width: min(75vw, 1108px);
  --printer-height: max(116px, calc(var(--printer-width) / 5));
  --printer-image: url("printer-base.webp");
  --printer-bottom: calc(94px + env(safe-area-inset-bottom));
  --brand-width: 280px;
  --brand-rise: 164px;
  --brand-overhang: 120px;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body > header {
  flex: none;
  min-height: 64px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    10px max(24px, env(safe-area-inset-left));
  align-items: center;
}
.brand {
  position: absolute;
  top: calc(-1 * var(--brand-rise));
  left: calc(-1 * var(--brand-overhang));
  z-index: 2;
  width: var(--brand-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-width: 0;
}
.brand #pip {
  display: block;
  flex: none;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand .wordmark {
  display: inline-block;
  min-height: 44px;
  font-size: 42px;
  line-height: max(44px, 1.05em);
  color: #050505;
  letter-spacing: -2px;
}
.brand .wordmark em {
  color: inherit;
}
.brand .wordmark span,
.beta-wordmark span {
  color: #0062ed;
}
.brand .tagline {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 12px 4px;
  font: italic 700 22px / 1.2 Georgia, serif;
  color: #050505;
  background: var(--yellow);
  border-radius: 45% 7% 40% 5% / 16% 10% 18% 10%;
  transform: rotate(var(--brand-angle));
}
.info-nav {
  position: static;
  top: max(10px, env(safe-area-inset-top));
  right: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.info-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 900 21px / 1.2 Georgia, serif;
  color: #050505;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transform: none;
}
/* Three paired desktop rows; phones keep one continuous row of links. */
.info-nav-row { display: contents; }
.info-nav-divider { display: none; }
@media (min-width: 761px) and (min-height: 521px), (min-width: 961px) {
  .info-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
  }
  .info-nav a {
    font-size: 12px;
    transform: none;
  }
  .info-nav-divider {
    display: inline-block;
    color: #050505;
    font: 400 12px / 1.2 Georgia, serif;
  }
}
.info-nav a[aria-disabled="true"] { cursor: default; }
.info-nav .sign-in {
  position: static;
  width: auto;
  justify-content: flex-start;
  white-space: nowrap;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.portal-note {
  margin-top: 28px;
  padding: 18px;
  background: #fff8d6;
  border: 1px dashed #626269;
  border-radius: 5px 9px 4px 8px;
}
.portal-note h3 { margin: 0 0 8px; }
.portal-note p { margin: 0 0 12px; }
.portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  background: var(--yellow) url("crayon-button.webp") center / 100% 100% no-repeat;
  color: #122739;
  font-weight: bold;
  text-underline-offset: 3px;
  border-radius: 12px;
}
.portal-note small { display: block; margin-top: 6px; font-size: 12px; }
.footer-tools {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 18px);
  font-size: 14px;
  line-height: 1.2;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #003f9e;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.footer-tools .motion {
  max-width: 100%;
}
.footer-tools .motion input {
  flex: none;
}
/* Keep the social link beside Reduce motion without widening the text-link row. */
.footer-preferences {
  display: grid;
  grid-template-columns: 44px minmax(0, auto) 44px;
  align-items: center;
  column-gap: 8px;
  max-width: 100%;
}
.footer-preferences .motion { grid-column: 2; }
footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  color: #003f9e;
  border-radius: 50%;
  text-decoration: none;
}
.footer-social-link svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
footer .footer-social-link:hover { color: var(--blue); }
footer .footer-social-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  z-index: 3;
}
.official-logo {
  display: block;
  width: 93px;
  height: auto;
  object-fit: contain;
}
body > main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.press {
  display: flex;
  flex-direction: column;
  height: max(0px, calc(100dvh - var(--head-h) - var(--nav-h)));
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.press::before {
  content: "";
  position: fixed;
  left: calc(50% - var(--printer-width) / 2);
  bottom: var(--printer-bottom);
  width: var(--printer-width);
  height: var(--printer-height);
  background: var(--printer-image) center / 100% 100% no-repeat;
  z-index: 0;
  pointer-events: none;
}
.status {
  flex: none;
  padding: 3px 12px 7px;
  margin: 0;
  line-height: 1.4;
  z-index: auto;
}
.sheet-window,
.js-ready .sheet-window {
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
  padding: calc(var(--brand-rise) + 8px) 14px max(40px, calc(3vw + 16px));
  scroll-padding: 16px;
}
.sheet-window:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
.sheet-window.is-printing {
  overflow-y: hidden;
}
.sheet-stack {
  position: relative;
  width: var(--feed-width);
  max-width: 100%;
  margin: 0 auto;
}
.sheet {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 54px 42px 26px;
  translate: none;
  will-change: auto;
  transform-origin: bottom center;
}
.paper-title {
  margin-top: 16px;
}
.printer-dock {
  position: fixed;
  top: auto;
  bottom: var(--printer-bottom);
  left: calc(50% - var(--printer-width) / 2);
  z-index: 40;
  width: var(--printer-width);
  height: var(--printer-height);
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}
.no-motion .printer-dock {
  position: fixed;
}
/* A small crayon cue sits beside the paper, just clear of the printer's top. */
.scroll-cue {
  --cue-size: clamp(46.5px, 7.5vw, 99px);
  position: absolute;
  left: calc(50% + var(--feed-width) / 2 - var(--cue-size) * .1);
  bottom: calc(100% - var(--cue-size) * .12 + 4px);
  width: var(--cue-size);
  height: var(--cue-size);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: 55% 82%;
  animation: scroll-cue-jiggle 3s ease-in-out 3s infinite;
}
.scroll-cue[hidden] { display: none; }
.scroll-cue.is-paused,
.landscape-notice .scroll-cue { animation-play-state: paused; }
.no-motion .scroll-cue { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}
@keyframes scroll-cue-jiggle {
  0%, 16.667%, 100% { transform: none; }
  3.333% { transform: translateY(-2px) rotate(-3deg); }
  6.667% { transform: translateY(-3px) rotate(3deg); }
  10% { transform: translateY(-1px) rotate(-1.5deg); }
  13.333% { transform: rotate(1deg); }
}
.printer-art {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  /* A window in the rear of the drawing places the paper inside the slot.
     The lower edge of the same artwork stays in front as the printer lip. */
  clip-path: polygon(0 0,
    calc(50% - var(--feed-width) / 2) 0,
    calc(50% - var(--feed-width) / 2) calc(var(--slot-front) - 1%),
    calc(50% + var(--feed-width) / 2) calc(var(--slot-front) - 1%),
    calc(50% + var(--feed-width) / 2) 0,
    100% 0, 100% 100%, 0 100%);
}
.printer-art img {
  display: block;
  width: 100%;
  height: 100%;
}
.printer-dock .paper-slot {
  position: absolute;
  top: var(--slot-front);
  left: 8%;
  width: 84%;
  height: 1px;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
}
.printer-dock .jobs {
  position: absolute;
  inset: 37% 8% 23%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 0.8vw, 12px);
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.printer-dock .jobs button {
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  font-size: clamp(11px, 1.25vw, 16px);
  line-height: 1.2;
  white-space: normal;
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
}
.printer-dock .jobs button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
}
.printer-dock button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}
.printing {
  animation: paper-rise 0.65s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}
.leaving {
  animation: paper-return 0.18s ease-in both;
}
@keyframes paper-rise {
  from { transform: translateY(var(--feed-distance)) scale(0.88); }
  to { transform: translateY(0) scale(1); }
}
@keyframes paper-return {
  to { transform: translateY(var(--feed-distance)) scale(0.88); }
}
@media (max-width: 760px) {
  :root {
    --brand-width: 200px;
    --brand-rise: 120px;
    --brand-overhang: 8px;
  }
  body > header {
    min-height: 154px;
    flex-wrap: nowrap;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-bottom: 4px;
  }
  .brand { gap: 2px; justify-self: center; }
  .brand #pip { width: 64px; height: 64px; }
  .brand .wordmark { font-size: 28px; }
  .brand .tagline { font-size: clamp(14px, 4.2vw, 17px); padding: 3px 6px; }
  .header-right { right: max(12px, env(safe-area-inset-right)); }
  .official-logo { width: 69px; }
  .info-nav { right: calc(max(12px, env(safe-area-inset-right)) + 81px); }
  .info-nav a { font-size: 14px; }
  .info-nav .sign-in {
    position: absolute;
    left: calc(100% + 12px);
    top: 96px;
    width: 69px;
    justify-content: center;
    white-space: nowrap;
  }
  /* Use the same width as the opening in the printer's front layer. */
  .sheet-stack { width: var(--feed-width); }
  .sheet { padding: 50px 12px 24px; font-size: 16px; overflow-wrap: anywhere; }
  .paper-title { font-size: 25px; }
  .paper-top { flex-wrap: wrap; }
  .columns > div { min-width: 0; }
  .step { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .step b:first-child { font-size: 27px; }
  .plan, .setting, .portal-note, .gift-card { padding: 12px; }
  .plan button, .paper-footer button { padding: 10px 8px; white-space: normal; }
  .paper-footer button { width: 100%; }
  .gift-card { transform: none; }
  .gift-card strong { font-size: 24px; }
  .portal-link { padding: 10px 12px; }
  .status { font-size: 11px; padding-bottom: 4px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  :root {
    --head-h: 58px;
    --nav-h: 150px;
    --slot-front: 13%;
    --printer-height: max(154px, 46.4vw);
    --printer-image: url("printer-base-phone.webp");
  }
  /* Straight paper edges now fit the slot; no wide-page taper is needed. */
  .sheet-window,
  .js-ready .sheet-window {
    padding-bottom: 40px;
  }
  .printer-dock .jobs {
    inset: 28% 8% 13%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }
  .printer-dock .jobs button {
    grid-column: span 2;
    font-size: 12px;
    padding: 5px 3px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --printer-height: 116px;
    --brand-width: clamp(130px, 21vw, 180px);
    --brand-rise: 0px;
    --brand-overhang: calc((100vw - var(--feed-width)) / 2 - 12px);
  }
  body > header {
    min-height: 50px;
    padding-top: 4px;
    padding-bottom: 2px;
  }
  .brand { justify-self: start; gap: 0; }
  .brand #pip { width: 40px; height: 40px; }
  .brand .wordmark { font-size: clamp(19px, 3vw, 25px); }
  .brand .tagline { font-size: clamp(11px, 1.8vw, 14px); margin-top: 2px; padding: 2px 4px; white-space: nowrap; }
  .sheet { padding: 32px 32px 24px; overflow-wrap: anywhere; }
  .columns, .plans { grid-template-columns: minmax(0, 1fr); }
  .columns > div { min-width: 0; }
  .columns > div + div { border-left: 0; border-top: 1px solid #aaa; padding-left: 0; padding-top: 20px; }
  .gift-card { transform: none; }
  .header-right { top: max(4px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .info-nav {
    top: max(4px, env(safe-area-inset-top));
    right: calc(max(12px, env(safe-area-inset-right)) + 61px);
    width: 52px;
  }
  .info-nav a { font-size: 12.5px; }
  .info-nav .sign-in {
    position: absolute;
    left: calc(100% + 12px);
    top: 72px;
    width: 48.75px;
    justify-content: center;
    white-space: nowrap;
  }
  .official-logo { width: 48.75px; }
  .demo-label { display: none; }
  .status { padding-top: 0; padding-bottom: 2px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .printing,
  .leaving { animation: none !important; }
}

/* A single top row gives phones more room for Pip and the paper. */
@media (max-width: 760px), (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  body > header {
    min-height: 58px;
    padding: max(6px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      4px max(12px, env(safe-area-inset-left));
  }
  .info-nav {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .info-nav a { font-size: clamp(13px, 3.6vw, 14px); white-space: nowrap; }
  .info-nav .sign-in { position: static; width: auto; }
  .header-right { display: contents; }
  .official-logo { position: absolute; top: calc(100% + 4px); right: max(12px, env(safe-area-inset-right)); }
  .official-logo { width: clamp(48px, 18vw, 69px); }
}
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .official-logo { width: 48.75px; }
}

/* A gentle invitation, with a way to use the whole site sideways. */
.orientation-note[hidden] { display: none; }
.orientation-note {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: var(--page-background);
}
.orientation-card {
  width: min(680px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.orientation-card > img { width: 96px; height: 96px; object-fit: contain; }
.orientation-card h2 { margin: 0 0 12px; font-size: 27px; }
.orientation-card p { margin: 0 0 18px; font-size: 16px; }
.orientation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.orientation-actions a,
.orientation-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff8d6 url("crayon-button.webp") center / 100% 100% no-repeat;
  color: var(--ink);
  font: bold 14px/1.3 "Trebuchet MS", Arial, sans-serif;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.orientation-actions button { background-color: #edf4ff; text-decoration: none; }
.landscape-notice > header,
.landscape-notice > main,
.landscape-notice > footer { visibility: hidden; }

/* The buttons use the same rough navy crayon stroke as the printer. */
.printer-dock .jobs button,
.printer-dock .jobs button[aria-pressed="true"],
header button,
.reading-controls button,
.paper-footer button {
  position: relative;
  border: 3px solid transparent;
  border-radius: 12px;
  background-clip: padding-box;
  box-shadow: none;
}
.printer-dock .jobs button::after,
header button::after,
.reading-controls button::after,
.paper-footer button::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: url("crayon-button.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
/* Pale crayon fills keep the actual button labels clear and selectable. */
.printer-dock .jobs button {
  background: #dcecf7 url("printer-button-blue.webp") center / 100% 100% no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  color: #122739;
  font-weight: 800;
}
.printer-dock .jobs button[aria-pressed="true"] {
  background: #fff1ad url("printer-button-yellow.webp") center / 100% 100% no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  color: #122739;
}
.printer-dock .jobs button::after { content: none; }
.printer-dock .jobs button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}
.sheet[data-page="sample"] { padding: 50px 0 24px; }
.sample-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sample-toolbar,
.sample-transcript,
.sheet[data-page="sample"] .paper-footer { margin: 0 20px; }
.sample-toolbar .reading-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 8px;
}
.sample-toolbar .reading-controls button { min-width: 0; }
/* Consistent brand emphasis for the three reading-level names. */
.reader-level-word {
  color: var(--blue);
  font-weight: 700;
}
/* Keep the blue status word readable through every sky color. */
.status .reader-level-word { background-color: var(--page-background); }
.sample-level-select { display: none; }
.sample-level-select select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 6px;
  border: 2px solid var(--ink);
  border-radius: 5px 9px 4px 8px;
  background-color: white;
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}
.sample-level-select option { color: var(--blue); font-weight: 700; }
.sample-caption {
  margin: 8px 16px;
  text-align: center;
  font: 13px/1.5 "Trebuchet MS", Arial, sans-serif;
  color: var(--muted);
}
.sample-enlarge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--blue);
  font: bold 14px/1.4 "Trebuchet MS", Arial, sans-serif;
}
.sample-paper { display: block; width: 100%; height: auto; }
.sample-transcript { border-top: 2px solid var(--ink); }
.sample-transcript summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font: bold 16px/1.4 "Trebuchet MS", Arial, sans-serif;
}
.sample-transcript pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 17px/1.6 Georgia, serif;
}
.sample-transcript summary:focus-visible { outline: 3px solid var(--blue); }
@media (max-width: 760px) {
  .sample-toolbar,
  .sample-transcript,
  .sheet[data-page="sample"] .paper-footer { margin-right: 12px; margin-left: 12px; }
  .sample-toolbar .reading-controls button { min-width: 0; padding: 7px 4px; font-size: 12px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .sample-toolbar .reading-controls { display: none; }
  .sample-level-select { display: block; font-size: 13px; font-weight: bold; }
}

/* Standalone About and Values pages share the privacy page's calm reading layout. */
html.info-document {
  height: auto;
  overflow: auto;
  scroll-padding: 16px;
}
body.info-page {
  display: block;
  height: auto;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  font: 16px/1.5 "Trebuchet MS", Arial, sans-serif;
}
.info-page a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.info-page .info-header {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    14px max(24px, env(safe-area-inset-left));
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: white;
  border-bottom: 1px solid var(--ink);
}
.info-header a,
.info-footer a,
.info-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.info-page .info-home {
  flex: 1;
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  font: bold 24px/1.2 Georgia, serif;
  text-decoration: none;
}
.info-home img {
  flex: none;
  display: block;
  width: 34px;
  height: auto;
}
.info-page .info-main {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px max(24px, env(safe-area-inset-right)) 8px max(24px, env(safe-area-inset-left));
  overflow: visible;
}
.info-main h1 {
  margin: 0 0 20px;
  font: bold 34px/1.15 Georgia, serif;
  letter-spacing: normal;
}
.info-main .info-intro {
  margin: 0 0 22px;
  color: var(--muted);
}
.info-card {
  margin: 0 0 16px;
  padding: 22px;
  border: 1px solid #dedad2;
  border-radius: 10px;
  background: white;
}
.info-card h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font: bold 20px/1.3 Georgia, serif;
}
.info-card p { margin: 0; }
.info-pip {
  display: flex;
  align-items: center;
  gap: 24px;
}
.info-pip img {
  width: 100px;
  height: 100px;
  flex: none;
}
.info-card h3 {
  margin: 20px 0 10px;
  font: bold 16px/1.3 Georgia, serif;
}
.info-crew {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-crew li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-crew img {
  width: 72px;
  height: 72px;
  flex: none;
  object-fit: contain;
}
.info-page .info-footer {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}
.info-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.info-footer a[aria-current="page"] { font-weight: bold; }
.info-footer p { margin: 8px 0 0; }
.info-skip {
  position: absolute;
  top: -100px;
  left: max(16px, env(safe-area-inset-left));
  z-index: 10;
  min-height: 44px;
  padding: 12px;
  background: white;
}
.info-skip:focus { top: max(12px, env(safe-area-inset-top)); }
.info-main:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (max-width: 480px) {
  .info-page .info-header {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
  .info-page .info-home { font-size: 21px; gap: 8px; }
  .info-page .info-main,
  .info-page .info-footer {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
  .info-main h1 { font-size: 30px; }
  .info-card { padding: 18px; }
  .info-pip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .info-crew { grid-template-columns: 1fr; }
  .info-footer nav { gap: 4px 16px; }
}

/* Keep each print label with its paper and leave a small clear gap. */
.sheet-stack > .status {
  position: relative;
  margin: 0;
  padding: 0 0 12px max(0px, calc(var(--brand-width) - var(--brand-overhang) + 16px));
  background: transparent;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  text-transform: none;
}
.sheet-stack .brand { top: calc(27.4px - var(--brand-rise)); }
/* Wide, short windows need room to read, not just a width-based layout.
   Keep the drawing proportional and the paper inside its opening. */
@media (min-width: 761px) and (min-height: 521px) and (max-height: 900px) {
  .day-night-concept {
    --printer-width: min(75vw, 1108px, calc(100dvh + 180px));
    --printer-height: max(116px, calc(var(--printer-width) / 5));
    --feed-width: min(820px, calc(58vw - 12px), calc(var(--printer-width) * .76));
    --brand-width: 220px;
    --brand-rise: 108px;
    --brand-overhang: 80px;
  }
  .day-night-concept > header { min-height: 44px; }
  .day-night-concept .sheet-window {
    padding-top: calc(var(--brand-rise) - 16px);
  }
  .day-night-concept .brand { gap: 2px; }
  .day-night-concept .brand #pip { width: 64px; height: 64px; }
  .day-night-concept .brand .wordmark { font-size: 32px; }
  .day-night-concept .brand .tagline {
    font-size: 17px;
    margin-top: 2px;
    padding: 2px 8px;
  }
  .day-night-concept .sheet { padding: 36px 30px 26px; }
  .day-night-concept .paper-title { font-size: clamp(30px, 3.2vw, 40px); }
  .day-night-concept .sheet[data-page="sample"] { padding: 36px 0 24px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .sheet-window,
  .js-ready .sheet-window { padding-top: calc(var(--brand-rise) + 40px); }
  .sheet-stack > .status { padding-left: 0; }
  .sheet-stack .brand { top: calc(-1 * var(--brand-rise) - 38px); }
}

/* The approved, calm day/night sky stays behind the stationary paper. */
.day-night-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-spinner { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.sky-color-wheel { position: absolute; opacity: .82; border-radius: 50%; background: conic-gradient(from 0deg, #ffe4a3 0deg, #9caedb 90deg, #efc4ab 180deg, #bcdff1 270deg, #ffe4a3 360deg); }
.sky-center-softness { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 54%, rgb(251 248 240 / .45), transparent 65%); }
.sky-drawing { position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); opacity: 0; background: url("sky-art.png") no-repeat; background-size: 300% 200%; }
.sky-sun { --size: clamp(76px, 12vw, 154px); background-position: 0 0; opacity: .58; }
.sky-moon { --size: clamp(68px, 10vw, 128px); background-position: 100% 0; opacity: .58; }
.sky-cloud { background-position: 50% 0; opacity: .32; }
.sky-cloud-one { --size: clamp(100px, 16vw, 205px); }
.sky-cloud-two { --size: clamp(84px, 12vw, 155px); }
.sky-cloud-three { --size: clamp(84px, 12vw, 160px); opacity: .28; }
.sky-cloud-four { --size: clamp(76px, 10vw, 132px); opacity: .22; }
.sky-star { background-image: url("sky-stars.png"); background-size: 300% 100%; }
.sky-star[data-kind="0"] { background-position: 0 0; }
.sky-star[data-kind="1"] { background-position: 50% 0; }
.sky-star[data-kind="2"] { background-position: 100% 0; }
.sky-star-1 { --size: 42px; }
.sky-star-2 { --size: 28px; }
.sky-star-3 { --size: 22px; }
.sky-star-4 { --size: 24px; }
.sky-star-5 { --size: 32px; }
.sky-star-6 { --size: 38px; }
.sky-star-7 { --size: 20px; }
.sky-star-8 { --size: 34px; }
.sky-star-9 { --size: 26px; }
.sky-star-10 { --size: 22px; }
.sky-star-11 { --size: 26px; }
.sky-star-12 { --size: 17px; }
.sky-star-13 { --size: 31px; }
.sky-star-14 { --size: 24px; }
.sky-star-15 { --size: 18px; }
.sky-star-16 { --size: 36px; }
.sky-star-17 { --size: 21px; }
.day-night-concept > header { z-index: 3; }
.spinner-concept .info-nav .sign-in { color: #003f9e; }
.day-night-concept .sheet { background: white; }
@media (max-width: 760px) and (orientation: portrait) {
  .sky-sun { --size: 80px; }
  .sky-moon { --size: 72px; }
  .sky-cloud-one { --size: 108px; }
  .sky-cloud-two { --size: 88px; }
  .sky-cloud-three { --size: 94px; }
  .sky-cloud-four { --size: 76px; }
  .sky-star { width: calc(var(--size) * .85); height: calc(var(--size) * .85); }
  .sky-star-4, .sky-star-5, .sky-star-7, .sky-star-11 { display: none; }
}

.opening-pending .day-night-sky { visibility: hidden; }

/* The beta announcement is the first paper; its form stays inside the reading area. */
.beta-kicker { color: var(--blue); font-weight: 800; text-align: center; margin-bottom: 8px; }
.beta-signup { margin-top: 24px; padding: 20px; border: 2px solid var(--ink); border-radius: 5px 10px 4px 8px; background: #f3f7ff; }
#beta-form { display: grid; gap: 10px; min-width: 0; }
#beta-form > label { font-weight: 700; margin-top: 8px; }
#beta-form > input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 2px solid var(--ink); border-radius: 5px; background: white; color: var(--ink); font: inherit; font-size: 16px; }
#beta-form .beta-consent { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; font-size: 15px; font-weight: 400; line-height: 1.5; padding: 8px 0; }
.beta-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
#beta-submit { width: 100%; min-height: 44px; margin-top: 4px; background: var(--yellow); color: var(--ink); white-space: normal; }
#beta-submit:disabled { cursor: wait; }
.beta-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.beta-privacy { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.beta-result { padding: 12px; border-left: 4px solid var(--blue); background: white; }
.beta-result.beta-error { border-color: var(--ink); }
#beta-form[hidden], .beta-result[hidden] { display: none; }
@media (max-width: 760px) {
  .beta-signup { padding: 12px; }
  .sheet[data-page="beta"] .paper-title { font-size: clamp(22px, 5.4vw, 30px); }
  #beta-form .beta-consent { font-size: 14px; }
}

/* Match the BETA headline to the existing Extra! Extra! wordmark. */
.beta-title { font-family: Georgia, serif; font-weight: 900; color: #050505; letter-spacing: -2px; }
.beta-wordmark { display: inline-block; white-space: nowrap; }
.beta-stage-note { margin: 14px 0; font-size: 14px; line-height: 1.5; }
.beta-stage-note strong { color: var(--blue); }
@media (max-width: 760px) {
  .beta-title { letter-spacing: -1px; }
}

/* Shared document links and an accessible, compact phone menu. */
.day-night-concept > header.nav-open { z-index: 60; }
.info-page .info-skip { z-index: 70; }
.site-navigation[hidden] { display: none; }
.nav-toggle { display: none; }
.info-page .info-home { flex: 0 1 auto; }
.document-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 14px;
}
.document-nav a[aria-current="page"] { font-weight: bold; }
@media (max-width: 760px), (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .nav-enhanced .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 8px;
    min-width: 88px;
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid #183d62;
    border-radius: 8px 11px 7px 10px;
    background: var(--page-background);
    color: #003f9e;
    font: 700 14px/1.2 "Trebuchet MS", Arial, sans-serif;
    box-shadow: none;
    transform: none;
  }
  .nav-toggle-icon { display: grid; gap: 4px; width: 20px; }
  .nav-toggle-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] { background: var(--yellow); }
  .nav-enhanced .site-navigation {
    position: absolute;
    top: 100%;
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 14px;
    border: 2px solid #183d62;
    border-radius: 8px 12px 10px 7px;
    background: var(--page-background);
    box-shadow: 0 6px 16px #183d6220;
    z-index: 20;
  }
  .nav-enhanced .site-navigation[hidden] { display: none; }
  .nav-enhanced .site-navigation a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 4px 2px;
    font: 700 15px/1.3 Georgia, serif;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #003f9e;
    transform: none;
  }
  .nav-enhanced .info-nav-row { display: contents; }
  .nav-enhanced .info-nav-divider { display: none; }
  .info-page .info-header.nav-enhanced {
    flex-wrap: nowrap;
    gap: 10px;
    z-index: 20;
  }
  .info-header.nav-enhanced .info-home { flex: 1; }
  .info-header.nav-enhanced .info-home span { max-width: 12em; }
}


/* The explainer is part of the paper, so it travels with the text. */
.how-story,
.parents-story,
.gift-story { display: flow-root; }
.explainer-card {
  position: relative;
  z-index: 1;
  float: right;
  width: 42%;
  min-width: 255px;
  max-width: 315px;
  margin: 18px 0 16px 22px;
  padding: 8px;
  background: var(--page-background);
  border: 2px solid var(--ink);
  border-radius: 3px 8px 5px 7px;
  box-shadow: 3px 3px 0 #e6dcae;
}
.explainer-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #202023;
  border-radius: 2px;
}
.explainer-card video:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.explainer-card figcaption {
  margin-top: 7px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
}
.explainer-card figcaption span {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
}
.explainer-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid var(--blue);
  border-radius: 3px 5px 2px 4px;
  color: var(--blue);
  background: white;
  font-size: 13px;
  font-weight: bold;
  text-underline-offset: 3px;
}
.how-story .step { display: block; position: relative; padding-left: 63px; }
.how-story .step > b { position: absolute; left: 0; top: 18px; }
/* A narrow paper cannot fit readable text beside a player with usable controls. */
@media (max-width: 1000px) {
  .explainer-card { float: none; width: 100%; min-width: 0; max-width: 315px; margin: 0 auto 14px; }
  .how-story .step { padding-left: 36px; }
}

.explainer-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  inset: 0;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: #202023;
  color: white;
}
.explainer-fullscreen[open] { display: flex; flex-direction: column; gap: 12px; }
.explainer-fullscreen::backdrop { background: #202023; }
.explainer-fullscreen video { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: contain; }
.explainer-close { align-self: flex-end; flex: none; min-height: 44px; font-size: 14px; }
.explainer-close:focus-visible { outline-color: var(--yellow); }
