/* ETF Pulse brand site. Static, no external fonts, no scripts. */
:root {
  --bg: #0b1220;
  --surface: #121b2e;
  --surface-2: #17223a;
  --border: #24314d;
  --text: #f3f6fb;
  --muted: #a9b4c8;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --notice-bg: #1a2a2a;
  --radius: 10px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
a:focus-visible, .skip-link:focus { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand-mark { width: 1.75rem; height: 1.75rem; flex: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.75rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 1rem; max-width: 22ch; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* Sections */
section { padding: 2.75rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 0.75rem; }
section > .wrap > p { max-width: 65ch; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.card h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: 65ch; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0.9rem 2.5rem; color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent-strong); font-size: 0.85rem; font-weight: 700;
}
.steps strong { color: var(--text); }

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 65ch;
}
.notice p { margin: 0; color: var(--text); }

.placeholder { background: #3a2f12; color: #ffe8a3; padding: 0.05em 0.35em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* Legal pages */
.legal { padding: 3rem 0 2rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 0.5rem; }
.legal .meta { color: var(--muted); margin: 0 0 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.legal code { background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 70ch; }
.toc ol { margin: 0.25rem 0 0; padding-left: 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; max-width: 55ch; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.25rem 0; }
}

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