/* The /brief/ directory page (public/brief/index.html, generated by
   scripts/build-public-brief-index.js). Static, so it cannot read the app's
   tokens.css: these mirror DESIGN.md's light and dark sets by hand, and the
   page follows the visitor's system theme. */
:root {
  --bg: #F8F7F3; --surface: #F0EEE7; --surface-hover: #E8E5DB; --border: #DDD8CC;
  --ink: #16222F; --ink-subtle: #33414F; --muted: #5B6572; --calm: #2D5170;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1219; --surface: #141B24; --surface-hover: #1C242F; --border: #27303C;
    --ink: #F0EDE5; --ink-subtle: #C7C3B8; --muted: #8B9099; --calm: #7EA2C4;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 15px; line-height: 1.55;
}
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--calm); outline-offset: 2px; }

.masthead, main, footer { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.dot { width: 9px; height: 9px; border-radius: 9999px; background: var(--calm); }
.masthead-link { font-size: 13px; font-weight: 500; color: var(--ink-subtle); }

main { padding-top: 40px; padding-bottom: 48px; }
.eyebrow {
  margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
h1 {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em;
}
.lede { margin: 0 0 32px; max-width: 600px; color: var(--ink-subtle); }

.search { margin: 0 0 32px; }
.search label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-subtle); }
.search input {
  width: 100%; max-width: 420px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.search-status { margin: 8px 0 0; min-height: 1.55em; font-size: 13px; color: var(--muted); }
.search-status:empty { margin: 0; min-height: 0; }

section { margin: 0 0 32px; }
h2 {
  margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
li a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
li a:hover .role { text-decoration: underline; text-underline-offset: 3px; }
.role { font-size: 16px; font-weight: 600; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; align-self: baseline; }
.summary { grid-column: 1 / -1; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink-subtle); }

.missing {
  margin: 48px 0 0; padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
}
.missing h2 {
  margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.missing p { margin: 0 0 16px; color: var(--ink-subtle); }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 4px; background: var(--ink);
  color: var(--bg); font-weight: 500; text-decoration: none;
}

footer { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  li a { grid-template-columns: 1fr; }
  .meta { white-space: normal; }
}
