/****** Base *********/

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  position: relative;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }

a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: var(--stroke); }
a:hover { text-decoration-color: var(--c-pink); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 10;
  background: var(--c-ink); color: var(--c-bg); padding: var(--s-3) var(--s-4); font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/****** Typography *********/

.title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: var(--wdth-normal);
  letter-spacing: -.025em;
  line-height: var(--lh-title);
  text-wrap: balance;
}
.title--giant { font-size: var(--t-giant); font-stretch: 108%; }
.title--1 { font-size: var(--t-title-1); font-stretch: var(--wdth-wide); line-height: .92; letter-spacing: -.035em; }
.title--2 { font-size: var(--t-title-2); }
.title--3 { font-size: var(--t-title-3); line-height: 1.05; }
.title--4 { font-size: var(--t-title-4); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }

.title__narrow { font-stretch: var(--wdth-narrow); font-weight: 400; letter-spacing: -.01em; }

.narrow { font-family: var(--f-display); font-stretch: var(--wdth-condensed); font-weight: 600; }

.label, .eyebrow, .facts dt, .site-footer__title, .brand__tagline {
  font-family: var(--f-label); font-weight: 700;
  font-size: var(--t-label); line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
}

.eyebrow { display: block; margin-bottom: var(--s-3); }
.lead { font-size: var(--t-lead); max-width: var(--measure); }
.text-muted { color: var(--c-muted); }
p, li, dd, figcaption { text-wrap: pretty; }

.prose > * + * { margin-top: var(--s-4); }
.prose p { max-width: var(--measure); }

/****** Highlighter *********/

.hl {
  --hl: var(--hl-yellow);
  background: linear-gradient(var(--hl), var(--hl)) 0 82% / 100% 42% no-repeat;
  padding-inline: .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--yellow { --hl: var(--hl-yellow); }
.hl--pink { --hl: var(--hl-pink); }
.hl--green { --hl: var(--hl-green); }
.hl--blue { --hl: var(--hl-blue); }
.hl--orange { --hl: var(--hl-orange); }
.hl--purple { --hl: var(--hl-purple); }

/****** Links and buttons *********/

.link-strong { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; }

.button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--c-ink); color: var(--c-bg);
  border: var(--stroke) solid var(--c-ink);
  border-radius: var(--radius);
  padding: .8em 1.4em;
  font: 700 var(--t-small)/1.2 var(--f-body);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--c-bg); color: var(--c-ink); }
.button--outline { background: transparent; color: var(--c-ink); }
.button--outline:hover { background: var(--c-ink); color: var(--c-bg); }

/****** Header *********/

.site-header { padding-block: var(--s-2) 0; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); }

.brand { display: inline-flex; align-items: center; gap: var(--s-4); text-decoration: none; }
.brand__logo { width: clamp(6rem, 4.6rem + 3.6vw, 8.5rem); height: auto; flex: none; }
.brand__name {
  display: block;
  font-family: var(--f-label); font-weight: 700;
  font-size: 1.75rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
}
.brand__tagline { display: block; color: var(--c-muted); white-space: nowrap; }
.brand__name + .brand__tagline { margin-top: .5em; }

.nav ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.nav a { display: inline-block; padding-block: var(--s-1); font-size: 1.125rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--c-rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--c-pink); }

/****** Hero *********/

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem); gap: var(--s-7); align-items: center; padding-block: var(--s-8) var(--s-section); }
.hero .title { margin-bottom: var(--s-6); }
.hero__illustration { width: 100%; height: auto; }

/****** Trio *********/

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-8); padding-bottom: var(--s-section); }
.trio__icon { width: 3rem; height: auto; margin-bottom: var(--s-4); }
.trio .title { margin-bottom: var(--s-4); }
.trio p { color: var(--c-muted); }

/****** Full-width tinted bands *********/

.band { padding-block: var(--s-9); }
.band--green { background: var(--c-green-tint); }
.band--pink { background: var(--c-pink-tint); }
.band--blue { background: var(--c-blue-tint); }
.band--yellow { background: var(--c-yellow-tint); }
.band--orange { background: var(--c-orange-tint); }
.band--purple { background: var(--c-purple-tint); }

