:root {
  --paper: #ffffff;
  --paper-light: #ffffff;
  --paper-card: #ffffff;
  --ink: #d81b60;
  --muted: #c72e64;
  --line: rgba(216, 27, 96, 0.58);
  --line-soft: rgba(216, 27, 96, 0.2);
  --tape: rgba(255, 148, 188, 0.3);
  --shadow: rgba(18, 18, 18, 0.07);
  --hero-ink: #ffffff;
  --soft-rose: #ffffff;
  --max: 1220px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

body::before {
  content: none;
}

body.is-locked {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(var(--max), calc(100% - 20px));
  margin: 18px auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 0 20px 70px var(--shadow);
  transition: filter 520ms ease, opacity 520ms ease, transform 520ms ease;
}

body.is-locked .page-shell {
  filter: grayscale(1) blur(3px) brightness(0.76);
  pointer-events: none;
  user-select: none;
}

body.is-locked .section-reveal {
  opacity: 1;
  transform: none;
}

body:not(.is-locked) .page-shell {
  animation: unlockPage 620ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
  padding: 10px clamp(18px, 5vw, 58px);
  background: #ffffff;
  backdrop-filter: blur(16px);
}

.logo {
  display: block;
  width: fit-content;
}

.logo img {
  width: clamp(92px, 8vw, 124px);
  height: auto;
}

.nav-toggle {
  position: relative;
  z-index: 80;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-content: center;
  justify-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav-toggle span + span {
  margin-top: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  outline: none;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(42deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-42deg);
}

.logo span,
.main-nav,
.eyebrow,
.since,
.side-label,
.tag,
.chapter-number,
.chapter-card a,
.chapter-card button,
.archive-grid figcaption,
.site-footer,
.access-head,
.back-to-top {
  font-family: "Courier New", Courier, monospace;
}

.logo span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 4.8vw, 72px);
  font-size: 0.78rem;
  font-weight: 700;
}

.main-nav a {
  border-bottom: 1px solid transparent;
  padding: 5px 0;
  transition: border-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.chapter-card a:hover,
.chapter-card a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: currentColor;
  outline: none;
}

.main-nav a.is-active {
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-items: center;
  min-height: clamp(540px, 64vh, 720px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 8vw, 96px) clamp(22px, 7vw, 86px);
  color: var(--hero-ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.44);
  content: "";
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-width: 0;
  padding: 0;
}

