/* Nova brand system v1 (2026-05-26), as published in the Nova repository at
   docs/design/Nova Brand _standalone_.html.

   This is deliberately NOT The Bug Report's stylesheet. Nova is a different
   product with a brand doc that refuses, in its own words, "purple-pink
   dreamscapes". Paper and ink, one warm accent, rule-work borrowed from
   standards-body publications.

   The one rule that governs everything below: the flare is a SIGNAL colour,
   not a brand colour. It marks a fact, a status, or a single irreversible
   action. It is never a fill behind a paragraph. */

:root {
  --paper:      #ECE8DF;
  --paper-2:    #E3DED1;
  --ink:        #111114;
  --ink-2:      #2A2C30;
  --ink-mute:   #6E6F73;
  --slate:      #3C4756;
  --nova:       #E2502B;
  --nova-deep:  #B83A18;
  --ok:         #4A6B3A;
  --rule:       #CAC3B2;
  --rule-soft:  #DAD3C2;

  /* IBM Plex by stack, never by download. The brand doc is explicit: "If we
     tell you the system won't sell your uploads, the marketing site won't ship
     Google Fonts." Anyone who has Plex installed gets Plex; everyone else
     lands on a system face. No webfont request leaves this page. */
  --sans:  "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "IBM Plex Serif", ui-serif, Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;

  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.625;
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* --- Skip link ---------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

/* --- Links -------------------------------------------------------------- */

a { color: var(--slate); }
a:hover { color: var(--nova-deep); }

/* Focus is never left to the browser default: on paper, the UA ring is often
   a thin blue that disappears against --rule. */
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--nova-deep);
  outline-offset: 3px;
}

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark img { display: block; width: 28px; height: 28px; }
.wordmark:hover { color: var(--ink); }

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* --- Section scaffolding ------------------------------------------------ */

section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--rule-soft); }

/* The eyebrow encodes what KIND of block follows -- specification, procedure,
   register. It is not decoration and it is not a counter: nothing on this page
   is a numbered sequence, so nothing is numbered. */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1, h2, h3 { font-weight: 600; text-wrap: balance; }

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p { max-width: var(--measure); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
}

/* Serif italic is reserved for editorial moments -- the tagline and nothing
   else on the page. The brand doc's word for how often to use it: "Sparingly." */
.tagline {
  max-width: 34ch;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: var(--slate);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.72rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

/* --nova-deep rather than --nova: white on the flare is 3.88:1, which fails AA
   for a button label, while white on the deep flare is 5.74:1. The flare stays
   for marks and large display type where 4.7:1 is enough. */
.btn--primary {
  background: var(--nova-deep);
  border-color: var(--nova-deep);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- Hero --------------------------------------------------------------- */

.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
}

.hero-glyph { justify-self: center; width: min(15rem, 60%); height: auto; }

/* --- Three facts -------------------------------------------------------- */

.facts {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 46rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
.facts > div { padding: 1.5rem; background: var(--paper); }
.facts dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nova-deep);
}
.facts dd { margin: 0.5rem 0 0; color: var(--ink-2); }

/* --- Register: the signature block -------------------------------------- */
/* An archival catalogue entry. Hairline rules, tabular figures, monospace
   values, label left and value right -- the shelf the brand doc names
   (standards-body publication, archival catalogue, RFC rule-work). This is the
   one thing on the page meant to be remembered, so everything else stays quiet. */

.register {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.register > div {
  display: grid;
  gap: 0.15rem 2rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) {
  .register > div { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
}
.register dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.register dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.register .flare { color: var(--nova-deep); font-weight: 500; }

/* --- Disclosure lists (questions, FAQ) ---------------------------------- */
/* <details> rather than a hover tooltip: this has to work on a touchscreen, on
   a keyboard, and in a screen reader, and a :hover popover manages none of the
   three. */

.qa { border-top: 1px solid var(--rule); max-width: var(--measure); }

.qa details { border-bottom: 1px solid var(--rule); }

.qa summary {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding-block: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }

/* The marker is a typographic sign, not an icon font or an image. */
.qa summary::before {
  content: "+";
  flex: none;
  width: 1ch;
  font-family: var(--mono);
  color: var(--nova-deep);
}
.qa details[open] > summary::before { content: "\2212"; }

.qa summary:hover { color: var(--nova-deep); }

.qa .answer {
  padding: 0 0 1.1rem 1.9rem;
  color: var(--ink-2);
}
.qa .answer > :first-child { margin-top: 0; }
.qa .answer > :last-child { margin-bottom: 0; }
.qa .answer p { max-width: 62ch; }

/* Field notes inside an answer: the concrete numbers an applicant needs. */
.qa table {
  width: 100%;
  margin-top: 0.9rem;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.qa th, .qa td {
  padding: 0.4rem 0.9rem 0.4rem 0;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
.qa th { color: var(--ink-mute); font-weight: 500; }

.scroll-x { overflow-x: auto; }

/* --- Callout ------------------------------------------------------------ */

.note {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--paper-2);
  border-left: 3px solid var(--nova-deep);
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note strong { font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
}

/* --- Upload ------------------------------------------------------------- */

.uploader {
  margin: 2rem 0 0;
  padding: 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.spec-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* --- Draft markers ------------------------------------------------------ */
/* The terms page ships before its open decisions are made. Rather than invent
   plausible-looking legal values, the unresolved ones are marked in place so
   the document cannot be mistaken for one that is in force. */

.draft {
  max-width: var(--measure);
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper-2);
  border: 2px solid var(--nova-deep);
}
.draft > :last-child { margin-bottom: 0; }

.draft-flag {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nova-deep);
}

/* Ink on the flare is 4.86:1; white on it is 3.88:1 and would fail. */
.decide {
  padding: 0.1em 0.4em;
  background: var(--nova);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
}

.decide-note {
  color: var(--ink-mute);
  font-size: 0.92rem;
}

main ul { max-width: var(--measure); }
main li { margin-bottom: 0.4rem; }

/* --- Colophon ----------------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.colophon a { color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
