@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}

:root {
  --blue: #0b5aa6;
  --yellow: #ffd400;
  --ink: #16191d;
  --muted: #4a5561;
  --ground: #eef1f4;
  --paper: #ffffff;
  --line: #c7ced6;
  --sign: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --read: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  scrollbar-color: var(--blue) var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--read);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 8px 14px;
  font: 700 1rem var(--sign); text-decoration: none; border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- The sign ---------- */
.sign {
  background: var(--blue);
  color: #fff;
  padding: clamp(8px, 1.2vw, 14px);
}
.sign-face {
  max-width: calc(var(--wrap) + 2 * 48px);
  margin: 0 auto;
  border: clamp(3px, .4vw, 5px) solid #fff;
  border-radius: clamp(8px, 1vw, 14px);
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 56px) 0;
}
.sign-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sign-title { color: #fff; text-decoration: none; font-family: var(--sign); }
.sign-title:hover { text-decoration: none; }
.sign-name {
  display: block; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .92; letter-spacing: .005em;
}
.sign-sub {
  display: block; margin-top: .5rem; font-weight: 600; text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.75rem); letter-spacing: .05em; color: #dce8f5;
}
.plate {
  flex: none; margin: 0;
  background: var(--yellow); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 8px;
  padding: .45rem 1.1rem .5rem; text-align: center;
  font-family: var(--sign); font-weight: 700; line-height: 1;
}
.plate-main { display: block; font-size: clamp(1.6rem, 3.4vw, 2.75rem); white-space: nowrap; }
.plate-year { display: block; margin-top: .25rem; font-size: clamp(.9rem, 1.4vw, 1.2rem); letter-spacing: .12em; }

