/*
 * Measurements follow the Figma file "Vape-Free Kids - Website": frame "Desktop - 7" (1440px wide)
 * and, below 52rem, frame "iPhone 16 - 1" (393px wide).
 * Fonts: Die Grotesk from Klim Type Foundry, web licence for vapefreekidsnz.org
 * (10,000 monthly unique users, order 26101145). D Bold for headings and buttons,
 * B Regular for body text and B Bold for bold body text, as in the updated Figma.
 */

@font-face {
  font-family: "Die Grotesk D";
  src: url("/assets/fonts/die-grotesk-d-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Die Grotesk B";
  src: url("/assets/fonts/die-grotesk-b-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Die Grotesk B";
  src: url("/assets/fonts/die-grotesk-b-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --page: #f5f2f2;
  --pink: #f082b3;
  --green: #acc912;
  --blue: #38b6e6;
  --error: #b00020;
  --success: #1b6e2d;
  --gutter: clamp(1.25rem, 5.5vw, 5rem); /* 20px on mobile, 80px at 1440 */
  --max: 90rem; /* 1440 */
  --font-display: "Die Grotesk D", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: var(--font-display);
  --font-body: "Die Grotesk B", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-body: 1.25rem; /* 20px on desktop and mobile */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  /* macOS draws text heavier than Figma by default; greyscale anti-aliasing matches Figma's rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.4;
  color: var(--ink);
  background: var(--page);
}

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

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.875rem, 2.85vw, 2.5625rem); /* 41px */
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons: 15px/20px padding, 2px border, Die Grotesk C Bold 16px */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.125rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: #333;
  border-color: #333;
}

.button--outline {
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* White buttons on the black menu */
.button--inverse {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button--inverse:hover {
  border-color: #ddd;
  background: #ddd;
}

.button--inverse-outline {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.button--inverse-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.link-button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Header */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max); /* same edges as the page text, at Becca's request (Figma insets the header 17px further) */
  min-height: 6.5rem; /* 104 */
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.site-header .logo img {
  width: clamp(7.5rem, 11.2vw, 10.0625rem); /* 161px */
}

.site-header__actions {
  display: flex;
  gap: 1.25rem;
}

.menu-button {
  display: none;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Split sections (contact): 720 / 720 at 1440 */

.split {
  display: grid;
}

.split__content {
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter);
}

.split__media {
  min-height: 24rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact's content is in the right-hand column, so its outer edge lines up with the page container */
  .split__content {
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}

.photo {
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}

/*
 * Kid photos: Becca's Figma exports, resized but not cropped, centred in each frame.
 * Desktop uses *-desktop.jpg (1560px tall, 2x the 775px hero); mobile uses the 1000px-tall versions.
 * The green boy is contact*.jpg, shared by the hero loop and Get in Touch.
 */
.photo--hero {
  background-color: #c44b57;
  background-image: url("/assets/img/hero-desktop.jpg");
}

/* Hero loop slides 2 and 3: main.js adds .is-loaded after the page loads, which fetches their images. */
.photo--hero-green {
  background-color: #6e8900;
}

.photo--hero-green.is-loaded {
  background-image: url("/assets/img/contact-desktop.jpg");
}

.photo--hero-blue {
  background-color: #7fb2c9;
}

.photo--hero-blue.is-loaded {
  background-image: url("/assets/img/hero-blue-desktop.jpg");
}

.photo--boxes {
  background-color: #d9d9d9;
  background-image: url("/assets/img/boxes.jpg");
}

.photo--contact {
  background-color: #6e8900;
  background-image: url("/assets/img/contact-desktop.jpg");
}

/*
 * Hero and letter: 720 / 720 at 1440. The hero text and the letter stack in the left column;
 * the hero photo fills the right column and stays in view (sticky) while the letter scrolls past.
 */

.intro {
  display: grid;
}

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
  }

  .hero,
  .letter-section {
    grid-column: 1;
  }

  .intro .hero__media {
    position: sticky;
    top: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    height: min(48.4375rem, 100vh); /* 775 (taller than the 620px pink panel), or the whole window if it's shorter */
  }

  /* Line the left column's text up with the page container on screens wider than 1440 */
  /* .intro raises the specificity over the base padding rules further down */
  .intro .hero__content,
  .intro .letter {
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}

/* Hero: 620px tall, pink #f082b3, 515px text column */

.hero__content {
  height: 100%;
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4375rem; /* 23 */
  background: var(--hero-colour, var(--pink));
  transition: background-color 1.5s ease;
}

.hero__media {
  position: relative;
  overflow: hidden;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.5s ease;
}

/* Pause/play for the hero loop (WCAG 2.2.2) */
.hero__pause {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--paper);
  cursor: pointer;
}

.hero__pause[hidden] {
  display: none;
}

.hero__pause:hover {
  background: rgba(0, 0, 0, 0.85);
}

.hero__pause:focus-visible {
  outline-color: var(--paper);
  outline-offset: 2px;
}

.hero__pause svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.hero__pause .hero__play-icon,
.hero__pause.is-paused .hero__pause-icon {
  display: none;
}

.hero__pause.is-paused .hero__play-icon {
  display: block;
}

.hero__slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__slide {
    transition: none;
  }
}

.hero__title {
  max-width: 32rem; /* 515 */
  font-size: clamp(2.5rem, 4.5vw, 4.0625rem); /* 65px */
  letter-spacing: 0.03em;
}

.hero__lede {
  max-width: 32rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.45vw, 2.1875rem); /* 35px */
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero__sub {
  max-width: 32rem;
}

@media (min-width: 52rem) {
  .hero {
    min-height: 38.75rem; /* 620 */
  }
}

/* Letter: white, one column with the recipients above the letter, 80px padding */

.letter-section {
  background: var(--paper);
}

.letter {
  display: flex;
  flex-direction: column;
  gap: 1.4375rem; /* 23 */
  padding: var(--gutter);
}

.letter__text p {
  margin-bottom: 1.4em; /* one blank line */
}

.letter__text p:last-child {
  margin-bottom: 0;
}

.letter__recipients {
  display: flex;
  flex-direction: column;
  gap: 1.4375rem;
  padding: 1.4375rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 1rem;
}

.letter__names {
  max-width: 22.5rem; /* wraps as in Figma */
  font-weight: 700;
}

/* Sign: boxes photo background, 845px white card with a black border */

.sign {
  padding: 4rem var(--gutter); /* 64 */
}

.card {
  max-width: 52.8125rem; /* 845 */
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 1.875rem); /* 30 */
  border: 2px solid var(--ink);
  background: var(--paper);
}

.card__title {
  margin-bottom: 1.4375rem;
  font-size: clamp(1.75rem, 2.45vw, 2.1875rem); /* 35px */
  text-align: center;
}

/* Forms: underlined fields, 15px vertical padding, label sits in the field until filled */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.4375rem;
}

.contact .form {
  gap: 1.25rem;
}

.field {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--ink);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 1.375rem 0 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  resize: vertical;
}

