/* adminexplorer.io - one stylesheet, no external fonts, light and dark via prefers-color-scheme. */
:root {
  --bg: #ffffff;
  --bg-band: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --accent: #334155;
  --accent-text: #ffffff;
  --accent-hover: #1e293b;
  --link: #334155;
  --focus: #2563eb;
  --logo-bg: #334155;
  --logo-fg: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-band: #1e293b;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --border: #475569;
    --accent: #e2e8f0;
    --accent-text: #0f172a;
    --accent-hover: #ffffff;
    --link: #e2e8f0;
    --focus: #93c5fd;
    --logo-bg: #e2e8f0;
    --logo-fg: #0f172a;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  z-index: 10;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow > * { max-width: 46rem; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }

main > section { padding: 3.5rem 0; }
.band { background: var(--bg-band); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.logo-bg { fill: var(--logo-bg); }
.logo-fg { fill: var(--logo-fg); }
.nav { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-weight: 600; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero h1 .line { display: block; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--link); }
.btn-secondary:hover { background: var(--bg-band); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.steps p, .features p { color: var(--muted); margin: 0; }

/* Features */
.features {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.features li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Editions */
.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
.editions { width: 100%; border-collapse: collapse; min-width: 20rem; }
.editions th, .editions td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.editions thead th { font-size: 0.95rem; }
.editions tbody th { font-weight: 400; }
.editions td { white-space: nowrap; }
.editions td:last-child { white-space: normal; min-width: 8rem; }
.no { color: var(--muted); }
.note { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }

/* Video (hidden until switched on in index.html) */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* 404 */
.notfound { padding: 5rem 0; }

@media (max-width: 480px) {
  main > section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .lead { font-size: 1.125rem; }
  .btn { flex: 1 1 100%; text-align: center; }
  .editions th, .editions td { padding: 0.5rem 0.4rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
