/* IRONPACE website.
   One dark look, from the brand pack: iron black, chalk white, steel grey and track red.
   Pantheon gold is only for the Pantheon and the Paragon. */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* Layout: one 1160px column. The home page is a stack of full-width bands; every other page is a single reading column. */
:root {
  color-scheme: dark;
  --iron: #111111;      /* page */
  --plate: #1A1A1A;     /* raised panels and bands */
  --line: #2E2E2E;      /* rules and lane lines */
  --chalk: #F5F1E8;     /* headings and main text */
  --silver: #B9BCC2;    /* running text */
  --steel: #8A8F98;     /* labels and small print */
  --red: #B64A39;       /* the mark, buttons, step rules */
  --red-text: #DE6A55;  /* links and small accents on black */
  --gold: #C9A227;      /* the Pantheon and the Paragon only */
  --todo: #3A3115;      /* details still to fill in before launch */
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wide: 1160px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--iron);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
p, ul, ol, dl, dd, table, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
a { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--chalk); }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--red); color: var(--chalk); }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  background: var(--chalk); color: var(--iron);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* The brand's forward lean: Oswald capitals, skewed 7 degrees from the baseline. */
.lean {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  transform: skewX(-7deg);
  transform-origin: 0 100%;
  max-width: calc(100% - .5em);
}

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; }
.brand:hover { color: var(--chalk); }
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__word {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: .06em;
  transform: skewX(-9deg);
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--silver); text-decoration: none; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--chalk);
  text-decoration: underline; text-decoration-color: var(--red-text); text-decoration-thickness: 2px; text-underline-offset: .45em;
}

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 8px 56px; }
.hero__arcs { display: block; width: 54%; max-width: 280px; height: auto; margin-left: auto; margin-right: -8px; }
.hero__in { position: relative; display: grid; }
.hero__copy { container-type: inline-size; display: grid; gap: 22px; }
/* "Strong enough" is the widest line, about 7.7em, so the size follows the column width */
.hero__title { font-size: min(104px, 12.4cqi); line-height: .96; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--silver); max-width: 44ch; }
@media (min-width: 900px) {
  .hero { padding-block: 104px 112px; }
  .hero__arcs { position: absolute; top: 0; right: -2%; width: 36vw; max-width: 500px; margin: 0; }
  .hero__in { grid-template-columns: minmax(0, 1fr) 34%; }
  .hero__copy { gap: 30px; }
}
.soon {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 13px;
  font-size: 15px; font-weight: 600;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-text); }