.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-9); align-items: center; }
.two-cols--top { align-items: start; }
.two-cols--illustrated { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/****** Points *********/

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.points > li { display: grid; gap: var(--s-2); align-content: start; border-top: var(--stroke) solid var(--c-ink); padding-top: var(--s-4); }
.points__head { display: flex; align-items: center; gap: var(--s-3); }
.points__icon { width: 2rem; height: auto; flex: none; }
.points p { color: var(--c-muted); }

/****** Facts *********/

.facts { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-3) var(--s-5); font-size: 1.25rem; }
.facts dt { padding-top: .3em; }
.facts__note { grid-column: 1 / -1; margin-top: var(--s-2); font-size: var(--t-small); color: var(--c-muted); }

/****** Note *********/

.note {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-4);
  background: var(--c-yellow-tint); padding: var(--s-5);
  max-width: 40rem;
}
.note img { width: 1.5rem; height: auto; }
.note--pink { background: var(--c-pink-tint); }
.note--green { background: var(--c-green-tint); }

/****** Gallery *********/

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.gallery figure { display: grid; gap: var(--s-2); align-content: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-rule); }
.gallery figcaption { font-size: var(--t-tiny); color: var(--c-muted); }
.gallery__main { grid-column: 1 / -1; }
.gallery__main img { aspect-ratio: 21 / 9; }

/****** Press links *********/

.press { display: grid; gap: var(--s-3); }
.press li { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-top: var(--stroke-thin) solid var(--c-rule); }
.press__source { font-size: var(--t-small); color: var(--c-muted); }

/****** Helplines *********/

.helplines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-5) var(--s-6); }
.helplines li { display: grid; gap: var(--s-1); align-content: start; border-top: var(--stroke) solid var(--c-ink); padding-top: var(--s-3); }
.helplines__number {
  font-family: var(--f-display); font-stretch: var(--wdth-narrow); font-weight: 700;
  font-size: var(--t-title-3); line-height: 1; font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap;
}
.helplines__label { font-weight: 700; }
.helplines__hint { font-size: var(--t-small); color: var(--c-muted); }

/****** Contact details *********/

.contact-list { display: grid; gap: var(--s-6); }
.contact-list > div { display: grid; gap: var(--s-2); }
.contact-list .title { margin-bottom: var(--s-1); }

/****** Disclosure *********/

.disclosure { border-top: var(--stroke) solid var(--c-ink); border-bottom: var(--stroke-thin) solid var(--c-rule); }
.disclosure summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-block: var(--s-4); cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-title-4); letter-spacing: -.015em;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-weight: 400; font-size: 1.5em; line-height: 1; }
.disclosure[open] summary::after { content: "–"; }
.disclosure__body { padding-bottom: var(--s-6); }
.disclosure__body h3 { font-weight: 700; margin-top: var(--s-5); }

/****** Form *********/

.form { display: grid; gap: var(--s-5); max-width: 40rem; }
.field { display: grid; gap: var(--s-2); }
.field__label { font-weight: 700; }
.field__hint { font-size: var(--t-small); color: var(--c-muted); }
.field__error { font-size: var(--t-small); color: var(--c-error); font-weight: 700; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--c-ink);
  background: var(--c-white);
  border: var(--stroke) solid var(--c-rule); border-radius: var(--radius-field);
  padding: .7em .85em; width: 100%;
}
.field textarea { min-height: 9em; resize: vertical; }
.field select {
  appearance: none; cursor: pointer; padding-right: 2.5em;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D1823' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .9em center;
}
.field select:hover { border-color: var(--c-muted); }
.field select:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-ink); }
.field__optional { font-weight: 400; color: var(--c-muted); }
.field input:hover, .field textarea:hover { border-color: var(--c-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-ink); }
.field--error input, .field--error textarea { border-color: var(--c-error); }

