@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3VF-Upright.ttf.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Taken from the delivered logo artwork */
  --athene-navy: #13304A;
  --athene-green: #3CD29C;
  --athene-steel: #5A6F81;
  --athene-mist: #B8C0C8;
  --athene-white: #FFFFFF;
  /* Derived: the logo green only reaches 1.9:1 on white, so small text and
     links use a darker shade of it; paper is a light tint of the logo grey. */
  --athene-green-text: #1F8560;
  --athene-paper: #EFF2F4;
  --athene-font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--athene-font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--athene-navy);
  background: var(--athene-white);
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); font-weight: 700; max-width: 22em; overflow-wrap: anywhere; hyphens: auto; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
a { color: var(--athene-green-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--athene-green-text); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.measure { max-width: 44em; }
.lead { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.4rem); max-width: 40em; }
.eyebrow { margin-bottom: .5rem; color: var(--athene-green-text); font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.meta { color: var(--athene-steel); font-size: 1rem; }
.spaced { margin-top: 2rem; }

.skip { position: absolute; left: 1rem; top: -10rem; z-index: 10; padding: .5rem 1rem; background: var(--athene-white); }
.skip:focus { top: 1rem; }

/* Header and hero share the dark brand surface of the logo */
.site-header, .hero { background: var(--athene-navy); color: var(--athene-white); }
.site-header a, .hero a { color: var(--athene-green); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--athene-green); }
/* Page head: the logo lockup next to the navigation, in the proportions of the
   delivered horizontal logo (emblem height = 1.363 x the wordmark's font size). */
:root { --lockup: clamp(2.4rem, 4.5vw, 3.2rem); }
.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--athene-steel); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .3rem .6rem; }
.brand { font-size: calc(var(--lockup) / 1.363); line-height: 1; text-decoration: none; }
.logo-word { display: block; line-height: .92; }
.brand { text-decoration: none; }
.logo { display: flex; align-items: center; gap: .65rem; }
.logo-mark { display: block; width: auto; height: var(--lockup); }
.logo-athene { color: var(--athene-white); font-weight: 400; }
.logo-ki { color: var(--athene-green); font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: .25rem; border-bottom: 2px solid transparent; color: var(--athene-white); font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--athene-green); }

/* Sections */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 4px solid var(--athene-green); }
.hero .eyebrow { color: var(--athene-green); }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--athene-paper); }

.grid, .entries, .logo-bar, .steps { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { padding: 1.5rem; border-top: 4px solid var(--athene-green); background: var(--athene-paper); }
.section--paper .card { background: var(--athene-white); }
.card > :last-child, .entry > :last-child { margin-bottom: 0; }

.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.checklist ul { margin: 0; padding-left: 1.25rem; }
.checklist li { margin-bottom: .5rem; }
.checklist li::marker { color: var(--athene-green); }

/* Overview tiles under the page head */
.section--tiles { padding-block: clamp(2rem, 4vw, 3rem); }
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.tile a { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: var(--athene-paper); color: var(--athene-navy); text-decoration: none; }
.tile a:hover { background: var(--athene-navy); color: var(--athene-white); }
.tile-label { padding: .75rem 1.25rem; background: var(--athene-navy); color: var(--athene-white); font-size: 1.15rem; font-weight: 600; }
.tile a:hover .tile-label { background: var(--athene-green); color: var(--athene-navy); }
.tile-art { display: block; width: 100%; height: 10rem; padding: 1.25rem 1.25rem .5rem; --em-line-width: 30px; }
.tile a:hover .lg-map { fill: var(--athene-steel); }
.tile a:hover .lg-navy, .tile a:hover .lg-outline, .tile a:hover .lg-line, .tile a:hover .lg-site { stroke: var(--athene-white); }
.tile a:hover .lg-navy { fill: var(--athene-white); }
.tile-text { padding: 0 1.25rem 1.25rem; font-size: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Logo building blocks. The delivered artwork exists as a light and a dark
   drawing (the dark one outlines shield and staff in white), so both are kept
   as separate definitions: #em-… light, #emd-… dark. */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lg-navy { fill: var(--athene-navy); }
.lg-white { fill: var(--athene-white); }
.lg-green { fill: var(--athene-green); }
.lg-mist { fill: var(--athene-mist); }
.lg-steel { fill: var(--athene-steel); }
.lg-line { fill: none; stroke: var(--athene-navy); stroke-width: var(--em-line-width, 12.5px); stroke-linecap: round; stroke-linejoin: round; }
.lg-outline { fill: none; stroke: var(--athene-navy); stroke-width: 12.78px; stroke-linejoin: round; }
.lg-site { fill: var(--athene-green); stroke: var(--athene-navy); stroke-width: 12.5px; }

/* Layer graphic, partner cards and milestones — the look of the printed pieces */
.layers-layout, .map-layout { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-top: 2rem; }
.layers-figure, .map-figure { margin: 0; }
.schichtenbild { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; }
.layers-figure figcaption { margin-top: .75rem; }
.layer-steps { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.layer-steps li { position: relative; padding-left: 3rem; counter-increment: step; }
.layer-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--athene-green); color: var(--athene-navy);
  font-size: 1rem; font-weight: 600;
}
.layer-steps h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.layer-steps p { margin-bottom: 0; }
.sb-plate { fill: var(--athene-white); }
.sb-plate-stroke { stroke: var(--athene-white); }
.sb-navy { fill: var(--athene-navy); }
.sb-navy-stroke { stroke: var(--athene-navy); }
.sb-green { fill: var(--athene-green); }
.sb-green-stroke { stroke: var(--athene-green); }
.sb-green-text { fill: var(--athene-green-text); }
.sb-green-text-stroke { stroke: var(--athene-green-text); }
.sb-mist { fill: var(--athene-mist); }
.sb-mist-stroke { stroke: var(--athene-mist); }
.sb-steel-stroke { stroke: var(--athene-steel); }
.sb-label { fill: var(--athene-navy); font-size: 17px; font-weight: 600; }

/* Partner left and right of the map, as on the A1 poster */
.map-partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: center; margin-top: 2rem; }
.map-partners .partner-cards { grid-template-columns: minmax(0, 1fr); margin: 0; }
.map-partners .map-figure { align-self: center; }
.sb-note { fill: var(--athene-steel); font-size: 17px; }

