:root {
  color-scheme: light;
  --bg: #eaf1f9;
  --tint: #dbe7f4;
  --surface: #f7fafd;
  --ink: #0a1630;
  --text: #28375a;
  --muted: #4a5b7f;
  --line: #c3d4e7;
  --accent: #0e7fd6;
  --accent-ink: #ffffff;
  --band-bg: linear-gradient(135deg, #0a1020 0%, #14294d 100%);
  --band-ink: #ffffff;
  --band-lead: rgba(255, 255, 255, 0.86);
  --band-eyebrow: #5cc8ff;
  --footer-bg: #0a1020;
  --footer-ink: #b9c8e2;
  --radius: 8px;
  --maxw: 1040px;
}

/* Dark theme, applied only when the visitor chooses it with the toggle */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1424;
  --tint: #0f1c33;
  --surface: #132340;
  --ink: #eaf3ff;
  --text: #cbd8ee;
  --muted: #9aacc9;
  --line: #213a63;
  --accent: #4cc3ff;
  --accent-ink: #04101f;
  --footer-bg: #070d19;
  --footer-ink: #9fb2d3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.lead { font-size: 1.2rem; max-width: 640px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 700; }

/* Blue band (hero) */
.band {
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--band-bg);
  color: var(--band-ink);
}
.band h1 { color: var(--band-ink); }
.band .lead { color: var(--band-lead); }
.band a { color: var(--band-ink); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1em;
}
.band .eyebrow { color: var(--band-eyebrow); }

.hero { padding: 56px 24px 52px; }
.hero .lead { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }

/* Sections */
section { padding: 44px 0; }
section.alt { background: var(--tint); }
.section-intro { max-width: 640px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: 0 1px 2px rgba(15, 37, 87, 0.06);
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 640px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 24px 0;
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--footer-ink); }

@media (max-width: 640px) {
  .hero { padding: 40px 24px 36px; }
  section { padding: 36px 0; }
}


/* Theme toggle */
.theme-toggle {
  margin-left: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle[hidden] { display: none; }
