:root {
  --bg: #0c0716;
  --bg-raised: #160e26;
  --text: #ede8f6;
  --text-muted: #a99dbf;
  --border: #2b2140;
  --accent: #9b4cf9;
  --accent-2: #f472b6;
  --link: #c4a1ff;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8fd;
    --bg-raised: #ffffff;
    --text: #1d1430;
    --text-muted: #5f5373;
    --border: #e4dcef;
    --link: #6d28d9;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Landing page */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(155, 76, 249, 0.35);
}

.hero h1 {
  margin: 28px 0 8px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 19px;
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0 64px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-raised);
}

.feature h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Documents */

.doc {
  padding: 48px 0 64px;
}

.doc h1 {
  margin: 0 0 4px;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.doc h3 {
  margin: 24px 0 4px;
  font-size: 18px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.summary {
  padding: 4px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-raised);
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

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

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

.contact-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-raised);
}

.contact-card p {
  margin: 0;
}

.contact-card .email {
  display: inline-block;
  margin: 8px 0;
  font-size: 22px;
  font-weight: 700;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p,
details ul {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .site-nav {
    gap: 12px;
    font-size: 14px;
  }

  .brand span {
    display: none;
  }
}
