:root {
  --bg: #05070d;
  --card: #11172a;
  --line: #222b47;
  --text: #eef1ff;
  --text-2: #b8c0e0;
  --text-3: #7f89b5;
  --accent: #f1ad5b;
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  left: 12px;
}

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

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

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

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 0;
}

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

/* Typography */
main {
  padding: 36px 0 56px;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  margin: 40px 0 10px;
}

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

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

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

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

.muted {
  color: var(--text-3);
  font-size: 15px;
}

.lead {
  font-size: 19px;
  color: var(--text-2);
}

/* Cards and notices */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.notice {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 15px;
}

.placeholder {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  font-size: 15px;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.lang-switch a:hover {
  border-color: var(--accent);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0 8px;
}

.toc {
  font-size: 15px;
}

.toc ol {
  margin: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

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

th {
  color: var(--text);
  background: var(--card);
}

/* Landing */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto 26px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #05070d;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 24px;
  min-height: 48px;
}

.button:hover {
  filter: brightness(1.06);
}

.features {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

.features .card p:last-child {
  margin-bottom: 0;
}

/* FAQ */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin: 0 0 12px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  padding: 12px 0;
  list-style-position: outside;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  font-size: 14px;
  color: var(--text-3);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 8px;
}

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

@media (min-width: 720px) {
  h1 {
    font-size: 38px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
