:root {
  --bg: #0d0d0d;
  --bg-elev: #161616;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --text-muted: #6b6b6b;
  --accent: #d7ff3f;
  --max-width: 780px;
  --max-width-wide: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: 3rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-dim); }

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0.5rem 0 1.25rem 1.25rem; color: var(--text-dim); }
li { margin-bottom: 0.35rem; }

code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Layout ───────────────────────────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

main.wide { max-width: var(--max-width-wide); }

.hero {
  padding: 6rem 1.5rem 5rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: left;
}

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

.hero .lede {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-top: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.badge-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  background: var(--bg-elev);
}

.badge:hover { border-color: var(--accent); color: var(--accent); }

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg-elev);
}

.card h3 { font-size: 1.1rem; margin-top: 0; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ── Legal pages ──────────────────────────────────────────────────── */

.legal h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.legal h2 { font-size: 1.25rem; }
.legal h3 { font-size: 1rem; }

.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg-elev);
  margin: 2rem 0;
}

.contact-card p { margin-bottom: 0.25rem; color: var(--text); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  h1 { font-size: 2.25rem; }
  .hero { padding: 3rem 1.5rem; }
  main { padding: 3rem 1.25rem 5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}
