:root {
  --bg: #111;
  --fg: #ddd;
  --link: #58a6ff;
  --border: #30363d;
  --code-bg: #161b22;
  --header-bg: #0d1117;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}


.wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}


/* Header */
.site-header {
  /* Removed border, using background only */
  padding: 24px 0;
  /* More breathing room */
  background: var(--header-bg);
  margin-bottom: 48px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-right: 48px;
  /* Separation from nav links */
}

.nav-links {
  display: flex;
  align-items: center;
  /* Align text and icon */
  gap: 20px;
  font-size: 15px;
  flex-wrap: wrap;
}

.nav-links a {
  white-space: nowrap;
}

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 4px;
  /* Slight touch target increase */
}

.nav-icon:hover {
  opacity: 1;
}

/* ... nav toggle ... */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* Hero & Page Content */
.page {
  padding-bottom: 80px;
}

h1,
h2,
h3 {
  margin-top: 48px;
  /* Distinct sections */
  margin-bottom: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

h1 {
  font-size: 42px;
  letter-spacing: -1px;
  /* Removed border-bottom */
  margin-top: 0;
}

h2 {
  font-size: 28px;
  /* Removed border-bottom */
}

h3 {
  font-size: 20px;
  margin-top: 32px;
}

p,
li {
  margin-bottom: 16px;
  max-width: 65ch;
  /* Readable line length */
  font-size: 16px;
}

code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  /* Softer */
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 85%;
  color: var(--fg);
  /* Ensure visibility */
}

pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  /* Removed border */
  margin-bottom: 24px;
}

pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: inherit;
}

/* Hero Specifics */
.hero {
  margin-bottom: 64px;
}

.hero h1 {
  font-size: 48px;
  /* Big impact without borders */
  margin-bottom: 20px;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  /* Larger click targets */
  border-radius: 6px;
  /* Removed border unless essential */
  background: var(--code-bg);
  color: var(--fg);
  font-weight: 600;
  transition: background 0.2s;
}

.btn.primary {
  background: #238636;
  color: #fff;
}

.btn.primary:hover {
  background: #2ea043;
}

.btn:not(.primary):hover {
  background: #30363d;
  /* subtle hover state */
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.feature {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 24px;
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  font-size: 14px;
  margin-bottom: 0;
  color: #8b949e;
  max-width: none;
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  font-size: 14px;
  color: #8b949e;
  /* Removed border-top, just strict spacing */
}

/* Mobile Nav */
@media (max-width: 760px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
    cursor: pointer;
    font-size: 24px;
  }

  .nav-toggle:checked~.nav-links {
    display: flex;
  }
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

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

th {
  font-weight: 600;
  color: #fff;
}

tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
