:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --fg: #e8e8ef;
  --muted: #8b8b9a;
  --accent: #f43f5e;
  --line: #1e1e28;
  --surface: #12121a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis-weight: none;
  line-height: 1.5;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  width: min(72rem, 100% - 3rem);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--fg); }
.gf-site-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

main {
  width: min(72rem, 100% - 3rem);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 3.25rem 0 1rem;
}
h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.5rem;
}
.tagline,
.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 2.5rem;
  max-width: 38rem;
}

p, li {
  color: var(--fg);
  line-height: 1.75;
}
p { margin: 0 0 1.125rem; max-width: 46rem; }
ul, ol {
  margin: 0 0 1.125rem;
  padding-left: 1.375rem;
  max-width: 46rem;
}
li { margin-bottom: 0.5rem; }
strong { font-weight: 600; }

dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 0 0 2.5rem;
}
dl > div { background: var(--bg); padding: 1.125rem 1.25rem; }
dt {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}
dd { margin: 0; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td:not(:first-child),
th:not(:first-child) { text-align: right; }

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
}
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 1.125rem;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 46rem;
  margin: 0 0 1.125rem;
}

.section-title {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 3rem 0 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: inherit;
}
.card:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--fg);
}
.card:hover h3 { color: var(--accent); }
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.75rem;
  margin: 0.5rem 0 2rem;
}
.next a { font-size: 0.9375rem; }

footer {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 3rem;
}



:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  main {
    width: min(72rem, 100% - 2rem);
    padding: 2rem 0 3.5rem;
  }
  .header-inner {
    width: min(72rem, 100% - 2rem);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  th, td {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }
}



.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner {
  width: min(72rem, 100% - 3rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .footer-inner {
    width: min(72rem, 100% - 2rem);
  }
}