/* Nexus Justice — holding page.
   No JavaScript. No web fonts. No third-party requests. No cookies.
   Deliberately not government-styled: no seals, no flag palette, no eagle-and-navy.
   Target: WCAG 2.2 AA. */

:root {
  --paper:      #faf7f2;
  --paper-card: #ffffff;
  --ink:        #1c1a17;
  --ink-soft:   #4a453e;
  --rule:       #e0d9cf;
  --accent:     #0f5f5c;
  --accent-bg:  #e8f0ef;
  --alert-ink:  #7a3d1f;
  --alert-bg:   #fbf0e8;
  --alert-rule: #dcbba4;
  --focus:      #0f5f5c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #141311;
    --paper-card: #1c1a19;
    --ink:        #ede9e2;
    --ink-soft:   #b0a99f;
    --rule:       #33302b;
    --accent:     #5fb8b3;
    --accent-bg:  #16302f;
    --alert-ink:  #e8b795;
    --alert-bg:   #2a1c13;
    --alert-rule: #5c3f2b;
    --focus:      #5fb8b3;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  /* tolerate the 1.4.12 text-spacing bookmarklet without clipping */
  overflow-wrap: break-word;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---- masthead ---- */

.brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 2.25rem; }
.brand svg { flex: none; width: 2.25rem; height: 2.25rem; }
.brand-name {
  font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 680;
  margin: 0 0 .75rem;
  text-wrap: balance;
}

.tagline {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  text-wrap: pretty;
}

/* ---- status ---- */

.status {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 1.5rem;
}

/* ---- sections ---- */

h2 {
  font-size: 1.0625rem;
  font-weight: 660;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2.75rem 0 .85rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1.1rem; }

ul { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--ink-soft); }

strong { font-weight: 650; }

/* ---- urgent notice ---- */

.notice {
  background: var(--alert-bg);
  border: 1px solid var(--alert-rule);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  color: var(--alert-ink);
}
.notice p { margin: 0; }
.notice p + p { margin-top: .6rem; }

/* ---- links ---- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

/* 2.5.8 Target Size (Minimum): standalone links get a 24px+ hit area.
   Inline links in prose fall under the inline exception. */
.tap {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .2rem .1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- language switch ---- */

.lang {
  margin-bottom: 2rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}

/* ---- footer ---- */

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--ink-soft);
}
footer p { margin: 0 0 .75rem; }

/* 1.4.10 Reflow: usable down to 320px with no horizontal scroll */
@media (max-width: 26rem) {
  .wrap { padding: 2rem 1rem 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-thickness 80ms ease; }
}

/* Brand mark colours live here, not as inline attributes, so the
   Content-Security-Policy can stay style-src 'self' with no unsafe-inline. */
.brand svg .plate { fill: var(--accent); }
.brand svg .glyph { fill: none; stroke: var(--paper); stroke-width: 2.1; stroke-linecap: round; }
.brand svg .dot   { fill: var(--paper); }

/* Boundary caution beside any contact affordance. Not decorative: it is the
   only thing standing between a public address and a stranger emailing their
   discovery packet to a pre-entity, uninsured, unprivileged inbox. */
.caution {
  background: var(--alert-bg);
  border-left: 4px solid var(--alert-rule);
  color: var(--alert-ink);
  padding: .8rem 1rem;
  border-radius: 4px;
  font-size: .9375rem;
}
