@font-face {
  font-family: Sofia;
  src: url('/assets/fonts/SofiaSans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Atkinson;
  src: url('/assets/fonts/AtkinsonHyperlegibleNext-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: AtkinsonMono;
  src: url('/assets/fonts/AtkinsonHyperlegibleMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+1E00-1EFF;
  font-display: swap;
}
@font-face {
  font-family: AtkinsonMono;
  src: url('/assets/fonts/AtkinsonHyperlegibleMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+2000-206F;
  font-display: swap;
}
:root {
  --navy: #0d2137;
  --foam: #bce8da;
  --accent: #20614f;
  --paper: #f7f9fb;
  --line: #bac4cc;
  --gutter: clamp(1rem,4vw,5rem);
  --mono: AtkinsonMono, monospace;
  --display: Sofia, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--soft,var(--paper)); color: var(--deep,var(--navy)); margin: 0; font: 1.125rem/1.45 Atkinson,sans-serif; }
.wrap { max-width: 100rem; margin-inline: auto; padding-inline: var(--gutter); }
a { color: var(--link,var(--accent)); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
img { max-width: 100%; }
h1,h2,h3,p,figure,ul,ol { margin: 0; }
h1,h2,h3,.score { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; line-height: 1; }
h1 { font-size: clamp(3.55rem,8.8vw,9rem); }
h2 { font-size: clamp(2rem,3.6vw,3.5rem); }
small,.metrics,.status,figcaption,nav,.mini,.profiles span { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip,.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 5; width: auto; height: auto; clip-path: none; background: white; padding: .6rem; }
header,.field { background: var(--deep,var(--navy)); color: white; }
.head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 1rem; border-bottom: 1px solid #ffffff52; }
.head a,.field a { color: inherit; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font: 800 1.25rem var(--display); text-decoration: none; }
.wordmark img { border: 1px solid #ffffff52; }
nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .78rem; }
nav a { padding-block: .25rem; }
nav a[aria-current] { color: var(--soft,var(--foam)); text-decoration-thickness: 2px; }
.field { overflow: hidden; }
header { background: var(--mid,var(--navy)); }
.home-intro { padding-block: clamp(2.5rem,6vw,6rem) 1.6rem; position: relative; }
.home-intro h1 { max-width: 14ch; }
.metrics { display: flex; flex-wrap: wrap; gap: .7rem clamp(1.5rem,5vw,6rem); margin-top: 2.5rem; border-top: 1px solid var(--soft,var(--foam)); padding-top: 1rem; color: var(--soft,var(--foam)); font-size: .94rem; }
.metrics b { font-weight: 800; font-size: 1.45em; }
.matrix-frame { overflow-x: auto; margin-block: 1.7rem 4rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font: .8rem var(--mono); }
td,th { border-block-end: 1px solid var(--line); text-align: center; }
td { padding: .2rem; min-width: 2.1rem; }
th { padding: .45rem .35rem; }
th:first-child { min-inline-size: 9rem; position: sticky; inset-inline-start: 0; z-index: 1; background: var(--soft,var(--paper)); text-align: start; border-inline-end: 1px solid var(--line); }
tbody th a { inline-size: max-content; white-space: nowrap; display: flex; align-items: center; gap: .55rem; color: var(--deep,var(--navy)); font: 800 1.12rem var(--display); text-decoration: none; }
th a:hover,h3 a:hover,.exam-link:hover span:first-child { text-decoration: underline; }
td div { display: grid; grid-template-columns: repeat(2,auto); justify-content: center; gap: 3px; }
td div:has(a:only-child) { grid-template-columns: auto; }
td a { display: block; width: 1.5rem; height: 1.5rem; background: var(--link,var(--accent)); }
td:empty,td div:empty { min-height: 1rem; }
.directory ul,.country ul,.profiles { padding: 0; list-style: none; }
.directory h2,.section-title { padding-block: 1.5rem; }
.directory ul { display: grid; gap: 1.25rem; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--soft,var(--paper)); color: var(--deep,var(--navy)); border-inline-start: .4rem solid var(--vivid,var(--accent)); }
.card-copy { padding: clamp(1.25rem,3vw,3.5rem); }
.card-copy h3 { margin-bottom: .65rem; }
.card-copy .status { display: block; text-align: start; margin-top: 1.25rem; }
.app-row .hero-photo { background: var(--mid,var(--navy)); color: white; height: 100%; }
.hero-photo a { color: inherit; }
.app-row h3 { font-size: clamp(2.4rem,5.2vw,5.75rem); }
.app-row h3 a { color: var(--link,var(--accent)); text-decoration: none; }
.status { font-size: .85rem; text-align: end; }
.product,.row { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); column-gap: clamp(1rem,2.5vw,3rem); }
.product { position: relative; align-items: center; padding-block: 1.5rem; }
.intro-copy { overflow-wrap: anywhere; grid-area: 1 / 1 / 2 / 7; padding-block: 3.5rem; position: relative; z-index: 1; }
.product:not(.exam-intro) h1 { letter-spacing: -.03em; font-size: clamp(3.4rem,7.25vw,7.5rem); margin: .7rem 0 1rem; }
.intro-copy .lead,.description { font-size: clamp(1.3rem,2vw,1.8rem); max-width: 42ch; }
.drawing { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.signature { position: absolute; width: min(47vw,47rem); height: 155%; inset-inline-start: 15%; top: -20%; fill: none; stroke: var(--foam); stroke-width: 1.5; opacity: .16; }
.signature text { fill: var(--foam); stroke: none; font: 10px var(--mono); }
.product .hero-photo { grid-area: 1 / 7 / 2 / -1; position: relative; }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo figcaption { font-size: .77rem; padding: .65rem 1rem; overflow-wrap: anywhere; }
.product .hero-photo figcaption { background: var(--mid,var(--navy)); }
.row { padding-block: clamp(1.4rem,3vw,3rem); border-top: 1px solid var(--line); }
.row h2 { grid-column: span 4; }
.row > :nth-child(2) { grid-column: span 8; min-width: 0; }
.country small,.exam-top small { display: block; font: .9rem var(--mono); margin-bottom: .55rem; }
.country li + li,.profiles li + li { border-top: 1px solid var(--line); }
.exam-link,.profiles li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.exam-link { color: var(--link,var(--accent)); text-decoration: none; }
.mini { display: grid; gap: .25rem; text-align: end; min-width: 5rem; font-size: .87rem; }
.ruler { color: var(--link,var(--accent)); width: 100%; height: 2.8rem; display: block; }
.field .ruler { color: var(--soft,var(--foam)); position: relative; }
.ruler path { fill: none; stroke: currentColor; }
.ruler .all { opacity: .85; stroke-width: 4; }
.ruler .mark { stroke-width: 2px; }
.mini .ruler,.profiles .ruler { height: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .fill { animation: sweep .8s ease-out both; }
  @keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}
.exam-intro .drawing svg { inset-inline-start: 65%; }
.exam-top { position: relative; }
.exam-name { letter-spacing: normal; display: block; max-width: 38ch; font-size: clamp(1.7rem,3.2vw,3.25rem); }
.score { letter-spacing: -.03em; display: block; font-size: clamp(3.6rem,12vw,12rem); color: var(--highlight,var(--foam)); margin: 1.1rem 0; }
.exam-intro .metrics { position: relative; }
.section-title,.description { margin-block-start: 2rem; }
.description { padding-block-end: 2.5rem; }
p + p { margin-top: .65em; }
.profiles li { flex-wrap: wrap; }
.topics { columns: 2; column-gap: 3rem; padding-inline-start: 2rem; }
.topics li { break-inside: avoid; padding: 0 0 .6rem .35rem; }
.topics li::marker { color: var(--link,var(--accent)); font-family: var(--mono); }
.screens { display: flex; overflow-x: auto; gap: 1rem; }
.screens picture { flex: 0 0 clamp(9rem,15vw,14rem); }
.screens img { display: block; height: auto; }
.actions a { display: inline-block; background: var(--link,var(--accent)); color: white; padding: .55rem .9rem; }
footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 2rem; font-size: .9rem; }
footer p { max-width: 90ch; }
@media (max-width: 46rem) {
  .app-row { grid-template-columns: minmax(0,1fr); }
  .head { gap: .6rem 1rem; }
  nav { width: 100%; margin: 0; }
  .row h2,.row > :nth-child(2) { grid-column: 1/-1; }
  .intro-copy { grid-area: 1 / 1 / 2 / -1; padding-block: 2.2rem; }
  .product .hero-photo { grid-area: 2 / 1 / 3 / -1; }
  .signature { width: 85%; inset-inline-start: 45%; }
  .row h2 { margin-bottom: 1rem; }
  .topics { columns: 1; }
  .matrix-frame { margin-bottom: 1.5rem; }
  .mini { max-width: 7rem; }
}

h1,h2,h3,.exam-link,.topics li { overflow-wrap: anywhere; }

@media (min-width: 50rem) {
  .app-row h3 { letter-spacing: -.03em; }
}
