/* veriplex.org: one stylesheet, three fonts served from this site, no image but the marks.
   Verdigris (--vpx-accent) is for links and focus only; it is never a status colour. */
/* The Veriplex design tokens (the brand kit's tokens.css, inlined here: the census allows no imported stylesheet) */
:root {
  --vpx-verdigris-deep: #163F3D;  /* brand ink: mark + wordmark */
  --vpx-verdigris: #1F5E5B;       /* accent: seal ring, links, focus */
  --vpx-verdigris-light: #9CCBC2; /* accent on dark */
  --vpx-ink-text: #16201F;
  --vpx-muted: #4F6664;
  --vpx-paper: #F1F4F2;
  --vpx-stone: #E3E9E6;
  --vpx-rule: #CFD8D4;

  --vpx-bg: var(--vpx-paper);
  --vpx-surface: var(--vpx-stone);
  --vpx-brand: var(--vpx-verdigris-deep);
  --vpx-text: var(--vpx-ink-text);
  --vpx-text-muted: var(--vpx-muted);
  --vpx-accent: var(--vpx-verdigris);
  --vpx-border: var(--vpx-rule);

  --vpx-font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --vpx-font-text: "Newsreader", Georgia, serif;
  --vpx-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --vpx-radius-sm: 6px; --vpx-radius-md: 10px; --vpx-radius-lg: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --vpx-bg: #0F1F1E;
    --vpx-surface: #163F3D;
    --vpx-brand: var(--vpx-paper);
    --vpx-text: #E6ECE9;
    --vpx-text-muted: #A9BDB9;
    --vpx-accent: var(--vpx-verdigris-light);
    --vpx-border: #2A4A47;
  }
}

/* Self-hosted Latin subsets of the brand's three OFL faces; each licence text sits beside its file in fonts/. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-wght.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-opsz-wght.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-wght.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--vpx-bg);
  color: var(--vpx-text);
  font: 400 19px/1.55 var(--vpx-font-text);
}

/* Links and focus: the only non-logo use of verdigris */
a { color: var(--vpx-accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vpx-accent); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--vpx-bg); padding: 8px 16px; font-family: var(--vpx-font-display); z-index: 2; }
.skip:focus { top: 8px; }


header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  max-width: 1080px; margin: 0 auto; padding: 24px 16px;
  border-bottom: 1px solid var(--vpx-border);
}
header.site .brand { display: inline-block; line-height: 0; }
header.site .brand img { height: 38px; width: auto; display: block; }
nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
nav a {
  font: 500 16px/1.5 var(--vpx-font-display);
  color: var(--vpx-text); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
nav a:hover { border-bottom-color: var(--vpx-border); }
nav a[aria-current="page"] { border-bottom-color: var(--vpx-text); }

main { max-width: 72ch; margin: 0 auto; padding: 48px 16px 64px; }
h1, h2, h3 { font-family: var(--vpx-font-display); color: var(--vpx-text); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: 40px; margin: 0 0 24px; }
h2 { font-weight: 600; font-size: 24px; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--vpx-border); }
p, ul, ol, dl { margin: 0 0 16px; }
.lede { font-size: 22px; line-height: 1.5; }
code { font: 400 0.85em/1 var(--vpx-font-mono); background: var(--vpx-surface); padding: 2px 4px; border-radius: 4px; }

.notice {
  border: 1px solid var(--vpx-border); border-left: 4px solid var(--vpx-text);
  background: var(--vpx-surface); padding: 16px; margin-bottom: 32px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font: 400 16px/1.5 var(--vpx-font-display); }
caption { text-align: left; color: var(--vpx-text-muted); font-size: 14px; padding-bottom: 8px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--vpx-border); vertical-align: top; }
th { font-weight: 600; }
.empty { color: var(--vpx-text-muted); font-style: italic; }
td.empty { padding: 16px 8px; }