.field textarea {
  min-height: 8.625rem; /* Message box in the design is 6 lines tall */
}

.field input:focus,
.field textarea:focus {
  outline: none;
}

.field:focus-within {
  box-shadow: 0 1px 0 0 var(--ink);
}

.field__label {
  position: absolute;
  left: 0;
  top: 0.9375rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s ease;
}

/* is-filled is set by main.js because autofill doesn't reliably update :placeholder-shown */
.field:focus-within .field__label,
.field.is-filled .field__label,
.field input:not(:placeholder-shown) + .field__label,
.field textarea:not(:placeholder-shown) + .field__label {
  transform: translateY(-0.6rem) scale(0.65);
}

/* Kept separate: a browser that doesn't know one of these selectors drops the whole rule */
.field input:autofill + .field__label {
  transform: translateY(-0.6rem) scale(0.65);
}

.field input:-webkit-autofill + .field__label {
  transform: translateY(-0.6rem) scale(0.65);
}

/* Stop Chrome/Safari painting a yellow or blue autofill background over the underlined field */
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--field-bg, var(--page)) inset;
  -webkit-text-fill-color: var(--ink);
}

.card .field {
  --field-bg: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .field__label {
    transition: none;
  }
}

.field.is-invalid {
  border-bottom-color: var(--error);
}

.field.is-invalid .field__label {
  color: var(--error);
}