.partner-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin: 2.5rem 0 0; padding: 0; list-style: none; }
.partner-card { padding: 1.5rem; border: 1px solid var(--athene-mist); border-radius: 10px; background: var(--athene-white); }
.partner-head h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.partner-card--crest .partner-head { display: flex; align-items: center; gap: 1rem; }
.partner-card--crest .partner-logo { flex: none; max-width: 3.5rem; max-height: 4.5rem; margin-bottom: 0; }
.partner-focus { margin-bottom: .75rem; color: var(--athene-green-text); font-size: 1rem; font-weight: 600; }
.partner-tasks { margin: 0; padding-left: 1.1rem; font-size: 1rem; }
.partner-tasks li { margin-bottom: .35rem; }
.partner-tasks li::marker { color: var(--athene-green); }
.section--paper .partner-card { background: var(--athene-white); }

.milestones { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.milestone { padding-top: 1rem; border-top: 4px solid var(--athene-green); }
.milestone-year { margin-bottom: .2rem; color: var(--athene-steel); font-size: 1rem; font-weight: 600; }
.milestone h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.milestone p { margin-bottom: 0; font-size: 1rem; }
.map-figure { margin: 0; }
.emblem-map { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; --em-line-width: 18px; }
.map-figure figcaption { margin-top: .75rem; }
.map-label { fill: currentColor; font-size: 125px; font-weight: 600;
  paint-order: stroke; stroke: var(--em-halo, var(--athene-white)); stroke-width: 26px; stroke-linejoin: round; }

.sites { display: grid; gap: 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.site { position: relative; padding-left: 1.9rem; }
.site::before { content: ""; position: absolute; left: 0; top: .5rem; width: .85rem; height: .85rem; border: 2px solid var(--athene-navy); border-radius: 50%; background: var(--athene-green); }
.site h3 { margin-bottom: .2rem; }
.site p { margin-bottom: .2rem; }

/* Partners and people */
.logo-bar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.logo-slot { display: grid; place-items: center; min-height: 6.5rem; padding: 1rem; background: var(--athene-white); border: 1px solid var(--athene-mist); border-radius: 10px; }
.logo-slot img { max-width: 100%; max-height: 4rem; object-fit: contain; }
.logo-slot--crest { grid-auto-flow: column; justify-content: start; gap: .85rem; padding: .85rem 1rem; text-align: left; }
.logo-slot--crest img { max-width: 2.75rem; max-height: 3.5rem; }
.logo-slot--crest span { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.partner-logo { display: block; max-width: 70%; max-height: 3.25rem; margin-bottom: 1rem; object-fit: contain; object-position: left center; }
.funder-logo { width: 13rem; height: auto; }

.entries { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.entry { padding: 1.25rem 1.5rem; border-left: 4px solid var(--athene-green); background: var(--athene-paper); }
.section--paper .entry { background: var(--athene-white); }
.entry h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.entry .partner-logo { max-width: 60%; max-height: 2.75rem; margin-bottom: .75rem; }
.entry--crest .partner-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .25rem; }
.entry--crest .partner-logo { flex: none; max-width: 3rem; max-height: 3.75rem; margin-bottom: 0; }
.entry .meta { margin-bottom: .5rem; }
.badge { display: inline-block; padding: 0 .6rem; border: 1px solid var(--athene-steel); border-radius: 1rem; font-size: .95rem; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem 2rem; margin-block: 1.5rem; }
.facts dt { color: var(--athene-steel); font-size: 1rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts > div:last-child { grid-column: 1 / -1; }

/* Footer */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--athene-steel); font-size: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.funding-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; max-width: 40rem; }
.funding-notice p { margin: 0; max-width: 20em; font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* Placeholder markers; remove together with the [TODO] texts before going live */
.todo { display: inline-block; padding: .1rem .5rem; outline: 2px dashed var(--athene-steel); outline-offset: -2px; background: var(--athene-paper); color: var(--athene-navy); font-size: 1rem; }
.logo-slot .todo { background: transparent; outline: 0; color: var(--athene-steel); }


@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 62rem) {
  .map-layout, .layers-layout { grid-template-columns: 1fr; }
  .map-partners { grid-template-columns: 1fr; }
  .map-partners .map-figure { order: -1; }
}

@media (max-width: 40rem) {
  .map-label { font-size: 150px; }
  .header-inner { padding-block: .2rem .5rem; gap: .2rem 1.1rem; }
  .nav a { font-size: .95rem; }
}

@media (forced-colors: active) {
  .card, .entry, .logo-slot { border: 1px solid CanvasText; }
}
