/* The heading face is Unbounded, the face the ed3 logo is drawn from. Its licence is in unbounded-ofl.txt. */
@font-face { font-family: "Unbounded"; src: url("/assets/unbounded.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --paper: #f5f6f9;
  --sheet: #ffffff;
  --ink: #0b1020;
  --soft: #565e72;
  --rule: #dcdfe8;
  --good: #0a7a55;
  --good-bg: #e2f4ec;
  --bad: #b3261e;
  --bad-bg: #fbe7e4;
  --wait: #7a5a00;
  --wait-bg: #fbf1d0;
  --link: #2230d6;
  --brand: #2b3cff;
  --display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020;
    --sheet: #131a30;
    --ink: #eceef5;
    --soft: #9aa2b8;
    --rule: #27304b;
    --good: #6fd9ad;
    --good-bg: #0f3326;
    --bad: #ff9d94;
    --bad-bg: #3d1a17;
    --wait: #ecd27a;
    --wait-bg: #3a2f10;
    --link: #9aa4ff;
    --brand: #3d4dff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
main, .top, .foot { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }
main { padding-top: 2.5rem; padding-bottom: 4rem; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.18; margin: 0 0 0.7rem; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h2 { font-size: 1.15rem; margin-top: 3rem; }
h3 { font: 600 1.05rem/1.3 var(--sans); margin: 1.75rem 0 0.6rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--soft); max-width: 40rem; }
.fine { font-size: 0.9rem; color: var(--soft); }
.code { font-family: var(--mono); font-size: 0.95em; letter-spacing: 0.04em; }
.wrap { overflow-wrap: anywhere; }
.crumb { font-size: 0.95rem; margin-bottom: 0.75rem; }
.crumb a::before { content: "← "; }
.tag { border: 1px solid currentColor; border-radius: 3px; padding: 0 0.35em; font-size: 0.85em; }

.sample {
  margin: 0;
  padding: 0.45rem 1.25rem;
  background: var(--wait-bg);
  color: var(--wait);
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.mark { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.9rem; }
.mark-name { display: block; line-height: 0; }
.logo { height: 1.55rem; width: auto; display: block; }
.logo-square { fill: var(--brand); }
.mark-line { font-size: 0.88rem; color: var(--soft); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: 0.95rem; }
.top nav a { color: inherit; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--rule); padding-top: 1.5rem; padding-bottom: 3rem; font-size: 0.9rem; color: var(--soft); }

.hero { padding: 1.5rem 0 0.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); max-width: 14ch; }
.checkbox { background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--brand); border-radius: 8px; padding: 1.4rem 1.5rem 0.9rem; margin-top: 1.5rem; }
.checkbox h2 { margin-top: 0; }
.checkbox p { color: var(--soft); max-width: 38rem; }
.check { margin-top: 1.1rem; }
.doors { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.doors a { display: block; height: 100%; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; color: inherit; text-decoration: none; }
.doors a:hover { border-color: var(--brand); }
.doors strong { display: block; margin-bottom: 0.3rem; }
.doors strong::after { content: " \2192"; color: var(--brand); }
.doors span { color: var(--soft); font-size: 0.95rem; }
.check label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.check input {
  flex: 1 1 15rem;
  min-width: 0;
  font: 1.5rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.check input:focus-visible { border-color: var(--brand); }
.check input::placeholder { color: var(--rule); }
button, .button {
  display: inline-block;
  font: 600 1rem/1.2 var(--sans);
  padding: 0.9rem 1.3rem;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-note { min-height: 1.5rem; margin-top: 0.6rem; color: var(--bad); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.25rem 0 0.4rem; }
.facts p { margin: 0 0 0.3rem; color: var(--soft); font-size: 0.95rem; }
.facts .figure { font: 500 1.7rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; justify-content: space-between; align-items: baseline; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.row-name { font-weight: 600; }
.row-meta { color: var(--soft); font-size: 0.92rem; }
.empty { color: var(--soft); }

.how { list-style: none; counter-reset: how; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.how li { counter-increment: how; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem 1.1rem; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: 0.7rem; background: var(--brand); color: #fff; font: 500 0.85rem/1 var(--display); }
.how strong { display: block; margin-bottom: 0.25rem; }
.plain ul, .prose ul { padding-left: 1.2rem; }
.plain li, .prose li { margin-bottom: 0.5rem; }

.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 2.5rem 1.5rem; }
.gallery a { display: block; text-align: center; color: inherit; text-decoration: none; }
.gallery img { width: 168px; height: 168px; max-width: 100%; object-fit: contain; transition: transform 0.18s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: translateY(-4px) scale(1.04); }
.gallery-name { display: block; font: 600 1.02rem/1.3 var(--sans); margin-top: 0.7rem; text-wrap: balance; }
.gallery a:hover .gallery-name { text-decoration: underline; text-underline-offset: 0.15em; }
.gallery-meta { display: block; font-size: 0.85rem; color: var(--soft); margin-top: 0.3rem; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.badge-head { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: center; }
.badge-head img { width: 220px; height: 220px; object-fit: contain; }
.meta { color: var(--soft); font-size: 0.95rem; }
.skills { margin: 0; border-top: 1px solid var(--rule); }
.skills > div { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.skills dt { font-weight: 600; display: grid; grid-template-columns: 2.4rem 1fr; }
.skills dt .code { color: var(--soft); font-weight: 400; }
.skills dd { margin: 0.25rem 0 0 2.4rem; color: var(--soft); font-size: 0.95rem; }
.skills > div:target { background: var(--wait-bg); }

.record { background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--brand); border-radius: 8px; overflow: hidden; }
.state { margin: 0; padding: 0.75rem 1.5rem; font-weight: 600; border-bottom: 1px solid var(--rule); }
.state-wait { background: var(--wait-bg); color: var(--wait); }
.state-good { background: var(--good-bg); color: var(--good); }
/* The ed3 ring appears only beside a result this browser has just checked for itself. */
.state-good::before { content: ""; display: inline-block; width: 1.2em; height: 1.2em; margin-right: 0.55em; vertical-align: -0.25em; background: currentColor; -webkit-mask: url("/assets/ring.svg") center / contain no-repeat; mask: url("/assets/ring.svg") center / contain no-repeat; }
.state-bad { background: var(--bad-bg); color: var(--bad); }
.record-body { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; padding: 2rem 1.5rem 1.5rem; }
.record-off .record-body { grid-template-columns: 1fr; }
.record-seal { width: 220px; height: 220px; object-fit: contain; }
.over { font-size: 0.9rem; color: var(--soft); margin-bottom: 0.3rem; }
.record h1 { margin-bottom: 1.1rem; }
.record-badge { font: 600 1.3rem/1.3 var(--sans); margin-bottom: 1.4rem; }
.record-badge a { color: inherit; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.9rem 1.5rem; margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.pairs dt { font-size: 0.85rem; color: var(--soft); }
.pairs dd { margin: 0.15rem 0 0; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: block; padding: 0.3rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: inherit; text-decoration: none; font-size: 0.92rem; }
.chips a:hover { border-color: var(--ink); }
.chips .code { color: var(--soft); }

.steps { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { padding: 0.65rem 0 0.65rem 2rem; border-bottom: 1px solid var(--rule); position: relative; color: var(--soft); }
.steps li::before { content: "·"; position: absolute; left: 0.5rem; font-weight: 700; }
.steps li[data-result="pass"] { color: var(--ink); }
.steps li[data-result="pass"]::before { content: "✓"; color: var(--good); }
.steps li[data-result="fail"] { color: var(--bad); font-weight: 600; }
.steps li[data-result="fail"]::before { content: "✕"; }
.steps li small { display: block; font-weight: 400; }

@media (max-width: 34rem) {
  .badge-head, .record-body { grid-template-columns: 1fr; gap: 1.2rem; }
  .badge-head img, .record-seal { width: 120px; height: 120px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .gallery img { width: 128px; height: 128px; }
  .skills dd { margin-left: 0; }
}
@media print {
  .top nav, .foot, .share, .sample { display: none; }
  body { background: #fff; }
}
