/* Fonts: self-hosted latin subsets (SIL Open Font License), so the page makes no third-party requests. */
@font-face{ font-family:"Public Sans"; font-style:normal; font-weight:400 700; font-display:swap; src:url(/fonts/public-sans-latin.woff2) format("woff2"); }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face{ font-family:"Spectral"; font-style:normal; font-weight:600; font-display:swap; src:url(/fonts/spectral-600-latin.woff2) format("woff2"); }
@font-face{ font-family:"Spectral"; font-style:italic; font-weight:500; font-display:swap; src:url(/fonts/spectral-500-italic-latin.woff2) format("woff2"); }

/* Layout: one narrow column. The plain sign-in card is the thesis; rulings stream beneath it like an audit log; the notice of decision and the receipts follow. */
:root{
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); color-scheme:light;
  --paper:#F5F6F8; --card:#FFFFFF; --ink:#15171C; --muted:#5A606D; --line:#DCE0E7;
  --check:#2F5BEA; --check-soft:#E7EDFF; --amber:#9A6200; --amber-soft:#FBF1DC;
  --font-ui:"Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-letter:"Spectral", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --paper:#0F1115; --card:#171A21; --ink:#E9ECF2; --muted:#9AA1AF; --line:#2A2F3A;
  --check:#7B95FF; --check-soft:#1E2640; --amber:#E2B35A; --amber-soft:#2A2214; color-scheme:dark } }
:root[data-theme="dark"]{
  --paper:#0F1115; --card:#171A21; --ink:#E9ECF2; --muted:#9AA1AF; --line:#2A2F3A;
  --check:#7B95FF; --check-soft:#1E2640; --amber:#E2B35A; --amber-soft:#2A2214; color-scheme:dark }

*,*::before,*::after{ box-sizing:border-box; }
img{ max-width:100%; }
[hidden]{ display:none !important; }

body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-ui); font-size:15px; line-height:1.55;
  padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px)); padding-block:0; }
.wrap{ max-width:620px; margin:0 auto; padding-block:40px 64px; display:flex; flex-direction:column; gap:28px; }
a{ color:var(--check); }
a:focus-visible, button:focus-visible, input:focus-visible{ outline:2px solid var(--check); outline-offset:3px; border-radius:4px; }

.masthead{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.domain{ font-family:var(--font-mono); font-size:13px; color:var(--muted); letter-spacing:.02em; }
.intro{ display:flex; flex-direction:column; gap:10px; }
.lede{ font-size:clamp(26px, 5vw, 34px); line-height:1.15; font-weight:700; letter-spacing:-.015em; text-wrap:balance; margin:0; max-width:22ch; }
.sub{ margin:0; color:var(--muted); max-width:52ch; }

/* The sign-in card: deliberately ordinary */
.signin{ background:var(--card); border:1px solid var(--line); border-radius:10px; padding:28px; display:flex; flex-direction:column; gap:18px; max-width:380px; width:100%; }
.signin h2{ margin:0; font-size:20px; font-weight:600; }
.signin p{ margin:0; color:var(--muted); font-size:14px; }
.box{ display:flex; align-items:center; gap:10px; font-size:15px; cursor:pointer; user-select:none; width:fit-content; }
.box input{ width:18px; height:18px; margin:0; accent-color:var(--check); cursor:pointer; }
.box input[aria-disabled="true"]{ cursor:wait; }
.fine{ font-size:12.5px; color:var(--muted); margin-top:-10px; }
.btn{ font:inherit; font-weight:600; font-size:15px; border:0; border-radius:7px; padding:11px 16px; background:var(--check); color:var(--card); cursor:pointer; }
.btn:disabled{ opacity:.5; cursor:wait; }
.btn.ghost{ background:transparent; color:var(--check); border:1px solid var(--line); }
.status{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted); min-height:1.5em; }
.notreal{ font-size:12px; color:var(--muted); border-top:1px dashed var(--line); padding-top:12px; }
.unchecking{ animation:shake .5s ease-in-out 1; }
@keyframes shake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }

.twist{ background:var(--amber-soft); color:var(--ink); border-radius:8px; padding:12px 14px; font-size:14px; max-width:380px; }
.twist b{ color:var(--amber); }

