/* Attestry — one stylesheet, no build step, no third-party requests.
   Terminal look: one dark theme, monospace throughout, square corners, thin rules. */
:root {
  color-scheme: dark;
  --paper: #090c12; --surface: #10151f; --raised: #161c29; --ink: #eef2f8; --soft: #c9d2e1; --muted: #8f9cb4;
  --line: #242c3d; --rule: rgba(201, 210, 225, 0.22);
  --action: #7fa5ff; --action-dim: #6b8fe6; --action-ink: #080d18;
  --tint: rgba(127, 165, 255, 0.07); --tint-line: rgba(127, 165, 255, 0.42);
  --danger: #ff8a7a;
  --verified: #4ade9b; --unverified: #f0b656; --inferred: #b79cff; --unavailable: #8b96ab;
  --code-bg: #05080e; --code-ink: #dfe6f3;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: var(--mono);
  --measure: 72ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font: 400 0.9375rem/1.6 var(--mono);
       background-image: radial-gradient(rgba(201, 210, 225, 0.055) 1px, transparent 1px); background-size: 22px 22px; }
a { color: var(--action); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--action); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }
strong { font-weight: 700; }
code, pre, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { color: var(--soft); background: var(--raised); padding: 0.05em 0.35em; border: 1px solid var(--line); }
pre { background: var(--code-bg); color: var(--code-ink); padding: 1rem 1.1rem; border: 1px solid var(--line);
      overflow-x: auto; line-height: 1.55; margin: 0 0 1.2em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--action);
           margin: 0 0 0.9rem; }

/* Site header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; letter-spacing: 0;
         color: var(--ink); text-decoration: none; font-size: 1.05rem; text-transform: lowercase; }
.brand svg { width: 1.25rem; height: 1.25rem; color: var(--action); }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; font-size: 0.8125rem; }
.top nav a { color: var(--soft); text-decoration: none; text-transform: lowercase; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav a.btn { color: var(--action-ink); }
.top nav a.btn:hover { text-decoration: none; }

/* Buttons and forms */
.btn { display: inline-block; font: 700 0.78rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
       padding: 0.8rem 1.1rem; border-radius: 0; border: 1px solid var(--action); background: var(--action);
       color: var(--action-ink); text-decoration: none; cursor: pointer; }
.btn::after { content: " >"; white-space: pre; }
.btn:hover { background: var(--action-dim); border-color: var(--action-dim); }
.btn.quiet { background: transparent; color: var(--action); }
.btn.quiet:hover { background: var(--tint); border-color: var(--action); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger::after { content: ""; }
.btn.small { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
.btn.dark { background: var(--action-ink); border-color: var(--action-ink); color: var(--action); }
label { display: block; font-weight: 700; margin: 0 0 0.3rem; font-size: 0.8125rem; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; max-width: 30rem; font: inherit; color: var(--ink); background: var(--code-bg);
  border: 1px solid var(--line); border-radius: 0; padding: 0.6rem 0.7rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--action); }
.field { margin-bottom: 1.1rem; }
.hint { color: var(--muted); font-size: 0.8125rem; margin-top: 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; max-width: 34rem; }
.check input { margin-top: 0.3rem; accent-color: var(--action); }
.inline { display: inline; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }

/* Notices */
.notice { border: 1px solid var(--tint-line); border-left-width: 3px; background: var(--tint); padding: 0.8rem 1rem;
          margin: 0 0 1.4rem; max-width: var(--measure); }
.notice.error { border-color: var(--danger); background: rgba(255, 138, 122, 0.07); }
.notice.secret { border-color: var(--verified); background: rgba(74, 222, 155, 0.06); max-width: none; }
.notice ul { margin: 0; padding-left: 1.1rem; }

/* Landing: the console window */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.term { position: relative; border: 1px solid var(--tint-line); background: var(--tint); }
.term::before, .term::after { content: ""; position: absolute; width: 0.8rem; height: 0.8rem; pointer-events: none;
                              border: 2px solid var(--action); }
.term::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.term::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.term-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--tint-line);
            font-size: 0.75rem; color: var(--muted); }
.term-bar .lamps { display: inline-flex; gap: 0.3rem; }
.term-bar .lamps i { width: 0.55rem; height: 0.55rem; display: block; }
.term-bar .lamps i:nth-child(1) { background: var(--verified); }
.term-bar .lamps i:nth-child(2) { background: var(--unverified); }
.term-bar .lamps i:nth-child(3) { background: var(--inferred); }
.term-bar .state { margin-left: auto; color: var(--verified); font-weight: 700; letter-spacing: 0.14em; display: inline-flex;
                   align-items: center; gap: 0.45rem; }
