@font-face {
  font-family: "Inter";
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0d2b52;
  --blue: #164a8a; /* also the top colour of assets/fields.svg; keep them matched */
  --pale: #e6f0f9;
  --ink: #14263d;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 1.125rem/1.6 "Inter", system-ui, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.1; text-wrap: balance; }

a { color: var(--blue); text-underline-offset: 0.25em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

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

/* Top */
.hero {
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 62rem);
  color: #fff;
  background: var(--blue);
}

/* White so the logo stays readable in its own colours */
.site-header { background: #fff; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.logo img { display: block; width: auto; height: clamp(3.5rem, 6vw, 4.5rem); }
nav { display: flex; flex-wrap: wrap; gap: 0 clamp(0.75rem, 5vw, 1.75rem); }
nav a { padding-block: 0.4rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.intro { padding-block: clamp(2.5rem, 8vh, 5.5rem) 2rem; }
.intro h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.intro p { max-width: 38rem; margin-top: 1.25rem; font-size: 1.25rem; }

.fields {
  display: block;
  flex: 1 0 20rem;
  width: 100%;
  height: 20rem;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover { background: var(--navy); }
.button:focus-visible { outline-color: var(--blue); }
.hero .button { color: var(--navy); background: #fff; }
.hero .button:hover { background: var(--pale); }
.hero .button:focus-visible { outline-color: #fff; }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.tint { background: var(--pale); }
.row { display: grid; gap: 1.25rem 3rem; }
h2 {
  color: var(--blue);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.text { max-width: 62ch; }
.text p + p { margin-top: 1em; }

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

/* Privacy policy */
.ruled { border-bottom: 1px solid #c9dbec; }
.policy { padding-block: clamp(2.5rem, 6vw, 5rem); font-size: 1rem; }
.policy > * { max-width: 46rem; margin-block: 0 1rem; }
.policy h1 {
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.policy h2 { margin-top: 3rem; font-size: 1.375rem; line-height: 1.3; letter-spacing: 0; }
.policy h3 { margin-top: 2rem; color: var(--blue); font-size: 1.125rem; line-height: 1.3; }
.policy ul, .policy ol { padding-left: 1.75rem; }
.policy li + li { margin-top: 0.4rem; }
.policy [id] { scroll-margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.policy table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.policy th, .policy td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #c9dbec;
  text-align: left;
  vertical-align: top;
}
.policy th { background: var(--pale); }

/* Bottom */
footer { padding-block: 2rem; color: #fff; background: var(--navy); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer a { color: #fff; }
footer .disclaimer { flex-basis: 100%; }

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