/* Atto Corp — shared Labs stylesheet (2026-06-24) */
/* Light + dark mode, system font stack, responsive */

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-code: #f4f4f4;
  --fg: #1a1a1a;
  --fg-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #d97706;
  --border: #e5e5e5;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-code: #1a1e26;
    --fg: #e6edf3;
    --fg-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --green: #3fb950;
    --red: #f85149;
    --orange: #d29922;
    --border: #30363d;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
header.labs-header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
header.labs-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
header.labs-header p {
  color: var(--fg-muted);
  margin-top: 0.5rem;
}
header.labs-header nav {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
header.labs-header nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
header.labs-header nav a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 600; }

/* Code */
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
pre {
  background: var(--bg-code);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
th {
  background: var(--bg-card);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}

/* Utilities */
.muted { color: var(--fg-muted); }
.pass { color: var(--green); font-weight: 600; }
.fail { color: var(--red); }
.partial { color: var(--orange); }
.tag {
  display: inline-block;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  padding: 0.15em 0.55em;
  border-radius: 4px;
  font-size: 0.85em;
  margin: 0.15em;
}
@media (prefers-color-scheme: dark) {
  .tag { background: rgba(88,166,255,0.12); }
}

/* Verdict box */
.verdict {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
footer.labs-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.88rem;
}
footer.labs-footer a { color: var(--accent); }

/* Legacy variable aliases — pre-migration pages used these names.
   Defined once here so old pages follow the theme without per-page edits. */
:root {
  --muted: var(--fg-muted);
  --card: var(--bg-card);
  --text: var(--fg);
  --fg-accent: var(--accent);
  --amber: var(--orange);
  --purple: #7c3aed;
}
@media (prefers-color-scheme: dark) {
  :root { --purple: #a78bfa; }
}
