/* Foundry Deploy — molten-metal identity: near-black ink, ember accent,
   Red Hat Display + Red Hat Mono for identifiers. Utilitarian console,
   not a landing page. */
@font-face { font-family: 'Red Hat Display'; src: url('/assets/fonts/RedHatDisplay-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Red Hat Mono'; src: url('/assets/fonts/RedHatMono-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }


:root {
  color-scheme: light;
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --ink: #17181C;
  --muted: #63666E;
  --hair: #E4E4DE;
  --ember: #D9480F;
  --ember-ink: #B23A0C;
  --ok: #2B7A4B;
  --bad: #C0392B;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101114;
  --card: #17181D;
  --ink: #ECEDF1;
  --muted: #9DA1AF;
  --hair: #2A2D38;
  --ember: #FF6B35;
  --ember-ink: #FF855F;
  --ok: #57C08B;
  --bad: #E06A5C;
}

* { box-sizing: border-box; }
body { margin: 0; transition: background-color .25s ease, color .25s ease; background: var(--paper); color: var(--ink); font: 400 15px/1.55 'Red Hat Display', system-ui, sans-serif; }
a { color: var(--ember-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

.top { background: var(--ink); }
[data-theme="dark"] .top { background: #14151A; border-bottom: 1px solid var(--hair); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mark { font: 700 18px 'Red Hat Display', sans-serif; color: #fff; letter-spacing: .01em; }
.mark em { font-style: normal; color: #FF7A45; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: #B9BAC1; font-size: 14px; }
.top nav a:hover { color: #fff; }

main { padding: 34px 22px 70px; }
h1 { font: 700 26px/1.2 'Red Hat Display', sans-serif; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
h2 { font: 500 18px 'Red Hat Display', sans-serif; margin: 30px 0 10px; }

.inline { display: flex; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.inline input { flex: 1 1 320px; padding: 11px 13px; font: inherit; border: 1px solid color-mix(in srgb, var(--hair) 55%, var(--muted) 45%); border-radius: 4px; background: var(--card); }
.inline input:focus { border-color: var(--ember); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(217, 72, 15, .16); }
.btn { padding: 11px 18px; background: var(--ember); border: 1px solid var(--ember); color: #fff; font: 500 15px 'Red Hat Display', sans-serif; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--ember-ink); }

ul.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
ul.rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--hair); }
.chip { font: 700 11px 'Red Hat Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px; }
.chip.ok { color: var(--ok); }
.chip.bad { color: var(--bad); }
.chip { color: var(--muted); }
.mono { font-family: 'Red Hat Mono', monospace; font-size: 13.5px; }
.dim { color: var(--muted); }

.panel { transition: background-color .25s ease, border-color .25s ease; background: var(--card); border: 1px solid var(--hair); border-radius: 6px; margin: 18px 0; overflow: hidden; }
.panel-h { padding: 10px 16px; border-bottom: 1px solid var(--hair); font: 500 13px 'Red Hat Display', sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.panel .body { padding: 14px 16px; }
pre.mono { background: var(--card); border: 1px solid var(--hair); border-radius: 6px; padding: 16px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 400 13.5px/1.6 'Red Hat Mono', monospace; }
.error { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); border-radius: 4px; padding: 11px 13px; margin: 10px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: transparent; color: #C6C8D0; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .12s ease; }
.top .theme-toggle { border-color: var(--hair); color: var(--muted); background: var(--card); }
.theme-toggle:hover { color: var(--ember-ink); border-color: var(--ember); transform: translateY(-1px); }
.theme-toggle:active { transform: none; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .ic-moon { display: none; fill: currentColor; stroke: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.top nav a:hover::after { transform: scaleX(1); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; border: 1px solid var(--hair); }

/* responsive pass: viewport containment + touch targets */
@media (max-width: 900px) {
  .panel, .card { overflow-x: auto; }
  table { min-width: 420px; }
  .theme-toggle { width: 44px; height: 44px; }
  .top nav a, .foot, .linklike { min-height: 44px; display: inline-flex; align-items: center; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  html, body { overflow-x: clip; }
}
