@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2-variations"),
       url("/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --midnight: #0B1942;
  --signal: #4CB4FB;
  --chalk: #F4F7FB;
  --deep: #1545A2;
  --mist: #B3D4FF;
  --midnight-veil: rgb(11 25 66 / 0.86);

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --body-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem);
  --band-pad: clamp(4.5rem, 10vw, 9rem);
}

@supports (color: oklch(0 0 0)) {
  :root {
    --midnight: oklch(0.23 0.08 266);
    --signal: oklch(0.74 0.14 242);
    --chalk: oklch(0.975 0.006 255);
    --deep: oklch(0.42 0.16 262);
    --midnight-veil: oklch(0.23 0.08 266 / 0.86);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--midnight);
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--chalk);
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

strong { font-weight: 700; }

a { color: inherit; }

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

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

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

/* Grounds. Each sets text colour and focus ring colour. */
.ground-midnight { background: var(--midnight); color: var(--chalk); --focus: var(--signal); --accent: var(--signal); }
.ground-chalk    { background: var(--chalk);    color: var(--midnight); --focus: var(--deep); --accent: var(--deep); }
.ground-signal   { background: var(--signal);   color: var(--midnight); --focus: var(--midnight); }
.ground-deep     { background: var(--deep);     color: var(--chalk); --focus: var(--chalk); }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: 1.625rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .ten { color: var(--accent); }
.wordmark-small { font-size: 1.375rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.375rem;
  border: 0;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn-signal, .btn-pill {
  background: var(--signal);
  color: var(--midnight);
}
.btn-pill { border-radius: 999px; }
.btn-pill:hover { background: var(--chalk); }
.ground-midnight .btn-pill:focus-visible { outline-color: var(--chalk); }

/* Header and hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: max(36rem, 100svh);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
}
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.nav-links a:not(.btn):hover { text-decoration: underline; }

.hero-body {
  margin-top: auto;
  padding-block: 4rem clamp(3.5rem, 8vw, 6.5rem);
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  max-width: 14ch;
}

.hero-sub {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 34ch;
  color: var(--mist);
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 64em) {
  .hero { min-height: 860px; }
}

/* Bands */
.band { padding-block: var(--band-pad); }

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: 1fr 2fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

.section-title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  color: var(--accent, currentColor);
}

.prose {
  max-width: 68ch;
  font-weight: 400;
}
.prose p + p { margin-top: 1.25em; }
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.prose a:hover { text-decoration-thickness: 3px; }

@media (min-width: 56em) {
  .prose { padding-top: 0.35rem; }
}

/* Proof band */
.proof-title {
  font-size: clamp(2.75rem, 1rem + 7vw, 6rem);
  max-width: 17ch;
}

.proof-body {
  max-width: 36ch;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  margin-left: auto;
  font-weight: 500;
}

/* Footer */
.footer {
  padding-block: clamp(4.5rem, 10vw, 8rem) 2rem;
}

.signoff {
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--signal);
  text-wrap: balance;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--mist);
  font-size: 1.0625rem;
}
.footer-row > a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 0.25em;
}
.legal {
  color: var(--mist);
  margin-left: auto;
}

@media (max-width: 40em) {
  .legal { margin-left: 0; width: 100%; }
}

/* The nudge dialog */
.nudge {
  width: min(30rem, calc(100% - 2rem));
  max-width: none;
  padding: clamp(2rem, 5vw, 2.75rem);
  border: 0;
  border-radius: 2px;
  background: var(--chalk);
  color: var(--midnight);
  --focus: var(--deep);
  --accent: var(--deep);
}
.nudge::backdrop { background: var(--midnight-veil); }

.nudge-close-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin: 0;
}
.nudge-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--midnight);
  cursor: pointer;
}
.nudge-close:hover { background: rgb(11 25 66 / 0.08); }

.nudge-title {
  font-size: clamp(1.875rem, 1.2rem + 2.5vw, 2.5rem);
  padding-right: 2rem;
}
.nudge-line {
  margin-top: 0.875rem;
  font-weight: 500;
}
.nudge-action {
  margin-top: 1.75rem;
  width: 100%;
}
.nudge-action:focus-visible { outline-color: var(--midnight); }
.nudge-action[hidden] { display: none; }

.nudge-done {
  padding-block: 1.5rem;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--deep);
}

@media (prefers-reduced-motion: no-preference) {
  .nudge[open] { animation: nudge-in 220ms ease-out; }
  .nudge[open]::backdrop { animation: veil-in 220ms ease-out; }
}

@keyframes nudge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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