/* Outfit is the typeface of the logo wordmark. Self-hosted: see assets/fonts. */
@font-face {
  font-family: Outfit;
  src: url("outfit-latin.6c18d579fd.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Arial scaled to Outfit's width, so text barely moves when the font arrives. */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 99%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* Colours come from the logo: navy #12263f and blue #4680ae.
   The logo blue is 4.2:1 on white, so text uses a deeper shade of it. */
:root {
  --navy: #12263f;
  --blue: #4680ae;
  --blue-deep: #2b628f;
  --surface: #f2f6fa;
  --shape-1: #e6eef5;
  --shape-2: #dae6f1;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  font: 400 1.125rem/1.6 Outfit, "Outfit Fallback", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

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

p {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

/* Keeps hyphenated words such as "e-mail" on one line */
.nowrap {
  white-space: nowrap;
}

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: #fff;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
}

.logo {
  display: block;
  padding-block: 0.5rem;
}

.logo img {
  display: block;
  width: clamp(12rem, 36vw, 17rem);
  height: auto;
}

.lang a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 1rem;
}

/* Intro: the two bars of the logo mark, oversized, as a backdrop */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7rem;
  height: 90%;
  aspect-ratio: 299 / 250;
  translate: 0 -50%;
}

@media (min-width: 48rem) {
  .hero::before,
  .hero::after {
    right: -2rem;
    height: 125%;
  }
}

.hero::before {
  background: var(--shape-2);
  clip-path: polygon(43.1% 0, 100% 0, 87% 40%, 30.1% 40%);
}

.hero::after {
  background: var(--shape-1);
  clip-path: polygon(13% 60%, 69.9% 60%, 56.9% 100%, 0 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 10vw, 7rem);
}

.hero h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #4a5b70;
  text-wrap: balance;
}

.hero h1 strong {
  font-weight: 700;
  color: var(--navy);
}

/* Privacy and 404 pages: the same band, lower, with a line under the title */
.hero.compact .wrap {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.hero p {
  margin: 1rem 0 0;
  color: #4a5b70;
}

/* Sections: heading on top, content below it */
.hero + .row {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.row:last-child {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.row .wrap {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.row h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.65rem;
  margin: 0.35rem 0 1rem 0.15rem;
  background: var(--blue);
  transform: skewX(-21.3deg);
}

.body {
  max-width: 42rem;
}

.body > :last-child {
  margin-bottom: 0;
}

/* Cards: every fact on the site sits in one of these.
   Optional small label (dt), then the value. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

p + .cards {
  margin-top: 1.5rem;
}

.card {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: var(--surface);
  font-size: 1.25rem;
  line-height: 1.45;
}

.card.wide {
  grid-column: 1 / -1;
}

.card dt {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--blue-deep);
}

.card dd {
  margin: 0;
}

.card a {
  color: var(--navy);
  text-decoration-color: var(--blue);
  overflow-wrap: anywhere;
}

.card a:hover {
  color: var(--blue-deep);
}

.card p {
  margin: 0.4rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Footer: a navy band with the privacy link; sits at the bottom on short pages */
main {
  flex: 1;
}

.site-footer {
  background: var(--navy);
}

.site-footer .wrap {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.site-footer a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 1rem;
  color: #fff;
  text-decoration-color: var(--blue);
}