.vertical-caption,
.side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.vertical-caption {
  position: absolute;
  top: 128px;
  left: 0;
  z-index: 3;
  display: inline-block;
  border-radius: 2px;
  padding: 12px 6px;
  background: var(--paper-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-style: italic;
}

.taped,
.polaroid,
.floating-photo,
.notebook-note,
.photo-stack img,
.archive-grid figure {
  position: relative;
  box-shadow: 0 12px 28px var(--shadow);
}

.taped::before,
.polaroid::before,
.floating-photo::before,
.notebook-note::before,
.photo-stack::before,
.archive-grid figure::before,
.access-note::before {
  position: absolute;
  z-index: 2;
  height: 22px;
  background: var(--tape);
  content: "";
  mix-blend-mode: multiply;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero-photo::before {
  display: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding-right: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.eyebrow,
.since {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1,
.archives h2,
.chapter-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(3.25rem, 7.6vw, 5.8rem);
  line-height: 0.94;
}

.scribble-line {
  display: block;
  width: min(310px, 82%);
  height: 18px;
  border-top: 2px solid var(--hero-ink);
  transform: rotate(-2deg);
}

.hero-copy p {
  max-width: 420px;
  color: var(--hero-ink);
  font-size: 1.02rem;
  line-height: 1.56;
}

.since {
  display: inline-block;
  margin-top: 18px;
}

.memory-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(250px, 0.8fr) minmax(170px, 250px);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px clamp(22px, 6vw, 74px);
}

.side-label {
  position: absolute;
  left: clamp(8px, 2vw, 28px);
  top: 34px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.polaroid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-left: 26px;
}

.polaroid {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 10px 10px 16px;
  background: var(--paper-card);
}

.polaroid::before {
  top: -10px;
  left: 28px;
  width: 76px;
  transform: rotate(-2deg);
}

.polaroid:nth-child(2) {
  transform: rotate(1deg);
}

.polaroid:nth-child(3) {
  transform: rotate(-1.2deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) sepia(0.06);
}

.polaroid figcaption,
.sticky-note p,
.contact-photo figcaption {
  font-family: "Comic Sans MS", "Courier New", cursive;
}

.polaroid figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(0.86rem, 2vw, 1.08rem);
  line-height: 1.2;
}

.memory-text {
  display: grid;
  gap: 14px;
}

.memory-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.memory-text h2::after,
.chapter-card h2::after {
  display: block;
  width: 38px;
  height: 1px;
  margin-top: 10px;
  background: var(--ink);
  content: "";
}

.memory-text p {
  max-width: 350px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.memory-text a {
  width: fit-content;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.memory-text a:hover,
.memory-text a:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
}

.sticky-note {
  justify-self: center;
  max-width: 220px;
  min-height: 190px;
  border-radius: 2px;
  padding: 34px 22px 18px;
  background: var(--paper-card);
  box-shadow: 0 12px 22px var(--shadow);
  text-align: center;
  transform: rotate(-4deg);
}

.sticky-note::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 82px;
  height: 24px;
  background: var(--tape);
  content: "";
  transform: translateX(-50%) rotate(2deg);
}

.sticky-note p {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.sticky-note span {
  display: inline-block;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.chapter-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.72);
}

.chapter-card:nth-child(2n),
.chapter-card:nth-child(3n),
.contact-card {
  border-right: 0;
}

.slow-card {
  grid-column: span 2;
}

.chapter-number {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.chapter-card h2 {
  max-width: 340px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.tag {
  display: inline-block;
  margin: 26px 0 18px;
  border: 1px solid var(--line-soft);
  padding: 6px 12px;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-card p,
.chapter-card li {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.52;
}

.chapter-card p {
  max-width: 300px;
}

.chapter-card a,
.chapter-card button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  margin-top: 26px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.list-card ul,
.actions-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-card li::before {
  content: "×";
  margin-right: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}

.check-list li::before {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  content: "";
  transform: translateY(4px);
}

.floating-photo {
  position: absolute;
  width: 180px;
  border: 1px solid var(--line-soft);
  padding: 8px;
  background: var(--paper-card);
}

.floating-photo::before {
  top: -9px;
  left: 34px;
  width: 70px;
  height: 18px;
}

.floating-photo img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.story-card {
  overflow: visible;
}

.story-card-photos {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  align-items: flex-start;
  margin-top: 30px;
  padding-right: 10px;
}

.story-card-photos .floating-photo {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: min(190px, 48%);
}

.story-card-photos .small-left {
  transform: rotate(-4deg);
}

.story-card-photos .small-right {
  transform: rotate(5deg) translateY(16px);
}

.small-left {
  bottom: 18px;
  left: 32px;
  transform: rotate(-5deg);
}

.small-right {
  right: 26px;
  bottom: 74px;
  transform: rotate(6deg);
}

.photo-stack {
  position: absolute;
  right: 28px;
  bottom: 32px;
  display: grid;
  gap: 8px;
  width: 150px;
  transform: rotate(6deg);
}

.photo-stack::before {
  top: -12px;
  left: 40px;
  width: 86px;
}

.photo-stack img {
  border: 1px solid var(--line-soft);
  padding: 7px;
  background: var(--paper-card);
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.notebook-note {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 280px;
  border: 1px solid var(--line-soft);
  padding: 10px;
  background: var(--paper-card);
  transform: rotate(-3deg);
}

.notebook-note::before {
  top: -11px;
  left: 90px;
  width: 88px;
}

.notebook-note img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

#paceFeedback {
  display: block;
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.inline-feedback {
  display: block;
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-card {
  min-height: 410px;
}

.contact-photo {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: min(230px, 42%);
  transform: rotate(7deg);
}

.contact-photo img {
  aspect-ratio: 1 / 0.88;
}

.archives {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: clamp(24px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  padding: 38px clamp(22px, 6vw, 74px) 46px;
}

.archives-head {
  display: grid;
  align-content: start;
  gap: 16px;
}

.archives h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
}

.archives-head p:last-child {
  color: var(--muted);
  line-height: 1.52;
}

.memory-carousel {
  position: relative;
  min-width: 0;
  padding: clamp(12px, 3vw, 28px) clamp(8px, 4vw, 44px) 0;
}

.carousel-viewport {
  position: relative;
  min-height: clamp(500px, 58vw, 690px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.carousel-viewport:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.memory-carousel .archive-grid {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  perspective: 1200px;
}

.memory-carousel .archive-grid figure {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(240px, 28vw, 390px);
  max-width: calc(100% - 42px);
  border: 1px solid var(--line-soft);
  padding: clamp(8px, 1.1vw, 12px);
  background: var(--paper-card);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.58);
  transition: opacity 260ms ease, transform 360ms ease, filter 260ms ease;
  will-change: transform, opacity;
}

.memory-carousel .archive-grid figure::before {
  top: -10px;
  left: 50%;
  width: 76px;
  height: 18px;
  opacity: 0.82;
  transform: translateX(-50%) rotate(-2deg);
}

.memory-carousel .archive-grid figure.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(0.6deg) scale(1.16);
}

.memory-carousel .archive-grid figure.is-prev {
  z-index: 2;
  opacity: 0.62;
  pointer-events: auto;
  transform: translate(calc(-50% - clamp(190px, 28vw, 360px)), -50%) rotate(-4deg) scale(0.78);
}

.memory-carousel .archive-grid figure.is-next {
  z-index: 2;
  opacity: 0.62;
  pointer-events: auto;
  transform: translate(calc(-50% + clamp(190px, 28vw, 360px)), -50%) rotate(4deg) scale(0.78);
}

.memory-carousel .archive-grid figure.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.52);
}

.memory-carousel .archive-grid figure:hover img {
  filter: grayscale(0.16) contrast(1.02);
}

.memory-carousel .archive-grid img {
  width: 100%;
  max-height: min(62vh, 560px);
  aspect-ratio: 3 / 4;
  background: var(--paper-card);
  object-fit: contain;
  filter: grayscale(1) contrast(1.08) sepia(0.06);
  transition: filter 180ms ease;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-card);
  color: var(--ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--ink);
  color: var(--paper-card);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.carousel-button-prev {
  left: clamp(8px, 2vw, 22px);
}

.carousel-button-next {
  right: clamp(8px, 2vw, 22px);
}

.carousel-counter {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.quote-section {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 120px;
  border-bottom: 2px solid var(--ink);
  padding: 30px 20px;
  text-align: center;
}

.quote-section p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.quote-section span {
  color: var(--muted);
  font-size: 0.9rem;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 32px clamp(22px, 6vw, 74px);
}

.subpage-photo {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--paper-card);
}

.subpage-photo::before {
  top: -10px;
  left: 42px;
  width: 138px;
  transform: rotate(-2deg);
}

.subpage-photo img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) sepia(0.06);
}

.subpage-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.subpage-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.contract-hero-title {
  max-width: 560px;
}

.subpage-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.6;
}

.story-layout,
.action-board,
.quiet-page,
.contact-page {
  display: grid;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 34px clamp(22px, 6vw, 74px);
}

.story-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-page {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.58fr);
  align-items: start;
  gap: clamp(24px, 4.8vw, 54px);
}

