/* SignWarden public page. Static, no scripts, no external resources. Light and dark themes follow the system setting. */
:root {
  color-scheme: light dark;
  --bg: #F8FAFC;
  --band: #EEF2F7;
  --card: #FFFFFF;
  --border: #CBD5E1;
  --grid: rgba(15, 23, 42, 0.06);
  --text: #0F172A;
  --muted: #475569;
  --accent: #A94A07;
  --accent-ink: #FFFFFF;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --band: #0B1222;
    --card: #1B2236;
    --border: #334155;
    --grid: rgba(148, 163, 184, 0.07);
    --text: #F8FAFC;
    --muted: #94A3B8;
    --accent: #F59E0B;
    --accent-ink: #0F172A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:visited { color: color-mix(in srgb, var(--accent) 60%, var(--muted)); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.9rem; z-index: 10; }
.skip:focus { left: 0.75rem; top: 0.75rem; }
strong { font-weight: 650; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code, .mono { font-family: var(--mono); }

header.top { border-bottom: 1px solid var(--border); padding: 0.7rem 0; background: var(--band); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem 1.5rem; flex-wrap: wrap; }
.wordmark { display: inline-block; padding: 0.6rem 0; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; font-family: var(--mono); font-size: 0.85rem; }
nav a { color: var(--muted); text-decoration: none; padding: 0.7rem 0; }
nav a:hover, nav a:focus-visible { color: var(--accent); text-decoration: underline; }

.band { background-color: var(--band); background-image: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 44px); border-bottom: 1px solid var(--border); }
.hero { padding-top: 3.2rem; padding-bottom: 3.2rem; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3.1rem); line-height: 1.15; margin: 0 0 1.1rem; font-weight: 750; letter-spacing: -0.02em; max-width: 21ch; }
.hl { font-style: normal; color: var(--accent); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 38rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.1rem; }
.btn { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.3rem; font-family: var(--mono); font-size: 0.92rem; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); transition: background-color 150ms ease-out, color 150ms ease-out; }
.btn:visited { color: var(--accent); }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn.primary, .btn.primary:visited { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: transparent; color: var(--accent); }
.status { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0 0 2.6rem; max-width: 40rem; }

.chain { margin: 0; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.block { position: relative; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; margin: 0; }
.block .k { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.block .k b { color: var(--accent); font-weight: 600; letter-spacing: 0; margin-left: 0.4rem; }
.block .h { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.block .d { font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.block:not(:last-child)::after { content: ""; position: absolute; left: 1.4rem; top: 100%; width: 2px; height: 1.6rem; background-image: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation: flow-y 1.2s linear infinite; }
.chain figcaption { margin-top: 1.4rem; font-size: 0.85rem; color: var(--muted); max-width: 46rem; }
@keyframes flow-y { from { background-position: 0 0; } to { background-position: 0 10px; } }
@keyframes flow-x { from { background-position: 0 0; } to { background-position: 10px 0; } }
@media (min-width: 52rem) {
  .blocks { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
  .block:not(:last-child)::after { left: 100%; top: 2.1rem; width: 2.2rem; height: 2px; background-image: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); background-size: 10px 2px; animation-name: flow-x; }
}

.timeline-fig { margin-top: 2.6rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.timeline li { position: relative; margin: 0; padding: 0 0 0 1.6rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 0.6rem; height: 0.6rem; background: var(--accent); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 0.27rem; top: 1.1rem; width: 2px; height: calc(100% + 1.3rem - 0.9rem); background-image: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation: flow-y 1.2s linear infinite; }
.timeline time { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.timeline .n { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.timeline li > span { font-size: 0.86rem; line-height: 1.4; color: var(--text); }
@media (min-width: 52rem) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; }
  .timeline li { padding: 1.6rem 0 0; }
  .timeline li::before { top: 0; left: 0; }
  .timeline li:not(:last-child)::after { left: 0.9rem; top: 0.27rem; width: calc(100% + 1.4rem - 0.9rem); height: 2px; background-image: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); background-size: 10px 2px; animation-name: flow-x; }
  .timeline li:nth-child(4n)::after { display: none; }
}
@media (min-width: 72rem) {
  .timeline { grid-template-columns: repeat(8, 1fr); gap: 1.4rem; }
  .timeline li:nth-child(4n)::after { display: block; }
  .timeline li:last-child::after { display: none; }
  .timeline li > span { font-size: 0.8rem; }
}

.report-head { padding-top: 2.6rem; padding-bottom: 2.4rem; }
.report-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); max-width: 30ch; }
.crumb { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; }
.meta { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.report { max-width: 46rem; padding: 2.6rem 0 3rem; }
.report h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.report h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.report table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.93rem; table-layout: auto; }
.report th, .report td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border: 1px solid var(--border); overflow-wrap: break-word; }
.report th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--band); font-weight: 600; }
.report td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 40rem) { .report td:first-child { white-space: normal; } .report th, .report td { padding: 0.5rem 0.5rem; } }
.report code { font-family: var(--mono); font-size: 0.88em; background: var(--band); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.report a.fn { font-family: var(--mono); font-size: 0.82em; text-decoration: none; }
.report ul.todos { list-style: none; padding-left: 0; }
.report li.todo { position: relative; padding-left: 1.7rem; }
.report li.todo::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.9rem; height: 0.9rem; border: 2px solid var(--accent); }
.report ol.sources { padding-left: 1.4rem; font-size: 0.93rem; overflow-wrap: anywhere; }
.report .note { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.latest { margin: 1.6rem 0 0; padding: 0.9rem 1.15rem; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); max-width: 46rem; }
.latest b { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.2rem; font-weight: 600; }

