/* sigfed-website styles. No framework, no build step. */

:root {
  --bg: #0e1116;
  --surface: #161b23;
  --surface-2: #1d242f;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #5eead4;      /* lay track */
  --accent-2: #93c5fd;    /* tech track */
  --border: #2a3341;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header and track toggle */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.logo { font-weight: 800; font-size: 1.25rem; margin: 0; letter-spacing: 0.02em; }
.logo span { color: var(--accent); }

.track-toggle button {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-left: 0.4rem;
  font: inherit; font-size: 0.85rem;
  cursor: pointer;
}
.track-toggle button.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* Track visibility: body[data-track] controls which sections render */

body[data-track="lay"] section.tech { display: none; }
body[data-track="tech"] section.lay { display: none; }

/* Sections */

main section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
}

section.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  text-align: center;
  padding: 3rem 1.75rem;
}
section.hero h1 { font-size: 2rem; margin: 0 0 0.75rem; }
section.hero p { max-width: 42rem; margin: 0 auto; color: var(--muted); }

h2 { margin-top: 0; font-size: 1.3rem; }
h3 { margin: 0 0 0.25rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.lay-badge  { background: rgba(94, 234, 212, 0.15); color: var(--accent); }
.tech-badge { background: rgba(147, 197, 253, 0.15); color: var(--accent-2); }

/* Code */

pre {
  background: #0b0e13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
}
code { font-family: var(--mono); font-size: 0.9em; }
p code, li code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* Demos */

.demo {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.demo label { display: block; margin: 0.6rem 0 0.2rem; color: var(--muted); font-size: 0.85rem; }
.demo input, .demo select {
  width: 100%;
  background: #0b0e13;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.demo button {
  margin-top: 0.75rem;
  background: var(--accent-2);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.demo output {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--accent);
}
.demo output.error { color: #fca5a5; }
.demo output.match { color: var(--accent); }
.demo output.mismatch { color: #fca5a5; }

/* Links and footer */

a { color: var(--accent-2); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 40rem) {
  .site-header .wrap { flex-direction: column; gap: 0.5rem; }
  section.hero h1 { font-size: 1.5rem; }
}