.paper-panel,
.action-note,
.message-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.paper-panel h2,
.action-note h2,
.message-card h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: uppercase;
}

.paper-panel p,
.action-note p,
.message-card p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.58;
}

.story-letter {
  padding: clamp(28px, 5vw, 54px);
}

.story-letter h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.story-letter p {
  max-width: 740px;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
}

.story-letter p + p {
  margin-top: 18px;
}

.letter-signature {
  margin-top: 30px !important;
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  text-align: right;
}

.story-scrapbook {
  display: grid;
  gap: 22px;
}

.scrap-photo,
.song-card {
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--paper-card);
  box-shadow: 0 12px 28px var(--shadow);
}

.scrap-photo {
  padding: 10px 10px 18px;
  transform: rotate(2deg);
}

.scrap-photo.small {
  width: min(270px, 100%);
  justify-self: end;
  transform: rotate(-3deg);
}

.scrap-photo::before {
  top: -9px;
  left: 38px;
  width: 92px;
  height: 19px;
  transform: rotate(-2deg);
}

.scrap-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) sepia(0.04);
}

.scrap-photo figcaption {
  margin-top: 10px;
  font-family: "Comic Sans MS", "Courier New", cursive;
  font-size: 1.02rem;
}

.song-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.song-card .tag {
  margin: 0;
  width: fit-content;
}

.song-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
}

.song-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.wide-memory {
  grid-column: 1 / -1;
  width: min(620px, 100%);
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper-card);
  transform: rotate(-1deg);
}

