/* The root site's front page only (index.html), loaded after site.css and /landing.css.
   What every front page shares — the hero's type, the doors (buttons), the section heads,
   the example answer and the claim marks — is landing.css's (web-shared/), which the corpus
   sites' own front pages load too; this file holds only what the root alone has: its
   centred hero and the corpus cards. Colours and --space-* are tokens.css's. Every rule
   here names a class only the front page uses (.front, .corpus-card, .corpus-actions ...),
   never a bare element: a rule for footer or header here would vanish from every other
   page, which is exactly what happened to the footer on the split (2026-11-13). */

/* --- the front page (index.html) ---------------------------------------- */

/* Two bands (2026-11-14): the hero, then the corpora. */

/* One centred column (2026-11-14): what this is, who may use it, the way in — and the
   three cards follow at once, so the first screen is the claim and the doors. The
   example answer, the study and the method live on each corpus's own front page now. */
.front .hero {
  justify-items: center;
  text-align: center;
}

/* The designer's tagline lockup above the headline, at its own proportions (922 × 248),
   centred like the text under it: the paragraph spans the column, so the block image
   centres itself in it (it sat at the left edge until 2026-11-18). Both pictures. */
.front .hero-lockup { margin: 0; }
.front .hero-lockup img {
  display: block;
  inline-size: min(100%, 20rem);
  block-size: auto;
  margin-inline: auto;
}

/* Wider than landing.css's 18ch: centred, the root's headline reads as one line pair. */
.front .hero h1 { max-inline-size: 22ch; }

/* Centred, so the doors row is too (its own rules are landing.css's). */
.front .hero .doors { justify-content: center; }

/* The corpora: one card each, as many to a row as fit at 18rem — narrow enough that the
   three sit side by side on a 1024px screen without a fixed column count, so a fourth
   corpus is still just a fourth card. A list, because they are peers and a screen reader
   should hear how many there are. */
.corpus-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.corpus-card {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  margin: 0;
  padding: var(--space-m);
  background: var(--card-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  /* The card's sentence is the design system's `reading-sm`. */
  font: var(--type-reading-sm);
  /* As a ratio, so the larger figures and the smaller note inherit a matching leading. */
  line-height: 1.625;
  /* The Danish compounds in the examples are long; never let one push the card.
     No automatic hyphenation: browsers' Danish rules broke "vejledninger" as
     "ve-jledninger". A card is wide enough that a word only breaks at all on a
     phone, and there an unhyphenated break is the honest one. */
  overflow-wrap: break-word;
  /* The containing block for the title link's ::after, which covers the card. */
  position: relative;
  transition: border-color 120ms ease;
}

/* A card's title: the design system's `title-3`. */
.corpus-card h3 { margin: 0; font: var(--type-title-3); letter-spacing: var(--tracking-title-3); }

/* Each card wears its corpus's mark and accent, and nothing else of its look (Jack,
   2026-11-18): the root is the master look's page. The build writes both in from the
   corpus's identity (pipeline/front_page.py dress_cards), so no rule here names a corpus.
   The accent is a strip along the card's top, inset so it follows the card's corners. */
.corpus-card { box-shadow: inset 0 4px 0 var(--card-accent); }
.corpus-card h3 { display: flex; align-items: center; gap: var(--space-s); }
.corpus-mark { display: inline-flex; flex: none; }
/* The mark beside the title at the corpus card's 32 px. */
.corpus-mark img { display: block; block-size: 2rem; inline-size: auto; }
.corpus-mark .corpus-mark__dark { display: none; }
:root[data-theme="dark"] .corpus-mark .corpus-mark__light { display: none; }
:root[data-theme="dark"] .corpus-mark .corpus-mark__dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .corpus-mark .corpus-mark__light { display: none; }
  :root:not([data-theme="light"]) .corpus-mark .corpus-mark__dark { display: block; }
}

/* The whole card opens the corpus's own front page (Jack, 2026-11-15). A link cannot hold
   the card's buttons — links do not nest — so the title is the one link, and its ::after
   stretches over the card; the buttons sit above it (.corpus-actions below), so they keep
   their own targets. A screen reader meets one link per card, named by the corpus. */
.corpus-card .corpus-link { color: inherit; text-decoration: none; }
.corpus-card .corpus-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.corpus-card:hover { border-color: var(--rule-strong); }
.corpus-card:hover .corpus-link { text-decoration: underline; text-underline-offset: 0.15em; }
.corpus-card:has(.corpus-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.corpus-card .corpus-link:focus-visible { outline: none; }
.corpus-card p { margin-block: 0 var(--space-s); }

/* What the corpus holds, in the interface face: these are the build's numbers,
   filled in from the artifact, and they read as figures rather than prose. */
.corpus-card .corpus-figures {
  margin-block: var(--space-xs) var(--space-s);
  padding-block-end: var(--space-s);
  border-block-end: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* The number in the reading serif, as the design system's corpus card sets its figures. */
.corpus-figures [data-corpus-claim] {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* The card's one line of detail, quieter than what the corpus is. */
.corpus-card .corpus-note {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Both doors at the foot of every card, level across a row whatever the prose
   above them runs to. */
.corpus-card .corpus-actions {
  /* Above the title link's card-covering ::after, so each button is its own target. */
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-s);
  margin-block: auto 0;
  padding-block-start: var(--space-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

/* The doors themselves are landing.css's (.door), the secondary's hover the sunken well there
   as on every secondary button. */
/* Each card's Ask in its corpus's accent (the master system v2's family cards), its label in
   --on-corpus: 6:1 or better on all three accents, both schemes (identity_contrast card_pairs). */
.corpus-actions .door--primary {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: var(--on-corpus);
}

/* How to ask for a text or a collection that is missing: under the cards, quiet. */
.corpus-request {
  margin-block: var(--space-m) 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.corpus-request a { color: var(--link); }

/* The law-coverage note under the law cards, the study steps and the method blocks were
   removed on 2026-11-14 (Jack: the root says what this is and links the texts). The study,
   the ranked sources, the refusals and the example answer are on each corpus's own front
   page, styled by landing.css (docs/corpus-sites.md). */
