/* Tokens shared with adavis.cloud (style.css + skin.css) */
:root {
  --font: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.22s var(--ease);
  --bg: #5e554d;
  --bg-2: #6a6058;
  --bg-3: #4f4741;
  --text: #f4efe8;
  --muted: #d6cdc2;
  --faint: #a89c8f;
  --accent: #e8792f;
  --accent-cool: #6eb6e8;
  --forest: #3f6b4a;
  --fail: #b8432f;
  --radius-lg: 18px;
  --radius-md: 12px;
  --hairline: color-mix(in srgb, var(--text) 12%, transparent);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-cool); outline-offset: 3px; }
code, pre { font-family: var(--mono); font-size: 0.85em; }
pre { background: var(--bg-3); padding: 12px; border-radius: var(--radius-md); overflow-x: auto; }

.site-header, main, .site-footer { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--hairline); }
.mark { font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; margin: 48px 0 8px; }
.hero h1::after { content: "."; color: var(--accent); }
.hero p { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.grid { display: grid; gap: 28px; padding-bottom: 60px; }
.card { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--forest); }
.card.status-failed { border-top-color: var(--fail); }
.card.status-sliced { border-top-color: var(--accent); }
.card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.badge { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; background: var(--forest); white-space: nowrap; }
.status-failed .badge { background: var(--fail); }
.status-sliced .badge { background: var(--accent); color: #2b2520; }
.meta { color: var(--faint); margin: 4px 0 12px; font-size: 0.9rem; }
.note { border-left: 3px solid var(--fail); padding-left: 12px; }
.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.media figure { margin: 0; }
.media img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-3); border-radius: var(--radius-md); }
figcaption { color: var(--faint); font-size: 0.8rem; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 12px; }
.stats div { background: var(--bg-3); border-radius: var(--radius-md); padding: 10px 12px; }
.stats dt { font: 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.stats dd { margin: 2px 0 0; font-weight: 600; }
details { margin: 10px 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.readme h3, .readme h4 { margin: 14px 0 4px; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; font-size: 0.85rem; width: 100%; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--hairline); }
.files { font-size: 0.85rem; color: var(--faint); }
.files a { margin-right: 10px; font-family: var(--mono); }

.status-strip { display: flex; align-items: center; gap: 14px; padding: 8px 20px; background: var(--forest); font-size: 0.9rem; }
.status-strip img { height: 44px; width: auto; border-radius: 6px; }
.status-strip.offline { background: var(--bg-3); }
.status-strip .bar { flex: 1; max-width: 240px; height: 6px; background: rgba(0,0,0,.25); border-radius: 3px; overflow: hidden; }
.status-strip .bar span { display: block; height: 100%; background: var(--accent); }
#status-detail { color: var(--muted); }
.site-footer { color: var(--faint); font-size: 0.85rem; padding-bottom: 40px; }
.stl-snippet pre { margin: 0; aspect-ratio: auto; min-height: 100%; font-size: 0.72rem; white-space: pre-wrap; word-break: break-all; }