.wide-memory::before {
  top: -10px;
  left: 42px;
  width: 120px;
  transform: rotate(2deg);
}

.wide-memory img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.page-archives {
  border-top: 0;
}

.action-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-note {
  display: grid;
  align-content: start;
  gap: 14px;
}

.action-note span {
  display: inline-block;
  width: fit-content;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.action-note .explanation-toggle {
  width: fit-content;
}

.action-note .explanation-card {
  margin-top: 2px;
}

.action-final {
  grid-column: 1 / -1;
  width: min(820px, 100%);
  justify-self: center;
}

.action-final span {
  margin-bottom: 18px;
}

.action-final h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.quiet-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contract-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 34px clamp(22px, 6vw, 74px);
}

.contract-paper {
  position: relative;
  width: min(920px, 100%);
  justify-self: center;
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 58px);
  background: var(--paper-card);
  box-shadow: 0 16px 36px var(--shadow);
}

.contract-paper::before {
  position: absolute;
  top: -10px;
  left: clamp(46px, 12vw, 160px);
  z-index: 2;
  width: 132px;
  height: 24px;
  background: var(--tape);
  content: "";
  mix-blend-mode: multiply;
  transform: rotate(-2deg);
}

.contract-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-paper h1 {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  hyphens: none;
  overflow-wrap: normal;
  text-transform: none;
  word-break: normal;
}

.contract-paper h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.contract-paper h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.08;
}

.contract-intro,
.contract-letter,
.contract-section,
.explanation-card,
.contract-form {
  color: var(--ink);
  line-height: 1.58;
}

.contract-position {
  margin-top: 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.45;
  text-transform: uppercase;
}

.contract-intro {
  max-width: 720px;
  margin-top: 30px;
  font-size: 1.02rem;
  font-weight: 700;
}

.contract-letter,
.contract-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contract-divider {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}

.contract-measures {
  display: grid;
  gap: 14px;
}

.contract-measures h2,
.contract-section h2 {
  margin-bottom: 8px;
}

.contract-measure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: start;
  border: 1px solid var(--line-soft);
  padding: 16px;
  background: var(--paper-card);
}

.explanation-toggle {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.explanation-toggle:hover,
.explanation-toggle:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  outline: none;
}

.explanation-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-left: 3px solid var(--ink);
  padding: 14px 16px;
  background: var(--soft-rose);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.explanation-card[hidden] {
  display: none;
}

.contract-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.contract-signoff {
  margin-top: 12px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

.contract-question {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-form {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.contract-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  padding: 18px;
}

.contract-form legend,
.contract-message-field label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 1rem;
}

.contract-option input {
  margin-top: 4px;
  accent-color: var(--ink);
}

.contract-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contract-message-field {
  display: grid;
  gap: 9px;
}

.contract-fullname-field {
  max-width: 520px;
}

.contract-message-field input,
.contract-message-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  background: var(--paper-card);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.contract-message-field textarea {
  min-height: 128px;
  resize: vertical;
}

.contract-signature-field {
  display: grid;
  gap: 10px;
}

.contract-signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contract-signature-head label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-signature-head button {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-signature-head button:hover,
.contract-signature-head button:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  outline: none;
}

.signature-pad {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  background:
    linear-gradient(transparent 74%, rgba(217, 70, 134, 0.24) 75%, transparent 76%),
    var(--paper-card);
  cursor: crosshair;
  touch-action: none;
}

.signature-pad:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.signature-hint {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
}

.contract-message-field input:focus,
.contract-message-field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.contract-form > button {
  width: fit-content;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-light);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: none;
}

.contract-form > button:hover,
.contract-form > button:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
}

.quiet-page button,
.message-card button {
  width: fit-content;
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper-light);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiet-page button:hover,
.quiet-page button:focus-visible,
.message-card button:hover,
.message-card button:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
}

.contact-page {
  grid-template-columns: minmax(280px, 0.86fr) minmax(240px, 0.54fr);
  align-items: start;
}

.contact-page-photo {
  justify-self: center;
  width: min(320px, 100%);
  transform: rotate(3deg);
}

.contact-page-photo img {
  aspect-ratio: 1 / 0.88;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 58px);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-footer p:nth-child(2) {
  justify-self: center;
}