/* Status: neutral ink, an icon and a word. Never colour alone, never verdigris. */
dl.status dt { font: 600 17px/1.4 var(--vpx-font-display); margin-top: 16px; }
dl.status dd { margin: 4px 0 0 28px; }
.st { display: inline-block; width: 20px; }
.result { font: 600 16px/1 var(--vpx-font-display); color: var(--vpx-text); white-space: nowrap; }

.steps li, ul li { margin-bottom: 8px; }
ul.cta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
ul.cta a {
  display: inline-block; padding: 12px 24px;
  border: 1px solid var(--vpx-accent); border-radius: var(--vpx-radius-sm);
  font: 600 17px/1.2 var(--vpx-font-display); text-decoration: none;
}
ul.cta a:hover { text-decoration: underline; }

figure.strands { margin: 24px 0 32px; }
figure.strands svg { width: 100%; height: auto; display: block; }
figure.strands .ink { stroke: var(--vpx-text); }
figure.strands .ink .halo { stroke: var(--vpx-bg); stroke-width: 18px; }
figure.strands .lbl { fill: var(--vpx-text); font-family: var(--vpx-font-display); }
figure.strands .rule { stroke: var(--vpx-text); stroke-width: 2px; }
figcaption { color: var(--vpx-text-muted); font-size: 16px; margin-top: 8px; }

footer.site {
  max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px;
  border-top: 1px solid var(--vpx-border);
  color: var(--vpx-text-muted); font: 400 14px/1.5 var(--vpx-font-display);
}
footer.site p { margin: 0 0 8px; }

/* Footer navigation (secondary pages) */
footer.site nav { margin-bottom: 16px; }
footer.site nav a { font-size: 14px; color: var(--vpx-text); }

/* Who can join: category and role */
dl.roles dt { font: 600 17px/1.4 var(--vpx-font-display); margin-top: 16px; }
dl.roles dd { margin: 4px 0 0; }

/* v4: status line, home hero, status columns, the check page */
.status-line { font: 500 15px/1.4 var(--vpx-font-display); color: var(--vpx-text-muted); margin: -8px 0 32px; }
.hero { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; margin-bottom: 16px; }
.hero h1 { font-size: 48px; margin: 0 0 8px; grid-column: 1; }
.hero picture { grid-column: 2; grid-row: 1 / span 2; line-height: 0; }
.hero-mark { width: 120px; height: 120px; display: block; }
.hero-sub { font: 400 22px/1.45 var(--vpx-font-text); margin: 0; grid-column: 1; }
.hero .status-line, .hero .cta { grid-column: 1 / -1; }
.hero .status-line { margin: 16px 0 8px; }
ul.cta a.primary { border-width: 2px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.columns h2 { margin-top: 16px; }
ul.rows { list-style: none; padding: 0; margin: 0; }
ul.rows li { border-top: 1px solid var(--vpx-border); padding: 12px 0; }
.demo, .note { font-size: 16px; }
.demo { border: 1px solid var(--vpx-border); border-left: 4px solid var(--vpx-text); background: var(--vpx-surface); padding: 16px; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero picture { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 16px; }
  .hero-mark { width: 72px; height: 72px; }
  .hero h1 { font-size: 36px; }
  .columns { grid-template-columns: 1fr; gap: 0; }
}
code { overflow-wrap: anywhere; }

/* veriplex.org additions: the status table's landed commit, the custodian box, the footer contact */
td.sha, .sha { font: 400 14px/1.5 var(--vpx-font-mono); white-space: nowrap; }
.custodian { border: 1px solid var(--vpx-border); border-left: 4px solid var(--vpx-brand); padding: 16px 16px 0; margin: 0 0 24px; }
nav ul { row-gap: 4px; }
@media (max-width: 640px) {
  header.site { padding: 16px; }
  table.status thead { display: none; }
  table.status tr { display: block; border-bottom: 1px solid var(--vpx-border); padding: 8px 0; }
  table.status td { display: block; border: 0; padding: 2px 0; }
}
