:root {
  --blue: #0058e0;
  --pink: #f17986;
  --ink: #202023;
  --paper: #fff;
  --muted: #626269;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: white;
  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(--pink);
  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(-2deg);
  white-space: nowrap;
}
.wordmark em,
.wordmark span {
  color: var(--pink);
  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, #f1798699 0 2px, #f1798640 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(--pink);
  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: 1fr 1fr;
  gap: 22px;
}
.plan {
  border: 2px solid var(--ink);
  padding: 23px;
  border-radius: 3px 10px 4px 7px;
}
.plan:first-child {
  background: #eef5ff;
}
.plan:last-child {
  background: #fff2f2;
}
.price {
  font:
    900 44px Georgia,
    serif;
  margin: 20px 0 12px;
}
.price small {
  font:
    14px "Trebuchet MS",
    sans-serif;
}
.plan ul {
  padding-left: 19px;
  font-size: 15px;
  min-height: 135px;
}
.plan button {
  width: 100%;
  font-size: 14px;
}
.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);
}
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;
  }
  .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 newspaper 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: white;
  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 {
  display: none;
}
.opening[hidden] {
  display: none;
}
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  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(--paper);
}
.opening-video {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  object-fit: contain;
}
.opening-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}
.opening-controls button,
.opening-remember {
  min-height: 44px;
}
.opening-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.opening-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
.opening-note {
  flex: none;
  margin: 0;
  font-size: 14px;
  text-align: center;
}
