@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.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;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #1e50d1;
  --brand-dark: #1740a8;
  --ink: #0b1220;
  /* Footer sits on its own token: --ink is also the body text colour, and the
     footer wants to go darker and less blue than text ever should. */
  --footer-bg: #080a10;
  --ink-soft: #46506a;
  --ink-faint: #6b7590;
  --line: #e4e9f2;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --shell: 70rem;

  --step-hero: clamp(1.75rem, 1.15rem + 2.6vw, 3rem);
  --step-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

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

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

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

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  inset-block-start: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transition: inset-block-start 0.15s ease;
}

.skip-link:focus-visible {
  inset-block-start: 0.75rem;
}

/* ---------- Masthead (inner pages) ---------- */

.masthead {
  background: var(--brand);
}

.masthead__inner {
  display: flex;
  align-items: center;
  min-height: 5rem;
}

.masthead__logo {
  display: block;
  width: clamp(8.75rem, 20vw, 10.5rem);
}

.masthead__logo img,
.masthead__logo svg {
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  place-items: center;
  /* Short of a full viewport on purpose, so the top of the footer shows
     on load and the page reads as having something below the fold. */
  min-height: 80vh;
  min-height: 80svh;
  padding: 4rem var(--gutter);
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

.hero__logo {
  width: min(100%, clamp(15rem, 46vw, 34rem));
  margin: 0;
}

.hero__logo img,
.hero__logo svg {
  width: 100%;
  height: auto;
}

.hero__tagline {
  max-width: 34ch;
  color: rgb(255 255 255 / 0.88);
  font-size: var(--step-lead);
  font-weight: 500;
}

.hero__link {
  color: rgb(255 255 255 / 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--footer-bg);
  color: rgb(255 255 255 / 0.66);
  font-size: 0.9375rem;
}

.site-footer__cols {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .site-footer__cols {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 4.5rem);
  }
}

.site-footer__logo {
  width: 8.5rem;
  height: auto;
  margin-block-end: 1.25rem;
}

.site-footer__heading {
  margin-block-end: 1.125rem;
  color: rgb(255 255 255 / 0.95);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__blurb {
  max-width: 46ch;
  line-height: 1.7;
}

.site-footer__list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  /* Padding rather than gap, so each row is a comfortable tap target. */
  display: inline-block;
  padding-block: 0.375rem;
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
  word-break: break-word;
}

.site-footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  /* Padding keeps the tap target near 44px without drawing a frame. */
  margin: -0.5rem;
  padding: 0.5rem;
  color: rgb(255 255 255 / 0.72);
  transition: color 0.18s ease;
}

.site-footer__social a:hover {
  color: #fff;
}

.site-footer__social svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
  display: none;
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 50;
  padding: 1rem var(--gutter);
  background: rgb(8 10 16 / 0.97);
  border-block-start: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.8);
  font-size: 0.875rem;
  line-height: 1.55;
}

.cookie-notice[data-visible] {
  display: block;
}

.cookie-notice__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.cookie-notice p {
  margin: 0;
  max-width: 68ch;
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
}

.cookie-notice button {
  flex: none;
  padding: 0.55rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice button:hover {
  background: rgb(255 255 255 / 0.88);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-block-start: clamp(2.5rem, 6vw, 4rem);
  padding-block-start: 1.75rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.55);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- Legal / support pages ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.75rem, 4vw, 2.75rem);
  border-block-end: 1px solid var(--line);
}

.page-head h1 {
  font-size: var(--step-hero);
}

.page-head__meta {
  margin-block-start: 0.875rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-head__meta strong {
  color: var(--ink);
  font-weight: 800;
}

.page-body {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 6rem);
}

.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.prose > * + * {
  margin-block-start: 1.15rem;
}

.prose h2 {
  margin-block-start: clamp(2.5rem, 5vw, 3.25rem);
  color: var(--ink);
  font-size: var(--step-h3);
}

.prose h2:first-child {
  margin-block-start: 0;
}

.prose ul {
  margin-block: 1.15rem;
  padding-inline-start: 1.25rem;
}

.prose li + li {
  margin-block-start: 0.6rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose .lede {
  color: var(--ink);
  font-size: var(--step-lead);
  font-weight: 500;
}

.prose .upper {
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.contact-block {
  margin-block-start: 2rem;
  padding: 1.5rem 1.625rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--surface-alt);
}

.contact-block p {
  margin: 0;
}

.contact-block p + p {
  margin-block-start: 0.4rem;
}

.contact-block strong {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: var(--measure);
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

.faq details {
  border-block-end: 1px solid var(--line);
}

.faq summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-inline-end: 2px solid var(--brand);
  border-block-end: 2px solid var(--brand);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-0.1rem, -0.1rem);
}

.faq summary:hover {
  color: var(--brand);
}

.faq__answer {
  padding-block-end: 1.5rem;
  color: var(--ink-soft);
}

.faq__answer > * + * {
  margin-block-start: 0.85rem;
}

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

@media print {
  .masthead,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    color: #000;
  }
}
