:root {
  color-scheme: dark;
  --bg: #0d0a0f;
  --bg-top: #2a0a25;
  --bg-mid: #16081e;
  --bg-bottom: #06040a;
  --panel: #160a1d;
  --panel-soft: #210915;
  --text: #c0c0c0;
  --text-strong: #ffffff;
  --muted: #888888;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff4d8d;
  --accent-strong: #ff9ec7;
  --violet: #9e6bff;
  --link: #f57ad0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 77, 141, 0.20), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(158, 107, 255, 0.14), transparent 26rem),
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 38%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--link);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px max(16px, calc((100vw - 920px) / 2));
  background: rgba(13, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a,
.section-nav a,
.page-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  border-color: rgba(255, 77, 141, 0.70);
  background: rgba(255, 77, 141, 0.16);
  color: var(--accent-strong);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.hero {
  padding: 44px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 64px);
}

h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

h3 {
  margin: 30px 0 10px;
  font-size: 18px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

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

th {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-strong);
  font-size: 13px;
}

td {
  color: var(--text);
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 680px;
}

.lead {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(255, 77, 141, 0.70);
  background: rgba(255, 77, 141, 0.18);
}

.section {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(22, 10, 29, 0.86);
}

.section.soft {
  background: rgba(33, 9, 21, 0.72);
}

.meta {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.operator {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
}

.operator strong {
  color: var(--text-strong);
}

.divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    width: min(100% - 24px, 920px);
    padding-top: 30px;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 20px;
  }

  .table-scroll {
    margin: 0 -20px;
    padding: 0 20px;
  }
}