/* ---------- home: bands ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.band--plate { background: var(--plate); }
.band__head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1; }
.h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; }
.intro { color: var(--silver); font-size: 18px; }
.more { font-weight: 600; }

/* The eleven tests, laid out like lanes */
.tests { display: grid; gap: 40px; }
@media (min-width: 900px) { .tests { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; } }
.group__name { font-size: 15px; font-weight: 600; color: var(--steel); margin-bottom: 8px; }
.lanes { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.lane {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: center;
  padding-block: 12px; border-top: 1px solid var(--line);
}
.lane img { width: 44px; height: 34px; object-fit: contain; grid-row: span 2; }
.lane__name { font-weight: 600; }
.lane__std { color: var(--silver); font-size: 15px; line-height: 1.4; }
@media (min-width: 600px) {
  .lane { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .lane img { grid-row: auto; }
  .lane__std { text-align: right; }
}
.note { margin-top: 16px; color: var(--steel); font-size: 15px; }

/* Brand pictograms, tinted with a mask so they can take the chalk or gold colour */
.icon { width: 52px; height: 52px; flex: none; background: var(--chalk); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.icon--gold { background: var(--gold); }
.icon--xl { width: clamp(88px, 12vw, 136px); height: clamp(88px, 12vw, 136px); }
.icon--open { -webkit-mask-image: url("../img/icons/open.png"); mask-image: url("../img/icons/open.png"); }
.icon--pantheon { -webkit-mask-image: url("../img/icons/pantheon.png"); mask-image: url("../img/icons/pantheon.png"); }
.icon--paragon { -webkit-mask-image: url("../img/icons/paragon.png"); mask-image: url("../img/icons/paragon.png"); }

/* The two boards */
.boards { display: grid; gap: 20px; }
@media (min-width: 760px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board {
  display: grid; gap: 14px; align-content: start;
  background: var(--plate); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(22px, 3vw, 32px);
}
.board--gold { border-color: var(--gold); }
.board__title { font-size: clamp(26px, 3vw, 32px); line-height: 1; }
.board--gold .board__title { color: var(--gold); }
.board p { color: var(--silver); }
.board .small { color: var(--steel); font-size: 15px; }

/* Categories */
.cats { display: grid; gap: 36px; }
@media (min-width: 900px) { .cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 15px; font-weight: 600; color: var(--steel); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
th { font-size: 14px; font-weight: 600; color: var(--steel); }
td { font-size: 16px; }

/* The Ultimate */
.ultimate { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .ultimate { grid-template-columns: auto minmax(0, 1fr); gap: 44px; } }
.ultimate__text { display: grid; gap: 14px; max-width: 60ch; }
.ultimate__text p { color: var(--silver); font-size: 18px; }
.ultimate__text .crown { color: var(--chalk); font-weight: 600; }

/* How a verified test works: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--red); counter-increment: step; }
.step::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--red-text); }
.step h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.step p { color: var(--silver); font-size: 16px; }
.after { margin-top: 28px; color: var(--steel); font-size: 15px; }

/* Testers and test centres */
.join { display: grid; gap: 44px; }
@media (min-width: 900px) { .join { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.join__col { display: grid; gap: 14px; align-content: start; }
.join__col > p { color: var(--silver); }
.join__col .label { color: var(--chalk); font-weight: 600; }
.ticks { padding-left: 1.15em; display: grid; gap: 6px; color: var(--silver); }
.ticks li::marker { color: var(--red-text); }

.end { display: grid; gap: 14px; max-width: 60ch; }
.end p { color: var(--silver); font-size: 18px; }

/* ---------- footer ---------- */
.foot { padding-block: 48px 56px; font-size: 15px; }
.foot__in { display: grid; gap: 32px; }
.foot__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.foot__nav div { display: grid; gap: 8px; align-content: start; }
.foot__h { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--steel); }
.foot__nav a { color: var(--chalk); text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__small { display: grid; gap: 6px; font-size: 14px; color: var(--steel); }
.brand--small .brand__mark { width: 38px; }
.brand--small .brand__word { font-size: 20px; }

/* ---------- reading pages ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc__in { max-width: var(--read); }
.doc__head { display: grid; gap: 12px; margin-bottom: 28px; }
.doc__title { font-size: clamp(40px, 7vw, 72px); line-height: .98; }
.meta { color: var(--steel); font-size: 15px; }
.lede { color: var(--silver); font-size: 19px; line-height: 1.55; }
.draft {
  border: 1px dashed var(--steel); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 32px;
  color: var(--silver); font-size: 15px;
}
.draft strong { color: var(--chalk); }
.toc { border-block: 1px solid var(--line); padding-block: 16px; margin-bottom: 8px; }
.toc h2 { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--steel); margin-bottom: 8px; }
.toc ol { padding-left: 1.4em; columns: 2 220px; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; padding-block: 2px; color: var(--steel); }
.toc a { color: var(--chalk); text-decoration: none; }
.toc a:hover { color: var(--red-text); text-decoration: underline; }

.prose { color: var(--silver); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.05;
  text-transform: uppercase; color: var(--chalk);
  transform: skewX(-7deg); transform-origin: 0 100%; max-width: calc(100% - .5em);
  margin-top: 2.2em; scroll-margin-top: 24px;
}
.prose h3 { font-size: 18px; font-weight: 600; color: var(--chalk); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: .45em; }
.prose li::marker { color: var(--red-text); }
.prose strong { color: var(--chalk); font-weight: 600; }
.prose td { color: var(--silver); font-size: 15px; }
.prose td:first-child { color: var(--chalk); }
.prose .steps-list { counter-reset: none; }

/* One lift's standard */
.lift { border-top: 1px solid var(--line); padding-top: 18px; }
.prose .lift { margin-top: 22px; }
.lift h3 { margin: 0 0 10px; }
.lift dl { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 16px; }
.lift dt { color: var(--steel); font-size: 15px; font-weight: 600; }
.lift dd { color: var(--silver); }
@media (max-width: 520px) {
  .lift dl { grid-template-columns: 1fr; gap: 2px; }
  .lift dd { margin-bottom: 8px; }
}

/* Three-column tables read as stacked entries on a phone */
@media (max-width: 600px) {
  table.fold thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.fold, table.fold tbody, table.fold tr, table.fold td { display: block; }
  table.fold tr { padding-block: 14px; border-bottom: 1px solid var(--line); }
  table.fold tr:first-child { border-top: 1px solid var(--line); }
  table.fold td { border: 0; padding: 0; }
  table.fold td:first-child { font-weight: 600; margin-bottom: 8px; }
  table.fold td[data-label] { margin-top: 6px; }
  table.fold td[data-label]::before { content: attr(data-label) ": "; color: var(--steel); font-weight: 600; }
}

.faq h3 { margin-top: 1.6em; }

.todo { background: var(--todo); color: var(--chalk); border-radius: 4px; padding: 0 .3em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  background: var(--red); color: var(--chalk);
  font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--red-text); color: var(--iron); }
.stack { display: grid; gap: 18px; justify-items: start; }

@media print {
  body { background: #fff; color: #000; }
  .top, .foot, .toc, .skip, .draft { display: none; }
  .prose, .prose td, .prose td:first-child, .prose h2, .prose h3, .prose strong, .lede, .meta { color: #000; }
  .prose h2 { transform: none; }
  a { color: #000; }
}
