/* ============================================================
   WardLex 2050 — Design system
   Chancery serif · precision sans · evidence mono
   Deep ink glass, hairline structure, champagne restraint.
   ============================================================ */

:root {
  /* Ink & glass */
  --void:          #05060a;
  --bg:            #07080d;
  --bg-grain:      #0a0c12;
  --surface:       rgba(255,255,255,0.022);
  --surface-2:     rgba(255,255,255,0.038);
  --surface-3:     rgba(255,255,255,0.06);
  --glass:         rgba(13,15,23,0.72);

  /* Hairlines */
  --border:        rgba(255,255,255,0.055);
  --border-bright: rgba(255,255,255,0.12);
  --border-gold:   rgba(201,169,98,0.28);

  /* Ivory text scale */
  --text:          #ece9e1;
  --text-2:        #a9a698;
  --text-3:        #6c6a5f;

  /* Chancery palette */
  --gold:          #c9a962;
  --gold-bright:   #e2c47e;
  --gold-soft:     rgba(201,169,98,0.35);
  --cyan:          #8fd4de;
  --cyan-soft:     rgba(143,212,222,0.3);
  --green:         #8fce9f;
  --red:           #e07a70;
  --amber:         #e0aa5e;
  --violet:        #b3a1e0;

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Sora', -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', 'SF Mono', monospace;

  /* Depth */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 2px 6px rgba(0,0,0,.5), 0 20px 60px rgba(0,0,0,.5);
  --glow-gold: 0 0 0 1px var(--border-gold), 0 4px 30px rgba(201,169,98,.10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(201,169,98,0.05), transparent 55%),
    radial-gradient(900px 600px at -10% 110%, rgba(143,212,222,0.035), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201,169,98,0.25); color: var(--text); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.09); border-radius: 4px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.005em; }

.mono { font-family: var(--mono); }

a { color: var(--cyan); text-decoration: none; }

input, textarea, select, button { font-family: inherit; }

/* DROP-DOWN LISTS, READABLE. Found 13 October 2026 on Windows: the open
   list of a drop-down (the jurisdiction above all — seventy countries)
   was drawn white, with the page's pale text on it, so the countries
   could hardly be read. Windows draws the open list itself and takes
   its colours from the options, not from the page; the options are
   now given WardLex's dark ground and light text outright. */
select { color-scheme: dark; }
select option, select optgroup { background-color: #12151c; color: #ece9e1; }
select optgroup { color: #c9a962; font-style: normal; font-weight: 600; }
select option:checked { background-color: #2b2618; color: #f3e6c4; }
select option:disabled { color: #77736a; }

/* Focus discipline — visible, never garish */
:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 2px; }

/* ===========================================================
   The hidden attribute has to actually hide.

   The browser's own rule for [hidden] is display:none, but it
   lives in the user-agent stylesheet, so ANY rule in this folder
   that sets a display on a class beats it — and there are three
   hundred of those. The result is an element the code believes
   it has hidden sitting on screen, fully clickable.

   It was not theoretical. On a workstation working alone, the
   case brain panel hid its action row because none of those
   buttons can do anything without a shared case file; .br-actions
   set display:flex, so all four stayed visible — including
   "Erase everything". A mutation test found it; a reviewer on a
   local install would have found it the hard way.

   One rule, applied once, for every panel in the product.
   =========================================================== */
[hidden] { display: none !important; }
