/* Nightfall: one stylesheet. Ink on paper, the GraphLight yellow only as an accent. */
:root {
  --ink: #111111;
  --ink-2: #3d3b37;
  --muted: #6e6b64;
  --line: #e4e1d8;
  --paper: #fbfaf7;
  --card: #ffffff;
  --yellow: #ffe600;
  --red: #b42318;
  --red-bg: #fdf0ee;
  --amber-bg: #fff8d6;
  --green: #1a7f4b;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: inherit; text-decoration-color: #c9c5ba; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 0; }
h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 4px; }
p { margin: 0 0 12px; }
code, pre { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; }

/* top bar */
.top { display: flex; align-items: center; gap: 32px; padding: 14px 32px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.top nav { display: flex; gap: 6px; flex: 1; }
.top nav a { text-decoration: none; padding: 6px 12px; border-radius: 6px; color: var(--ink-2); font-size: 15px; }
.top nav a:hover { background: #f3f1ec; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; margin: 0; }

/* layout */
main { padding: 40px 32px 80px; }
.page { max-width: 1040px; margin: 0 auto; }
.page.narrow { max-width: 760px; }
.lead { color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.opt { font-weight: 400; color: var(--muted); }
input, select { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid #d6d2c7; border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
input::placeholder { color: #a19d93; }
button { font: inherit; cursor: pointer; }
.primary { background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 600; min-height: 44px; white-space: nowrap; }
.primary:hover { background: #2b2a27; }
.primary.wide { width: 100%; margin-top: 6px; }
.secondary { background: var(--card); border: 1px solid #d6d2c7; border-radius: 8px; padding: 8px 14px; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: #c9c5ba; text-underline-offset: 3px; font-size: 14px; }
.linkbtn.danger { color: var(--red); }
.error { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* screen a person */
.new { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 14px; }
.new h1 { font-size: 24px; }
.fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.fields.second { grid-template-columns: 1fr 2fr auto; align-items: end; }
.fields.second .primary { margin-bottom: 14px; padding: 11px 36px; }

/* lists */
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.listhead h2 { margin: 0; }
.listhead input { width: 280px; min-height: 38px; padding: 7px 12px; font-size: 15px; }
table.list { width: 100%; border-collapse: collapse; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.list td { padding: 13px 16px; border-bottom: 1px solid #f0eee8; vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list td a { font-weight: 600; text-decoration: none; }
.list td a:hover { text-decoration: underline; }
.list form { margin: 0; }
.status { font-size: 14px; }
.status.checking { color: var(--muted); }
.status.checking::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px #c9b800; margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
.status.bad { color: var(--red); }
@keyframes pulse { 50% { opacity: 0.3; } }
.empty { color: var(--muted); padding: 28px 0; }
.inline { display: flex; gap: 10px; margin: 8px 0 20px; }
.inline input { flex: 1; }
.inline select { width: auto; }

/* one screening */
.back { display: inline-block; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.meta { color: var(--muted); margin-top: -8px; }
.summary { font-size: 20px; font-weight: 600; margin: 24px 0; }
.notice { border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.notice.checking { background: var(--card); border: 1px solid var(--line); }
.notice.preview { background: var(--amber-bg); border: 1px solid #f0d86b; }
.notice.bad { background: var(--red-bg); color: var(--red); }
.cand { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.cand header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cand ul { margin: 0; padding-left: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tier { font-size: 13px; font-weight: 600; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.tier.linked { background: var(--ink); color: #fff; }
.tier.possible { background: var(--yellow); color: var(--ink); }
.tier.weak { background: #eeece6; color: var(--ink-2); }
.finding { border-top: 1px solid #f0eee8; margin-top: 16px; padding-top: 14px; }
.fhead { font-size: 14px; margin-bottom: 8px; }
blockquote { margin: 0 0 8px; padding: 2px 0 2px 14px; border-left: 3px solid var(--yellow); color: var(--ink-2); }
.src { font-size: 13px; color: var(--muted); }
.hits, .unknowns { padding-left: 18px; }
.unknowns li { color: var(--ink-2); margin-bottom: 4px; }
.ids { margin-top: 48px; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* keys and team */
.reveal { background: var(--amber-bg); border: 1px solid #f0d86b; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.copyrow { display: flex; align-items: center; gap: 10px; }
.copyrow code { flex: 1; background: var(--card); border: 1px solid #e8dfae; border-radius: 6px; padding: 9px 12px; word-break: break-all; font-size: 14px; }
.snippet { background: var(--ink); color: #f3f1ec; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; line-height: 1.6; }

/* sign-in */
body.plain { display: flex; min-height: 100vh; align-items: flex-start; justify-content: center; }
body.plain main { width: 100%; padding: 10vh 16px 40px; }
.card { max-width: 400px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px 28px; box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04); }
.cardmark { display: block; margin-bottom: 22px; }
.card h1 { font-size: 24px; }
.card p { color: var(--ink-2); }
.code { font-family: var(--mono); font-size: 22px; letter-spacing: 0.3em; text-align: center; }
.qr { display: flex; justify-content: center; margin: 16px 0 8px; }
.qr svg { width: 200px; height: 200px; }
.secret { word-break: break-all; background: #f3f1ec; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 10px 20px; padding: 12px 16px; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .who > span { display: none; }
  main { padding: 24px 16px 60px; }
  .new { padding: 20px 16px 6px; }
  .fields, .fields.second { grid-template-columns: 1fr; }
  .listhead { flex-direction: column; align-items: stretch; }
  .listhead input { width: 100%; }
  .list th:nth-child(2), .list td:nth-child(2) { display: none; }
  .cols { grid-template-columns: 1fr; }
  .inline { flex-direction: column; }
}