.term-bar .state::before { content: ""; width: 0.45rem; height: 0.45rem; background: currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.term-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
             align-items: center; padding: clamp(1.4rem, 4vw, 3rem); }
.term h1 { text-transform: uppercase; font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.06; margin-bottom: 1.1rem; }
.term h1 em { font-style: normal; color: var(--action); }
.hero p.lead { color: var(--soft); max-width: 36rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.statbar { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; padding: 0.8rem 1rem;
           border-top: 1px dashed var(--tint-line); font-size: 0.75rem; color: var(--muted); }
.statbar b { color: var(--ink); font-weight: 700; }
.statbar span::before { content: "■ "; color: var(--verified); font-size: 0.6rem; vertical-align: 0.15em; }
.statbar a { margin-left: auto; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.cue { text-align: center; max-width: none; color: var(--muted); font-size: 0.75rem; margin: 1.2rem 0 0; }

/* Landing: sections */
.band { padding: clamp(2rem, 4.5vw, 3.4rem) 0; }
.band.alt { background: none; }
.band h2 { max-width: 24ch; }
.two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.numlist { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: n; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 0.5rem;
              padding: 1.05rem 0; border-top: 1px dashed var(--rule); }
.numlist li:last-child { border-bottom: 1px dashed var(--rule); }
.numlist li::before { content: "[" counter(n, decimal-leading-zero) "]"; color: var(--action); font-weight: 700; font-size: 0.75rem;
                      padding-top: 0.2rem; }
.numlist strong { display: block; grid-column: 2; }
.numlist span { display: block; grid-column: 2; margin-top: 0.25rem; color: var(--muted); max-width: var(--measure); }
.numlist.plain li { padding: 0.8rem 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.plan { border: 1px dashed var(--tint-line); padding: 1.2rem 1.1rem 1.3rem; display: flex; flex-direction: column; }
.plan .name { font-weight: 700; text-transform: lowercase; display: flex; gap: 0.6rem; align-items: center; }
.plan .flag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.15rem 0.4rem;
              background: var(--action-ink); color: var(--action); }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 0.5rem; }
.plan .price small, .plan .amount small { font-size: 0.72rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan .label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.9rem; }
.plan .amount { font-size: 1.5rem; font-weight: 800; color: var(--action); line-height: 1.2; }
.plan p { color: var(--soft); margin: 0.7rem 0 1.1rem; font-size: 0.8125rem; min-height: 3.3em; }
.plan .btn { text-align: center; }
.plan ul { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: 0.78rem; color: var(--soft); }
.plan li { padding: 0.18rem 0 0.18rem 1.4rem; position: relative; }
.plan li::before { content: "+"; position: absolute; left: 0; color: var(--verified); font-weight: 700; }
.plan li.no::before { content: "–"; color: var(--unavailable); }
.plan.hot { background: var(--action); border: 1px solid var(--action); color: var(--action-ink); }
.plan.hot .amount, .plan.hot p, .plan.hot ul, .plan.hot .price small, .plan.hot .amount small { color: var(--action-ink); }
.plan.hot li::before { color: var(--action-ink); }
.plan.hot .btn { background: var(--action-ink); border-color: var(--action-ink); color: var(--action); }
.more { text-align: center; margin: 1.8rem auto 0; max-width: none; color: var(--muted); font-size: 0.8125rem; }
.more b { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0.5rem 0.9rem;
          letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 0.9rem; }
.band.accent { background: var(--action); color: var(--action-ink); }
.band.accent .eyebrow, .band.accent a:not(.btn) { color: var(--action-ink); }
.band.accent p { color: rgba(8, 13, 24, 0.82); }
.band.accent .numlist li, .band.accent .numlist li:last-child { border-color: rgba(8, 13, 24, 0.35); }
.band.accent .numlist li::before, .band.accent .numlist span { color: rgba(8, 13, 24, 0.8); }
.band.accent pre { border-color: var(--action-ink); }
.cta { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.2rem; }
.cta .tagline { display: inline-block; border: 1px solid var(--tint-line); color: var(--action); font-size: 0.68rem; font-weight: 700;
                letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.6rem; margin-bottom: 1.4rem; }
.cta h2 { max-width: none; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta h2 em { font-style: normal; color: var(--action); display: block; }
.cta p { margin-inline: auto; color: var(--muted); }
.cta .actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 0.9rem 0; border-top: 1px dashed var(--rule); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts strong { display: block; }

/* The ledger: a record where every field shows its provenance */
.ledger { background: var(--code-bg); border: 1px solid var(--line); overflow: hidden; }
.ledger header { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.9rem;
                 border-bottom: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); flex-wrap: wrap; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger td { padding: 0.5rem 0.9rem; border-bottom: 1px dashed var(--line); vertical-align: top; font-size: 0.8125rem; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.key { font-size: 0.75rem; color: var(--muted); white-space: nowrap; width: 1%; }
.ledger td.st { white-space: nowrap; width: 1%; }
.ledger td:not(.key):not(.st) { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .ledger td.st { white-space: normal; width: auto; } .ledger .status { white-space: normal; } }
.ledger .src { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.status.verified { color: var(--verified); } .status.verified::before { background: currentColor; }
.status.unverified { color: var(--unverified); }
.status.unverified::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status.inferred { color: var(--inferred); } .status.inferred::before { border-style: dashed; }
.status.unavailable { color: var(--unavailable); } .status.unavailable::before { border-radius: 0; height: 0; border-width: 1px 0 0; width: 0.7rem; }
.legend { display: flex; gap: 0.5rem 1.1rem; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); }
.legend .status { white-space: normal; font-weight: 400; font-size: 0.7rem; }

/* Tables */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; }
table.data th, table.data td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px dashed var(--line);
                               vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font-size: 0.68rem; color: var(--muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
                border-bottom: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
       padding: 0.15rem 0.45rem; border: 1px solid var(--line); white-space: nowrap; }
.tag.on { color: var(--verified); border-color: currentColor; }
.tag.off { color: var(--unavailable); }
.tag.warn { color: var(--unverified); border-color: currentColor; }

/* Console */
.console { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); min-height: calc(100vh - 3.7rem); }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 1.25rem 0.75rem; font-size: 0.8125rem; }
.side a { display: block; padding: 0.45rem 0.75rem; color: var(--soft); text-decoration: none; }
.side a[aria-current=page] { background: var(--tint); color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--action); }
.side a:hover { background: var(--tint); color: var(--ink); }
.side .group { margin: 1.1rem 0 0.3rem 0.75rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em;
               text-transform: uppercase; color: var(--muted); }
