:root {
  --bg: #0c0d10;
  --panel: #14161b;
  --panel-2: #1b1e25;
  --line: #2a2e38;
  --ink: #ecebe6;
  --muted: #9a9ca5;
  --amber: #f2b441;
  --amber-ink: #1b1405;
  --green: #5fd49a;
  --red: #ff7a6e;
  --violet: #a99bff;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 180, 65, 0.12), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(169, 155, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-size: 0.86em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
main, .hero, body > footer { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* hero */
nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 56px; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--amber); box-shadow: inset 0 0 0 5px var(--bg), 0 0 0 1px var(--amber); }
.net { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--green); box-shadow: 0 0 0 4px rgba(95, 212, 154, 0.18); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 500; }
.lede { max-width: 640px; color: #c9c8c2; font-size: 1.08rem; margin: 22px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(20, 22, 27, 0.6); }
.stats div { padding: 20px 22px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 600 2rem/1.1 var(--mono); color: var(--ink); }
.stats span { color: var(--muted); font-size: 0.85rem; }

section { margin: 88px 0; }

/* how */
.how ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.how .n { font: 600 0.8rem var(--mono); color: var(--amber-ink); background: var(--amber); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.how h3 { font-size: 1.25rem; margin-bottom: 6px; }
.how p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.pq { margin: 18px 0 0; padding: 16px 20px; border: 1px dashed rgba(169, 155, 255, 0.45); border-radius: var(--radius); color: #cfcaf5; font-size: 0.95rem; }
.tag { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet); border: 1px solid var(--violet); padding: 2px 8px; border-radius: 999px; margin-right: 8px; }

/* feed */
.feed-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.filters { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.filters button { background: none; border: 0; color: var(--muted); font: 500 0.88rem var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--ink); color: var(--bg); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: #3a3f4c; transform: translateY(-2px); }
.card.revealed { border-top: 3px solid var(--green); }
.card.sealed { border-top: 3px solid var(--amber); }
.card.lapsed { border-top: 3px solid var(--muted); }
.card header { display: flex; justify-content: space-between; align-items: center; }
.id { font: 600 0.85rem var(--mono); color: var(--muted); }
.chip { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; }
.chip.sealed { background: rgba(242, 180, 65, 0.14); color: var(--amber); }
.chip.revealed { background: rgba(95, 212, 154, 0.14); color: var(--green); }
.chip.lapsed { background: rgba(154, 156, 165, 0.14); color: var(--muted); }
.card h3 { font-size: 1.2rem; line-height: 1.3; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink); border-left: 2px solid var(--green); padding-left: 14px; }
.check { font: 500 0.82rem var(--mono); }
.check.ok { color: var(--green); }
.check.bad { color: var(--red); }
.sealed-box { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.lock { width: 18px; height: 14px; border: 2px solid var(--amber); border-radius: 3px; position: relative; margin-top: 6px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -10px; width: 10px; height: 10px; border: 2px solid var(--amber); border-bottom: 0; border-radius: 6px 6px 0 0; }
.cd { font: 600 1.35rem var(--mono); color: var(--amber); font-variant-numeric: tabular-nums; }
.cd-l { color: var(--muted); font-size: 0.85rem; }
.lapsed-box { color: var(--muted); font-size: 0.92rem; background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
dd { margin: 0; font-size: 0.9rem; }
.card footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.hash { color: var(--muted); }
.link { background: none; border: 0; color: var(--amber); font: 500 0.85rem var(--sans); cursor: pointer; padding: 0; }
.empty, .notice { color: var(--muted); padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; grid-column: 1 / -1; }
.skeleton { height: 230px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* verify */
.verify { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.verify > p { color: var(--muted); margin: 8px 0 24px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
label:nth-child(2) { grid-row: span 1; }
input, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 11px 13px; font: 0.92rem var(--mono); text-transform: none; letter-spacing: 0; resize: vertical; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
form button { grid-column: 1 / -1; justify-self: start; background: var(--amber); color: var(--amber-ink); border: 0; border-radius: 10px; padding: 12px 20px; font: 600 0.95rem var(--sans); cursor: pointer; }
form button:hover { filter: brightness(1.08); }
.vout { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding: 0 2px; word-break: break-all; }
.vout:empty { display: none; }
.vout.ok b { color: var(--green); }
.vout.bad { color: var(--red); }

/* make */
pre { background: #07080a; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; font: 0.9rem/1.7 var(--mono); margin: 22px 0 0; }
pre .c { color: #6b6f7a; }

body > footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .how ol, form { grid-template-columns: 1fr; }
  nav { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* post-quantum author badge (from CalledItLens -> pqcKeyStatus precompile) */
.pq-badge { font: 500 0.78rem var(--mono); padding: 6px 10px; border-radius: 8px; align-self: flex-start; }
.pq-badge.ok { color: var(--violet); background: rgba(169, 155, 255, 0.1); border: 1px solid rgba(169, 155, 255, 0.35); }
.pq-badge.no { color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }

/* make your own call */
.make-lede { color: var(--muted); max-width: 760px; margin: 10px 0 22px; }
.make-lede b { color: var(--ink); }
.mform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.mform .wide { grid-column: 1 / -1; }
select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 11px 13px; font: 0.92rem var(--sans); text-transform: none; letter-spacing: 0; }
select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.mform button { align-self: end; justify-self: start; grid-column: auto; }
.mout { margin-top: 18px; background: var(--panel); border: 1px solid rgba(242, 180, 65, 0.45); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.mout[hidden] { display: none; }
.mrow { display: flex; flex-direction: column; gap: 4px; }
.mrow span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mrow code { color: var(--ink); word-break: break-all; font-size: 0.9rem; }
.mactions { display: flex; gap: 10px; flex-wrap: wrap; }
.ghost { background: transparent; color: var(--amber); border: 1px solid rgba(242, 180, 65, 0.55); border-radius: 10px; padding: 10px 16px; font: 600 0.9rem var(--sans); cursor: pointer; }
.ghost:hover { background: rgba(242, 180, 65, 0.08); }
.mout pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.mnote { color: var(--muted); font-size: 0.9rem; margin: 0; }
.mnote code, .make-lede code { font-family: var(--mono); color: var(--ink); }
.setup { margin-top: 18px; color: var(--muted); }
.setup summary { cursor: pointer; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .mform { grid-template-columns: 1fr; } }
