
:root {
  color-scheme: dark;
  --bg: #0b1326;
  --surface: #15213a;
  --surface-hover: #1c2b47;
  --line: #344561;
  --text: #f5f7fb;
  --muted: #c5d0e0;
  --accent: #ff914d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); }

main, .footer-inner {
  max-width: 1040px;
  padding: 0 24px;
  margin: auto;
}

.hero { padding: 75px 0 40px; }

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 20px 0; }
h2 { font-size: 1.6rem; }
p, li { color: var(--muted); }
.lead { max-width: 740px; font-size: 1.12rem; }

.controls { margin: 24px 0; display: grid; gap: 18px; }

input[type="search"] {
  width: 100%;
  padding: 15px 17px;
  background: var(--surface);
  color: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; }

.filters button {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 9px 15px;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
}

.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.note-card, .article, .quiz, .upcoming {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 32px;
}

.note-card h2 a {
  color: white;
  text-decoration: none;
}

.note-card h2 a:hover { color: var(--accent); }

.meta { color: var(--accent); font-size: .85rem; }
.read-more { font-weight: 700; }

.upcoming { margin: 35px 0 70px; }
.upcoming ul { padding-left: 23px; }

.article {
  max-width: 820px;
  margin: 40px auto 75px;
}

.article h2 { margin-top: 45px; }
.article h3 { margin-top: 28px; }
.article strong { color: var(--text); }

.example, .insight {
  border-left: 3px solid var(--accent);
  background: #1b2b45;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 26px 0;
}

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

th { color: white; }
td:last-child, th:last-child { text-align: right; }

.quiz { margin-top: 40px; }
.quiz fieldset { border: 0; padding: 0; margin: 20px 0; }
.quiz legend { font-weight: 700; margin-bottom: 16px; }

.quiz label {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.quiz label:has(input:checked) { border-color: var(--accent); }

.primary-button {
  background: var(--accent);
  border: 0;
  color: #101827;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}

#quiz-result { margin-top: 18px; }
.back-link { display: inline-block; margin: 28px 0 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  padding-top: 25px;
  padding-bottom: 25px;
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding-top: 45px; }
  .article, .note-card, .upcoming, .quiz { padding: 22px; }
  nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

