:root {
  --ink: #16181d;
  --ink-soft: #4a4f58;
  --paper: #ffffff;
  --paper-alt: #f5f6f8;
  --line: #e2e4e9;
  --accent: #1a5fd6;
  --accent-ink: #ffffff;
  --radius: 8px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Header / nav */

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

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-right: auto;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

/* Hero */

.hero {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

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

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Code snippet */

.snippet {
  background: var(--paper-alt);
  border-radius: var(--radius);
  position: relative;
}

.snippet pre {
  overflow-x: auto;
  background: var(--ink);
  color: #e9ebf0;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.snippet code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.copy-btn {
  position: absolute;
  top: 4.5rem;
  right: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

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

.snippet-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.snippet-note code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

/* Scope */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.scope-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.scope-card h3 {
  font-size: 1.05rem;
}

.scope-card p {
  color: var(--ink-soft);
  margin: 0;
}

.scope-caveat {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Access */

.access {
  border-top: 1px solid var(--line);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  padding: 0;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 640px) {
  .nav {
    justify-content: center;
    text-align: center;
  }

  .brand {
    margin-right: 0;
    width: 100%;
    text-align: center;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .copy-btn {
    top: 5.5rem;
    right: 1.25rem;
  }
}