section { padding: 3rem 0; border-top: 1px solid var(--border); }
main > .wrap > section:first-child { border-top: 0; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.02rem; margin: 0 0 0.4rem; font-weight: 650; }
p { margin: 0.6rem 0; }
ul { padding-left: 1.2rem; margin: 0.5rem 0; }
li { margin: 0.35rem 0; }
.lead { color: var(--muted); max-width: 44rem; }
.gap { margin-top: 1.8rem; }

.cards { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.card { background: var(--card); border: 1px solid var(--border); padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; margin: 0; min-width: 0; transition: border-color 150ms ease-out; }
.card:hover { border-color: var(--accent); }
.card time { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.card h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.card p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.card .ev { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.card .ev b { display: block; font-weight: 600; color: var(--text); }
.card .ev a { font-size: 0.8rem; display: inline-flex; align-items: center; min-height: 2.75rem; }

.tracked { padding-left: 1.2rem; }
@media (min-width: 46rem) { .tracked { columns: 2; column-gap: 2.4rem; } }
.tracked li { break-inside: avoid; margin: 0 0 0.7rem; }

.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.steps li { margin: 0; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 1rem 1.15rem 1.1rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--muted); }

.asof { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 1rem; }
dl.stats { margin: 0.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
dl.stats > div { background: var(--card); border: 1px solid var(--border); padding: 1.05rem 1.2rem 1.15rem; display: grid; grid-template-columns: 1fr; gap: 0.25rem; }
@media (min-width: 52rem) { dl.stats > div { grid-template-columns: 15rem 1fr; gap: 1.6rem; align-items: start; } }
dl.stats dt { font-weight: 650; }
dl.stats dd { margin: 0; max-width: 46rem; }
dl.stats .num { font-family: var(--mono); font-size: 2.3rem; font-weight: 700; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
dl.stats .unit { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin-left: 0.5rem; }
dl.stats .src { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.93rem; }
dl.stats strong { font-weight: 650; }
time { font-family: var(--mono); font-size: 0.95em; }

.cols { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 46rem) { .cols { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
.col { border-top: 2px solid var(--accent); padding-top: 0.7rem; }

.contact { display: inline-block; padding: 0.6rem 0; font-family: var(--mono); font-size: 1.02rem; word-break: break-all; }

footer { border-top: 2px solid var(--accent); background: var(--band); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.93rem; }
footer h2 { font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
footer p { margin: 0.5rem 0; line-height: 1.55; max-width: 60rem; }
footer .product { font-family: var(--mono); font-size: 0.95rem; margin-top: 1.4rem; }
footer .product a { color: var(--text); display: inline-block; padding: 0.6rem 0; }
footer .fine { font-family: var(--mono); font-size: 0.8rem; margin-top: 1rem; }

@media (max-width: 30rem) { body { font-size: 1rem; } .hero { padding-top: 2.2rem; padding-bottom: 2.2rem; } section { padding: 2.2rem 0; } dl.stats .num { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { nav, .skip, .band { display: none; } body { background: #fff; color: #000; } a { color: #000; } }
.tap a { display: inline-block; padding: 0.6rem 0; }
