@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --band: #f3f5f9;
  --ink: #161a26;
  --ink-2: #4a5165;
  --ink-3: #6b7287;
  --line: #dde1ea;
  --line-strong: #c4cad8;
  --accent: #2448b8;
  --accent-deep: #1a3690;
  --accent-wash: #e6ecfb;
  --on-accent: #ffffff;
  --on-accent-2: #dbe3fa;
  --on-accent-line: rgb(255 255 255 / 0.38);

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --step-3: clamp(2.375rem, 1.6rem + 2.9vw, 3.875rem);
  --step-4: clamp(2.75rem, 1.35rem + 5.6vw, 6rem);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--line-strong) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent-wash);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}

a:hover {
  color: var(--accent-deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.skip:hover {
  color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}

.masthead.is-scrolled {
  border-bottom-color: var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: var(--step--1);
}

.masthead__nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.masthead__nav a:hover {
  color: var(--ink);
}

.masthead__nav .masthead__cta {
  color: var(--accent);
  font-weight: 600;
}

.masthead__nav .masthead__cta:hover {
  color: var(--accent-deep);
}

.masthead--field {
  background: var(--accent);
  transition: background-color 220ms var(--ease-out), border-color 200ms var(--ease-out);
}

.masthead--field .wordmark,
.masthead--field .wordmark:hover,
.masthead--field .masthead__nav .masthead__cta,
.masthead--field .masthead__nav a:hover {
  color: var(--on-accent);
}

.masthead--field .masthead__nav a {
  color: var(--on-accent-2);
}

.masthead--field .masthead__nav .masthead__cta {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.masthead--field.is-scrolled {
  background: var(--paper);
}

.masthead--field.is-scrolled .wordmark {
  color: var(--ink);
}

.masthead--field.is-scrolled .masthead__nav a {
  color: var(--ink-2);
}

.masthead--field.is-scrolled .masthead__nav .masthead__cta {
  color: var(--accent);
  text-decoration: none;
}

.masthead--field :focus-visible {
  outline-color: var(--on-accent);
}

.masthead--field.is-scrolled :focus-visible {
  outline-color: var(--accent);
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section);
}

.hero h1 {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 750;
  max-width: 20ch;
}

.hero--field {
  background: var(--accent);
  color: var(--on-accent);
  padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(4rem, 2.5rem + 6vw, 8.5rem);
}

.hero--field h1 {
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 750;
  max-width: 20ch;
}

.hero--field .lead {
  color: var(--on-accent-2);
}

.hero--field ::selection,
.close ::selection {
  background: var(--on-accent);
  color: var(--accent);
}

.hero--field :focus-visible,
.close :focus-visible {
  outline-color: var(--on-accent);
}

.hero__row {
  display: grid;
  gap: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  margin-top: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
  padding-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-top: 2px solid var(--on-accent-line);
}

.hero__row .lead,
.hero__row .action {
  margin-top: 0;
}

.lead {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  max-width: 40rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.action {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}

.button:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.button:focus-visible {
  outline-offset: 3px;
}

.button__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  transition: transform 220ms var(--ease-out);
}

.button:hover .button__icon {
  transform: translateX(3px);
}

.button--inverse {
  background: var(--on-accent);
  color: var(--accent);
}

.button--inverse:hover {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.button--large {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  font-size: 1.125rem;
}

/* Sections */

.section {
  padding-block: var(--section);
}

.section--band {
  background: var(--band);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section__head h2,
.split__aside h2,
.close h2 {
  font-size: var(--step-2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section__head p,
.split__aside p {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 34rem;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
}

/* Echoes */

.ledger li {
  padding-block: 1.625rem;
  border-top: 1px solid var(--line-strong);
}

.ledger li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.ledger p {
  margin-top: 0.5rem;
  max-width: 38rem;
  color: var(--ink-2);
}

/* Close */

.close {
  padding-block: var(--section);
  background: var(--accent);
  color: var(--on-accent);
}

.close__inner {
  display: grid;
  justify-items: start;
}

.close h2 {
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.close__lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--on-accent-2);
}

.close .button {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

/* Footer */

.footer {
  padding-block: 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--step--1);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer a {
  color: var(--ink-2);
}

.footer a:hover {
  color: var(--ink);
}

/* Benefits */

.benefits {
  display: grid;
  gap: 0 clamp(2.5rem, 1.5rem + 3vw, 5rem);
}

.benefit {
  min-width: 0;
  padding-block: 1.75rem 2.75rem;
  border-top: 2px solid var(--ink);
}

.benefit h3 {
  max-width: 22ch;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.benefit p {
  margin-top: 0.875rem;
  max-width: 34rem;
  color: var(--ink-2);
}

.benefit .benefit__example {
  margin-top: 0.875rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.benefit__example strong {
  font-weight: 600;
  color: var(--ink);
}

.close__people {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-accent-line);
  font-size: var(--step--1);
  color: var(--on-accent-2);
  max-width: 36rem;
}

/* Illustrations */

.art {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.art img {
  width: 100%;
  height: auto;
}

.art--hero {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.art--aside {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

.art--close {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* Layout breakpoints */

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

}

@media (min-width: 64rem) {
  .close__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    column-gap: clamp(3rem, 2rem + 3vw, 5rem);
  }

  .art--close {
    margin-top: 0;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 4rem;
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .split__aside {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 40rem) {
  .masthead__nav a:not(.masthead__cta) {
    display: none;
  }


  .action .button,
  .close .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Secondary pages */

.legal .wrap {
  max-width: calc(44rem + 2 * var(--gutter));
}

.legal h1 {
  font-size: var(--step-2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

.legal p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.button:hover .button__icon--down {
  transform: translateY(3px);
}