.side form { margin: 0.8rem 0 0 0.75rem; }
.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.main h1 { font-size: 1.5rem; }
.main section { margin-bottom: 2.4rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; border: 1px solid var(--line);
         background: var(--surface); margin-bottom: 2rem; }
.stats div { padding: 1rem 1.1rem; border-right: 1px dashed var(--line); font-size: 0.8125rem; color: var(--muted); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.meter { height: 0.55rem; background: var(--line); overflow: hidden; max-width: 30rem; }
.meter span { display: block; height: 100%; background: var(--action); }
.chart { width: 100%; height: 9rem; display: block; background: var(--surface); border: 1px solid var(--line); }
.chart rect { fill: var(--action); }
.keyvalue { word-break: break-all; font-size: 0.9rem; }
.auth { width: min(32rem, 100% - 2.5rem); margin: clamp(2rem, 6vw, 4.5rem) auto; border: 1px solid var(--tint-line);
        background: var(--tint); padding: clamp(1.2rem, 4vw, 2rem); }
.auth h2 { font-size: 1.4rem; }
.prose { width: min(50rem, 100% - 2.5rem); margin: 3rem auto 5rem; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.method { font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.4rem; border: 1px solid var(--tint-line); color: var(--action);
          margin-right: 0.5rem; }
.endpoint { border-top: 1px dashed var(--rule); padding: 1.3rem 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 2.4rem 0 2.6rem; color: var(--muted); font-size: 0.8125rem; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot .brand { margin-bottom: 0.7rem; }
.foot h4 { margin: 0 0 0.7rem; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 0.2rem 0; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { max-width: 30ch; }

@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .term-body, .two { grid-template-columns: minmax(0, 1fr); }
  .console { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.6rem; }
  .side .group { display: none; }
  .side form { margin: 0.3rem 0 0 0.5rem; }
  .stats div { border-right: 0; border-bottom: 1px dashed var(--line); }
  .statbar a { margin-left: 0; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .ledger table, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger tr { padding: 0.55rem 0.9rem; border-bottom: 1px dashed var(--line); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td, .ledger td.key, .ledger td.st { padding: 0; border: 0; width: auto; white-space: normal; }
  .ledger td.st { display: flex; flex-wrap: wrap; gap: 0 0.7rem; align-items: baseline; margin-top: 0.15rem; }
  .ledger .src { margin-top: 0; }
  .plan p { min-height: 0; }
  .numlist li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
svg.meter { color: var(--action); background: none; display: block; height: 0.55rem; }