.routes {
  list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid #fff;
}
.routes li + li { border-left: 3px solid rgba(255, 255, 255, .35); }
.routes a {
  display: flex; align-items: center; gap: .9rem;
  padding: clamp(14px, 1.8vw, 20px) clamp(12px, 1.6vw, 22px);
  color: #fff; text-decoration: none;
  font: 600 clamp(1.35rem, 2.4vw, 2.1rem)/1.05 var(--sign);
  transition: color .3s var(--ease);
}
.routes li:first-child a { padding-left: 0; }
.routes a:hover > span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.routes a:hover .route-note { text-decoration: none; }
.routes a:focus-visible { box-shadow: 0 0 0 6px var(--yellow); outline-color: var(--ink); }
.route-note { display: block; font-size: max(.8rem, .55em); letter-spacing: .08em; text-transform: uppercase; color: #dce8f5; margin-top: .2em; }
.arrow {
  flex: none; width: 1.3em; height: 1.3em; fill: currentColor;
  transform: rotate(var(--turn, 0deg));
  transition: transform .45s var(--ease);
}
.routes a:hover .arrow, .routes a:focus-visible .arrow { transform: rotate(0deg) translateY(-2px); }
.routes a[aria-current="page"] { color: var(--yellow); }
.routes a[aria-current="page"] .route-note { color: var(--yellow); }

/* ---------- Page body ---------- */
.page { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.page-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.page-grid > aside { position: sticky; top: 24px; }

h1, h2, h3 { font-family: var(--sign); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin: 0 0 1rem; color: var(--blue); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.6rem 0 .6rem; color: var(--blue); }
h3 { font-size: 1.35rem; margin: 1.8rem 0 .4rem; }
.prose { max-width: 68ch; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.lead { font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.muted { color: var(--muted); }

figure { margin: 0 0 1.5rem; }
figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.photo { border: 4px solid #fff; border-radius: 10px; box-shadow: 0 10px 28px -14px rgba(8, 40, 75, .45); }
.photo-pair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }

/* Fact panel: a small sign */
.facts {
  margin: 0; background: var(--blue); color: #fff;
  border-radius: 10px; padding: 6px;
}
.facts-face { border: 3px solid #fff; border-radius: 7px; padding: 18px 20px 20px; }
.facts dt { font: 600 .85rem var(--sign); letter-spacing: .12em; text-transform: uppercase; color: #dce8f5; margin-top: 1rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .1rem 0 0; font: 600 1.6rem/1.1 var(--sign); }
.facts dd small { display: block; font: 400 1rem/1.4 var(--read); color: #fff; margin-top: .25rem; }
.facts a { color: #fff; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.facts a:hover { color: var(--yellow); }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 1rem; }
th, td { text-align: left; padding: .55rem .9rem .55rem 0; border-top: 1px solid var(--line); vertical-align: top; }
th { font: 600 .85rem var(--sign); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 0; }
td.num { white-space: nowrap; font-weight: 600; width: 1%; }

.note {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px;
  padding: .8rem 1rem; margin: 0 0 1.25rem; max-width: 68ch;
}
.note strong { font-family: var(--sign); font-size: 1.1rem; letter-spacing: .02em; }
.payment { background: var(--paper); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1rem; border: 1px solid var(--line); }
.payment p { margin: 0 0 .6rem; }
.payment p:last-child { margin: 0; }

/* ---------- Airfield: numbered routes ---------- */
.coords { font: 600 1.35rem/1.25 var(--sign); }
.route { margin-top: 2.4rem; }
.route h2 { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; max-width: 72ch; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: attr(data-step);
  justify-self: start; min-width: 2.2rem; text-align: center;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 5px;
  font: 700 1.15rem/1.4 var(--sign);
}
.map-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.map-links a { font-size: 1.15rem; font-weight: 600; }

/* Section exits beside the Information text */
.exits { margin-top: 16px; background: var(--blue); border-radius: 10px; padding: 6px; }
.exits-face { border: 3px solid #fff; border-radius: 7px; padding: 6px 16px; }
.exits ul { list-style: none; margin: 0; padding: 0; }
.exits li + li { border-top: 1px solid rgba(255, 255, 255, .3); }
.exits a { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: #fff; text-decoration: none; font: 600 1.3rem/1 var(--sign); }
.exits .arrow { width: 1.1em; height: 1.1em; }
.exits a:hover .arrow, .exits a:focus-visible .arrow { transform: rotate(0deg); }
.exits a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
h2[id] { scroll-margin-top: 24px; }

/* ---------- Results: one road, every year an exit ---------- */
.road { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.road::before {
  content: ""; position: absolute; left: calc(5.5rem / 2 - 5px); top: 0; bottom: 0; width: 10px;
  border-radius: 5px;
  background-image: linear-gradient(#fff 0 50%, transparent 50% 100%);
  background-size: 2px 22px; background-repeat: repeat-y; background-position: center;
  background-color: #3a4048;
}
.exit { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: center; padding: .45rem 0; }
.year {
  position: relative; z-index: 1;
  background: var(--blue); color: #fff; text-align: center;
  font: 700 1.45rem/1 var(--sign); padding: .55rem 0 .5rem;
  border-radius: 7px; box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px #fff;
}
.exit-body { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: baseline; background: var(--paper); border-radius: 7px; padding: .6rem 1rem; }
.exit-body a { font-weight: 600; }
.fmt { font: 600 .75rem var(--sign); letter-spacing: .1em; color: var(--muted); margin-left: .3rem; }
.exit.gap .year { background: var(--ground); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.exit.gap .exit-body { background: transparent; color: var(--muted); padding-block: .2rem; }
.exit.next .year { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 5px var(--ink); }
.exit.next .exit-body { background: var(--yellow); }
.exit.next .exit-body a { color: var(--ink); font-family: var(--sign); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.foot { background: var(--blue); color: #dce8f5; font: 600 1rem var(--sign); letter-spacing: .06em; text-transform: uppercase; }
.foot .wrap { padding-top: 22px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.foot a { color: #fff; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-grid > aside { position: static; }
  .photo-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sign-top { flex-direction: column; gap: 16px; }
  .routes { grid-template-columns: 1fr; }
  .routes li + li { border-left: 0; border-top: 2px solid rgba(255, 255, 255, .35); }
  .routes a, .routes li:first-child a { padding-left: 0; }
  .road::before { left: calc(4.5rem / 2 - 5px); }
  .exit { grid-template-columns: 4.5rem 1fr; gap: .8rem; }
    .year { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .sign, .foot { background: none; color: var(--ink); }
  .routes, .skip-link { display: none; }
}
