:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --text: #e8eef4;
  --muted: #9aa8b5;
  --accent: #c9a227;
  --line: #2a3542;
  --link: #7eb8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1c2a22 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #243048 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.intro {
  color: var(--muted);
  margin: 0 0 2rem;
}

article section {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.9rem;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
}

p,
ul {
  margin: 0 0 0.75rem;
  color: #d5dee7;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.footnote {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.4rem 0 0.75rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #222b36;
  color: var(--text);
}

@media (max-width: 640px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }

  td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 650;
    color: var(--accent);
    margin-bottom: 0.25rem;
  }
}