/* Docket */
.docket{ display:flex; flex-direction:column; border-top:1px solid var(--line); }
.docket-head{ display:flex; justify-content:space-between; gap:12px; font-family:var(--font-mono); font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding-block:10px; }
.ruling{ display:grid; grid-template-columns:88px 1fr; gap:4px 16px; padding-block:16px; border-bottom:1px solid var(--line); animation:in .35s ease-out both; }
@keyframes in{ from{ opacity:.0; transform:translateY(6px) } to{ opacity:1; transform:none } }
.time{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; padding-top:2px; }
.rbody{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.rtop{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.who{ font-weight:600; }
.chip{ font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:2px 8px; border-radius:999px; }
.chip.limit{ background:var(--amber-soft); color:var(--amber); }
.chip.over{ background:var(--ink); color:var(--card); }
.chip.none{ border:1px solid var(--line); color:var(--muted); }
.say{ margin:0; max-width:56ch; }
.evidence{ font-family:var(--font-mono); font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.evidence a{ color:var(--muted); }

/* Notice of decision */
.notice{ background:var(--card); border:1px solid var(--ink); border-radius:2px; padding:28px; display:flex; flex-direction:column; gap:14px; position:relative; animation:in .45s ease-out both; }
.notice .kicker{ font-family:var(--font-mono); font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.notice h3{ font-family:var(--font-letter); font-weight:600; font-size:clamp(24px, 4.5vw, 30px); line-height:1.15; margin:0; text-wrap:balance; }
.notice p{ margin:0; max-width:56ch; }
.notice dl{ display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:4px 0 0; font-size:14px; }
.notice dt{ color:var(--muted); }
.notice dd{ margin:0; font-weight:600; }
.stamp{ position:absolute; top:22px; right:22px; transform:rotate(-8deg); border:2.5px solid var(--check); color:var(--check); font-weight:700; letter-spacing:.14em; font-size:15px; padding:5px 10px; border-radius:4px; opacity:.85; }
.sig{ font-family:var(--font-letter); font-style:italic; color:var(--muted); }
.actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Receipts */
section h2{ font-size:18px; margin:0 0 4px; }
.kicker2{ margin:0 0 14px; color:var(--muted); font-size:14px; max-width:56ch; }
.tablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:8px; background:var(--card); }
table{ border-collapse:collapse; width:100%; min-width:560px; font-size:13.5px; }
th, td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
th{ font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; }
tr:last-child td{ border-bottom:0; }
td.num{ font-family:var(--font-mono); font-size:12.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.caption{ font-size:12.5px; color:var(--muted); margin:10px 0 0; max-width:60ch; }
.sources{ font-size:13px; color:var(--muted); padding-left:18px; margin:8px 0 0; display:flex; flex-direction:column; gap:4px; }
footer{ border-top:1px solid var(--line); padding-top:18px; font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:6px; }
footer a{ color:var(--muted); }

@media (max-width:480px){
  .ruling{ grid-template-columns:1fr; }
  .signin{ padding:22px; }
  .stamp{ position:static; width:fit-content; }

  /* Receipts become one card per site instead of a table that scrolls sideways */
  .tablewrap{ overflow:visible; border:0; background:transparent; }
  table, tbody, tr, td{ display:block; min-width:0; }
  table{ font-size:14px; }
  thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  tbody{ display:flex; flex-direction:column; gap:10px; }
  tr{ background:var(--card); border:1px solid var(--line); border-radius:8px; padding:6px 14px; }
  td{ display:grid; grid-template-columns:96px 1fr; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); }
  tr td:last-child{ border-bottom:0; }
  td::before{ content:attr(data-label); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; font-family:var(--font-ui); padding-top:2px; }
  td:first-child{ font-weight:600; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* 404 page */
.lost{ max-width:560px; margin:0 auto; padding-block:72px; display:flex; flex-direction:column; gap:12px; }
.lost code{ font-family:var(--font-mono); color:var(--muted); font-size:13px; }
.lost h1{ margin:0; font-size:28px; line-height:1.2; }
.lost p{ margin:0; color:var(--muted); }

/* Generated receipts: the plain answer, the request link, and the per-site pages */
.answer{ margin:0 0 12px; max-width:60ch; }
.intro .answer{ margin:0; font-size:16px; }
.more{ font-size:13.5px; margin:10px 0 0; }
a.domain{ text-decoration:none; }

/* Request form */
.field{ display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; }
.field input, .field textarea{ font:inherit; font-weight:400; font-size:15px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:7px; padding:10px 12px; width:100%; }
.field textarea{ resize:vertical; }
.field .opt{ font-weight:400; color:var(--muted); font-size:12.5px; }
.challenge{ min-height:65px; }