.checkbox { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.checkbox input { width: 1.4rem; height: 1.4rem; margin-top: .15em; accent-color: var(--c-ink); }

/****** Landscape *********/

.landscape {
  position: relative;
  height: clamp(7.5rem, 16vw, 14.375rem);
  margin-top: var(--s-section);
  overflow: hidden;
}

.landscape__band {
  --amp: 12px;        /* wave height */
  --period: 640px;    /* wave length */
  --duration: 45s;
  position: absolute;
  top: var(--top);
  bottom: 0;
  left: 0;
  width: calc(100% + var(--period));
  animation: landscape-drift var(--duration) linear infinite;
}

.landscape__band::before,
.landscape__band::after {
  --rx: calc(var(--period) * .32);
  --ry: calc(var(--amp) * 1.28);
  --wave:
    radial-gradient(var(--rx) var(--ry) at 50% calc(var(--amp) * 1.8), #000 99%, #0000 101%)
      calc(50% - var(--period) / 2) 0 / var(--period) 100%,
    radial-gradient(var(--rx) var(--ry) at 50% calc(var(--amp) * -.8), #0000 99%, #000 101%)
      50% var(--amp) / var(--period) 100% repeat-x;
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--wave);
  mask: var(--wave);
}
.landscape__band::before { background: color-mix(in oklab, var(--band) 72%, #000); }
.landscape__band::after { top: 3px; background: var(--band); }

.landscape__band:nth-child(1) { --band: var(--c-red); --top: 0%; --amp: max(5px, 1vw); --period: 640px; --duration: 46s; }
.landscape__band:nth-child(2) { --band: var(--c-orange); --top: 14%; --amp: max(5px, 1.15vw); --period: 560px; --duration: 38s; animation-direction: reverse; }
.landscape__band:nth-child(3) { --band: var(--c-yellow); --top: 29%; --amp: max(6px, 1.35vw); --period: 720px; --duration: 52s; }
.landscape__band:nth-child(4) { --band: var(--c-green); --top: 44%; --amp: max(6px, 1.55vw); --period: 600px; --duration: 41s; animation-direction: reverse; }
.landscape__band:nth-child(5) { --band: var(--c-blue); --top: 60%; --amp: max(7px, 1.75vw); --period: 780px; --duration: 57s; }
.landscape__band:nth-child(6) { --band: var(--c-footer-bg); --top: 76%; --amp: max(7px, 1.9vw); --period: 820px; --duration: 60s; animation-direction: reverse; }

@keyframes landscape-drift {
  to { transform: translateX(calc(-1 * var(--period))); }
}

/****** Footer *********/

.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding-block: var(--s-6) var(--s-7); margin-top: -1px; font-size: 1rem; }
.site-footer a { text-decoration-color: var(--c-footer-rule); }
.site-footer a:hover { text-decoration-color: var(--c-yellow); }
.site-footer .brand__name { color: var(--c-footer-text); }
.site-footer .brand__tagline { color: var(--c-footer-text); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-6) var(--s-7); }
.site-footer__title { color: var(--c-footer-text); margin-bottom: var(--s-3); }
.site-footer li { line-height: 1.8; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); border-top: var(--stroke-thin) solid var(--c-footer-rule); margin-top: var(--s-7); padding-top: var(--s-5); font-size: var(--t-tiny); }
.site-footer :focus-visible { outline-color: var(--c-yellow); }

/****** Responsive *********/

@media (max-width: 60rem) {
  .hero, .two-cols, .two-cols--illustrated { grid-template-columns: minmax(0, 1fr); }
  .hero__illustration { max-width: 12rem; justify-self: center; grid-row: 1; }
  .hero { padding-top: var(--s-5); gap: var(--s-5); }
  .two-cols--illustrated .illustration { max-width: 22rem; }
  .trio { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding-block: var(--s-8); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__main img { aspect-ratio: 4 / 3; }
  .gallery > :last-child:nth-child(even) { grid-column: 1 / -1; }
}

@media (max-width: 30rem) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd + dt { margin-top: var(--s-3); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .brand__name { font-size: 1.375rem; }
  .nav ul { column-gap: var(--s-4); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .nav a { font-size: 1rem; }
  .site-header .brand__tagline { font-size: .8125rem; }
}

@media (max-width: 40rem) {
  p, li, dd { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