.site-footer a {
  justify-self: end;
  border-bottom: 1px solid transparent;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  outline: none;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: clamp(12px, 4vw, 34px);
  background: rgba(163, 77, 103, 0.18);
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.gate-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.access-note {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  border: 2px solid var(--ink);
  padding: clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: noteIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.access-note::before {
  top: -12px;
  left: 42px;
  width: 130px;
  transform: rotate(-2deg);
}

.access-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-note h2 {
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

#gateHint {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.access-note label {
  display: block;
  margin-top: 22px;
  font-weight: 800;
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.gate-actions input {
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 13px 14px;
  background: var(--paper-light);
  color: var(--ink);
}

.gate-actions input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gate-actions button {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 13px 16px;
  background: var(--ink);
  color: var(--paper-light);
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.gate-actions button:hover,
.gate-actions button:focus-visible {
  background: var(--paper-light);
  color: var(--ink);
  outline: none;
}

#gateFeedback {
  min-height: 1.45em;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
}

.unlock-tip {
  position: fixed;
  top: 132px;
  right: 14px;
  z-index: 85;
  width: min(304px, calc(100vw - 28px));
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 18, 18, 0.12);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.42;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.unlock-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-shaking {
  animation: noteIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both, shake 360ms ease;
}

.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes noteIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes unlockPage {
  from {
    opacity: 0.74;
  }

  to {
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  50% {
    transform: translateX(7px);
  }

  75% {
    transform: translateX(-4px);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .memory-band,
  .archives,
  .subpage-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage-hero > * {
    min-width: 0;
  }

  .sticky-note {
    justify-self: start;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .chapter-card:nth-child(2n),
  .contact-card {
    border-right: 0;
  }

  .slow-card {
    grid-column: span 1;
  }

  .archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-layout,
  .story-page,
  .action-board,
  .contract-page,
  .quiet-page,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .story-scrapbook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .scrap-photo.small {
    width: auto;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }

  .page-shell {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    margin-block: 8px;
    border-radius: 6px;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    justify-items: center;
    padding: 14px 14px 16px;
    text-align: center;
    backdrop-filter: none;
  }

  .logo {
    grid-column: 2;
    justify-self: center;
  }

  .logo img {
    width: 104px;
  }

  .nav-toggle {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 90;
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: stretch;
    width: min(78vw, 310px);
    max-width: calc(100vw - 24px);
    height: 100vh;
    height: 100svh;
    gap: 0;
    border-left: 1px solid var(--line);
    padding: 94px 24px 28px;
    background: #ffffff;
    box-shadow: -18px 0 44px rgba(18, 18, 18, 0.08);
    font-size: 0.8rem;
    overflow-y: auto;
    text-align: left;
    visibility: hidden;
  }

  body.nav-open .main-nav {
    display: grid;
    visibility: visible;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }

  .hero {
    min-height: clamp(520px, 76vh, 660px);
    place-items: end center;
    padding: 64px 20px 54px;
  }

  .hero-photo-wrap {
    padding-left: 0;
  }

  .vertical-caption,
  .side-label {
    display: none;
  }

  .hero-copy {
    padding-right: 0;
    justify-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.35rem);
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .scribble-line,
  .since {
    margin-inline: auto;
  }

  .memory-band {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    padding: 30px 20px 34px;
    text-align: center;
  }

  .memory-text {
    justify-items: center;
    max-width: 34rem;
  }

  .memory-text h2::after {
    margin-right: auto;
    margin-left: auto;
  }

  .memory-text p {
    max-width: 31rem;
  }

  .memory-text a {
    margin-inline: auto;
  }

  .polaroid-row {
    grid-template-columns: 1fr;
    justify-self: center;
    width: min(360px, 100%);
    max-width: 360px;
    padding-left: 0;
  }

  .polaroid {
    padding-bottom: 10px;
  }

  .sticky-note {
    justify-self: center;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card,
  .chapter-card:nth-child(3n),
  .chapter-card:nth-child(2n) {
    display: grid;
    justify-items: center;
    min-height: auto;
    border-right: 0;
    padding: 32px 22px 36px;
    text-align: center;
  }

  .chapter-card h2::after {
    margin-right: auto;
    margin-left: auto;
  }

  .chapter-card p,
  .chapter-card ul {
    max-width: 330px;
  }

  .list-card ul,
  .actions-card ul,
  .check-list {
    text-align: left;
  }

  .floating-photo,
  .photo-stack,
  .notebook-note,
  .contact-photo {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(240px, 80%);
    margin-top: 22px;
    transform: rotate(-2deg);
  }

  .story-card-photos {
    justify-content: center;
    width: 100%;
    padding-right: 0;
  }

  .small-right {
    display: none;
  }

  .archives {
    padding: 28px 16px 36px;
  }

  .subpage-hero,
  .story-layout,
  .story-page,
  .action-board,
  .contract-page,
  .quiet-page,
  .contact-page {
    padding: 24px 16px;
  }

  .contract-paper {
    width: 100%;
    max-width: 100%;
    justify-self: center;
    padding: 26px 18px;
    overflow: hidden;
    overflow-wrap: break-word;
  }

  .contract-paper h1 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .contract-paper h2 {
    font-size: clamp(1.6rem, 8vw, 2.35rem);
  }

  .contract-intro,
  .contract-letter,
  .contract-section,
  .contract-measure,
  .explanation-card,
  .contract-form {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .contract-head {
    display: grid;
  }

  .contract-measure {
    grid-template-columns: 1fr;
  }

  .explanation-toggle {
    width: fit-content;
  }

  .contract-form > button {
    width: 100%;
    justify-content: center;
  }

  .action-note .explanation-toggle {
    justify-self: center;
  }

  .subpage-hero {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .subpage-copy {
    margin-top: 24px;
    justify-items: center;
    padding-right: 0;
  }

  .story-scrapbook {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .story-letter {
    justify-self: stretch;
    padding: 28px 20px;
  }

  .subpage-photo,
  .subpage-copy,
  .story-letter {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .subpage-copy p:not(.eyebrow),
  .story-letter p {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .scrap-photo,
  .scrap-photo.small {
    width: min(340px, 100%);
    justify-self: center;
  }

  .song-card {
    width: min(340px, 100%);
    justify-items: center;
    text-align: center;
  }

  .story-letter h2,
  .letter-signature {
    text-align: center;
  }

  .subpage-copy h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .contract-hero-title {
    font-size: clamp(2.7rem, 11.5vw, 3.7rem) !important;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .memory-carousel {
    padding: 8px 0 0;
  }

  .carousel-viewport {
    min-height: 460px;
  }

  .memory-carousel .archive-grid figure {
    width: min(72vw, 260px);
    max-width: calc(100vw - 94px);
  }

  .memory-carousel .archive-grid figure.is-active {
    transform: translate(-50%, -50%) rotate(0.4deg) scale(1.02);
  }

  .memory-carousel .archive-grid figure.is-prev {
    opacity: 0.36;
    transform: translate(calc(-50% - 52vw), -50%) rotate(-4deg) scale(0.68);
  }

  .memory-carousel .archive-grid figure.is-next {
    opacity: 0.36;
    transform: translate(calc(-50% + 52vw), -50%) rotate(4deg) scale(0.68);
  }

  .memory-carousel .archive-grid img {
    max-height: 390px;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer p:nth-child(2),
  .site-footer a {
    justify-self: center;
  }

  .access-note {
    position: fixed;
    right: auto;
    bottom: 10px;
    left: 10px;
    width: min(360px, calc(100vw - 20px)) !important;
    max-width: min(360px, calc(100vw - 20px)) !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 18px 22px 24px;
  }

  .access-head strong {
    display: none;
  }

  .access-note h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .gate-actions {
    grid-template-columns: 1fr;
  }

  .gate-actions button {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 96px;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    width: 100%;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 2.72rem;
  }

  .contract-hero-title {
    font-size: 2.9rem !important;
  }

  .chapter-card h2 {
    font-size: 1.66rem;
  }

  .access-note {
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* Correctif mobile : la zone de signature doit rester visible et facile à utiliser. */
.contract-signature-field,
.contract-signature-field * {
  min-width: 0;
}

.signature-pad {
  display: block;
  max-width: 100%;
  min-height: 190px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(transparent 72%, rgba(216, 27, 96, 0.22) 73%, transparent 74%),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.14);
}

@media (max-width: 760px) {
  .contract-paper {
    overflow: visible;
  }

  .contract-form {
    gap: 22px;
  }

  .contract-signature-field {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line-soft);
    background: #fff;
  }

  .contract-signature-head {
    align-items: flex-start;
  }

  .signature-pad {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px;
  }

  .signature-hint {
    text-align: center;
  }
}
