:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #070708;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #A78BFA;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

header.site-header .mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

header.site-header .wordmark {
  height: 40px;
  width: auto;
}

header.site-header a.home-link {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: #fff;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  text-align: center;
}

.updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  h1, .subtitle {
    white-space: nowrap;
  }
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #A78BFA;
  margin: 36px 0 12px;
}

p, li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  vertical-align: top;
}

th {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.nav-links a {
  font-size: 13px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: #A78BFA;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

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

.tile {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.tile:hover {
  border-color: rgba(167, 139, 250, 0.4);
}

.tile .tile-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #A78BFA;
  margin-bottom: 4px;
}

.tile .tile-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* --- Site menu: understated dropdown, top right of the content column.
   <details>/<summary> so it opens on click (and on touch) with no JS;
   nav.js only adds outside-click / Escape closing. --- */
.site-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.site-nav details {
  position: relative;
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary:hover,
.site-nav details[open] summary {
  color: #A78BFA;
  border-color: rgba(255, 255, 255, 0.07);
}

.site-nav summary:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.6);
  outline-offset: 2px;
}

/* Chevron, drawn in CSS so the menu carries no image dependency. */
.site-nav summary::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.site-nav details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.site-nav .menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 210px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: #0E0E12;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.site-nav .menu a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav .menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #A78BFA;
}

.site-nav .menu a[aria-current='page'] {
  color: #A78BFA;
}

.site-nav .menu .sep {
  height: 1px;
  margin: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
}