.form__consent {
  max-width: 31rem; /* wraps as in Figma */
  font-size: 1rem;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.form__footer--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.form__status:empty {
  display: none;
}

.form__status {
  font-size: 1rem;
  font-weight: 700;
}

.form__status.is-error {
  color: var(--error);
}

.form__status.is-success {
  color: var(--success);
}

/* Signatures: white, 64px vertical padding, 4 columns with 125px gutters */

.signatures-section {
  background: var(--paper);
}

.signatures {
  display: flex;
  flex-direction: column;
  gap: 2.4375rem; /* 39 */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.signatures__header {
  padding-bottom: 1.8125rem; /* 29 */
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.signatures__count {
  font-size: clamp(2.75rem, 4.5vw, 4.0625rem); /* 65px */
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.signatures__label {
  font-size: clamp(1.25rem, 1.95vw, 1.75rem); /* 28px */
  letter-spacing: 0.02em;
}

/*
 * Each row of names is one colour, cycling blue, green, pink as in Figma. The nth-child rules need
 * to know how many names are in a row, so each breakpoint sets a fixed number of columns.
 */
.signatures__list {
  --columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 1.1875rem clamp(1.5rem, 8.7vw, 7.8125rem); /* 19 / 125 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.signatures__list li {
  overflow-wrap: anywhere;
  color: var(--blue);
}

/* One column: blue, green, pink */
.signatures__list li:nth-child(3n + 2) {
  color: var(--green);
}

.signatures__list li:nth-child(3n + 3) {
  color: var(--pink);
}

.signatures__more {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signatures__more[hidden] {
  display: none;
}

/* Two columns: rows repeat every 6 names */
@media (min-width: 40rem) {
  .signatures__list {
    --columns: 2;
  }

  .signatures__list li:nth-child(6n + 1),
  .signatures__list li:nth-child(6n + 2) {
    color: var(--blue);
  }

  .signatures__list li:nth-child(6n + 3),
  .signatures__list li:nth-child(6n + 4) {
    color: var(--green);
  }

  .signatures__list li:nth-child(6n + 5),
  .signatures__list li:nth-child(6n + 6) {
    color: var(--pink);
  }
}

/* Four columns: rows repeat every 12 names */
@media (min-width: 64rem) {
  .signatures__list {
    --columns: 4;
  }

  .signatures__list li:nth-child(12n + 1),
  .signatures__list li:nth-child(12n + 2),
  .signatures__list li:nth-child(12n + 3),
  .signatures__list li:nth-child(12n + 4) {
    color: var(--blue);
  }

  .signatures__list li:nth-child(12n + 5),
  .signatures__list li:nth-child(12n + 6),
  .signatures__list li:nth-child(12n + 7),
  .signatures__list li:nth-child(12n + 8) {
    color: var(--green);
  }

  .signatures__list li:nth-child(12n + 9),
  .signatures__list li:nth-child(12n + 10),
  .signatures__list li:nth-child(12n + 11),
  .signatures__list li:nth-child(12n + 12) {
    color: var(--pink);
  }
}

/* Videos: blue, two 16:9 videos side by side with captions */

.videos {
  background: var(--blue);
}

.videos__inner {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 9.7vw, 8.75rem); /* 140 */
  padding-top: clamp(4rem, 10vw, 9rem); /* 144 */
  padding-bottom: clamp(4rem, 10vw, 9rem);
}

@media (min-width: 52rem) {
  .videos__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(71.25rem + 2 * var(--gutter)); /* two 500px videos and the gap */
  }
}

.video {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video__frame iframe,
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__play {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--ink) center / cover no-repeat;
  cursor: pointer;
}

.video__play::after {
  content: "";
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 2rem no-repeat;
  transition: background-color 0.15s ease;
}

.video__play:hover::after {
  background-color: rgba(0, 0, 0, 0.9);
}

.video__play:focus-visible {
  outline-color: var(--paper);
  outline-offset: -6px;
}

.video__caption {
  font-family: var(--font-display);
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

/* Contact */

.contact__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__intro {
  max-width: 33.125rem; /* 530 */
}

@media (min-width: 52rem) {
  .contact {
    min-height: 51.0625rem; /* 817 */
  }
}

/* Footer: black, 80px padding */

.site-footer {
  padding: var(--gutter) 0;
  background: var(--ink);
  color: var(--paper);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 3.125rem; /* 50 */
}

/* Acknowledgements: Figma footer (node 111:50) */
.acknowledgements {
  display: flex;
  flex-direction: column;
  font-size: 1rem; /* 16px, smaller than the 20px body text */
  gap: 1.4em; /* the blank line between heading and text in the design */
  max-width: 55rem;
}

.acknowledgements__title {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: inherit;
}

.acknowledgements a {
  text-underline-offset: 0.15em;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem clamp(2.5rem, 10vw, 9.5rem);
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.site-footer__heading {
  font-weight: 700;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__small {
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__copyright {
  font-size: 0.9375rem;
}

.logo--footer {
  margin-left: auto;
}

.logo--footer img {
  width: clamp(10rem, 17.85vw, 16.0625rem); /* 257px */
}

.social {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--paper);
  color: #1b1b2f;
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.field__error {
  margin-top: -0.75rem;
  color: var(--error);
  font-size: 0.875rem;
}

/* Mobile menu: Figma frame "menu" (node 44:2). A <dialog>, so it traps focus and closes on Escape. */

.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0.9375rem var(--gutter) 2.5rem; /* header matches the page header: 15 / 20 */
  border: 0;
  background: var(--ink);
  color: var(--paper);
}

.menu[open] {
  display: flex;
  flex-direction: column;
  gap: 3.6875rem; /* puts the links 110px from the top, as in the design */
}

.menu::backdrop {
  background: var(--ink);
}

.menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.25rem; /* same height as the hamburger button, so the logo doesn't shift when the menu opens */
  margin-right: -0.3125rem; /* line the icon up with the hamburger it replaces */
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}

.menu :focus-visible {
  outline-color: var(--paper);
}

.menu__links {
  margin: 0;
  padding: 0;
  border-top: 2px solid #e3e3e3;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.5625rem; /* 25px */
  font-weight: 700;
}

.menu__links li {
  border-bottom: 2px solid #e3e3e3;
}

.menu__links a {
  display: block;
  padding: 1.0625rem 0; /* 17 */
  text-decoration: none;
}

/* The design insets the menu's links and buttons 6px more than the page edges (341px wide at 393) */
.menu nav,
.menu__actions {
  margin-inline: 0.375rem;
}

.menu__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20 */
  margin-top: 9.5rem; /* 211px from the links in the design, less the flex gap */
}

/* Letter Read more / Read less, below the desktop layout only. Closed, it shows the greeting and first two paragraphs.
   On desktop the photo stays beside the letter, so the whole letter shows. */

.letter__toggle {
  display: none;
  align-items: center;
  gap: 0;
}

@media (max-width: 51.99rem) {
  .js .letter__text:not(.is-expanded) p:nth-child(n + 4) {
    display: none;
  }

  .js .letter__toggle {
    display: inline-flex;
  }
}

.letter__toggle img {
  transform: rotate(180deg); /* the Figma icon points up; closed shows it pointing down */
}

.letter__toggle[aria-expanded="true"] img {
  transform: none;
}

/* Mobile: Figma frame "iPhone 16 - 1" */

@media (max-width: 51.99rem) {
  :root {
    --gutter: 1.25rem; /* 20px, as in the mobile frames */
  }

  h2 {
    font-size: 2rem; /* 32px */
  }

  .site-header {
    background: var(--paper);
  }

  .site-header__inner {
    min-height: 0;
    padding: 0.9375rem var(--gutter); /* 15 / 20 */
  }

  .site-header .logo img {
    width: 6.375rem; /* 102px */
  }

  .site-header__actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  /* Kid photos: full height of the wide shot, cropped at the sides; up to 36rem tall */
  .hero__media,
  .contact .split__media {
    width: 100%;
    min-height: 0;
    max-height: 36rem;
    background-size: cover;
    background-position: center;
  }

  .hero__media {
    aspect-ratio: 393 / 342; /* the mobile Figma frame */
  }

  .hero__slide {
    background-size: cover;
    background-position: center;
  }

  .photo--hero {
    background-image: url("/assets/img/hero.jpg");
  }

  .photo--hero-green.is-loaded {
    background-image: url("/assets/img/contact.jpg");
  }

  .photo--hero-blue.is-loaded {
    background-image: url("/assets/img/hero-blue.jpg");
  }

  .photo--contact {
    background-image: url("/assets/img/contact.jpg");
  }

  .contact .split__media {
    aspect-ratio: 4 / 5;
  }

  /* Hero: photo above the pink block */
  .hero__media {
    order: -1;
  }

  .hero__content {
    justify-content: flex-start;
    padding: var(--gutter);
  }

  .letter {
    padding: 2.5rem var(--gutter);
    gap: 1.875rem; /* 30 */
  }

  .videos__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero__title {
    font-size: 2.5rem; /* 40px */
  }

  .signatures {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }


  .sign {
    padding: 2.5rem var(--gutter);
  }

  .card__title {
    font-size: 2.1875rem; /* 35px */
  }

  .card .form__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4375rem;
  }

  .card .form__footer .button {
    width: 100%;
  }

  .signatures__count {
    font-size: 2.5rem; /* 40px */
  }

  .signatures__label {
    font-size: 1.75rem; /* 28px */
  }

  .logo--footer {
    margin-left: 0;
  }
}

