:root {
  color-scheme: light;
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --accent: #10b981;
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 12px 48px rgba(79, 70, 229, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(79, 70, 229, 0.12), transparent 34rem),
    linear-gradient(180deg, #eef2ff 0, var(--bg) 18rem);
  line-height: 1.65;
}

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

a:hover {
  color: var(--primary-dark);
}

.page {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 72px;
}

header {
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.24);
}

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: #f3f4f6;
}

h1 {
  max-width: 720px;
  margin: 30px 0 10px;
  font-size: clamp(38px, 7vw, 60px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.08;
}

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

main > p,
main > ul,
main > h2,
.notice {
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  margin: 0;
  padding-left: 34px;
  padding-right: 34px;
}

main > p:first-of-type {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  padding-top: 34px;
}

main > p:last-of-type,
main > ul:last-of-type {
  border-bottom: 1px solid var(--border);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding-bottom: 34px;
}

h2 {
  padding-top: 30px;
  padding-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}

p,
li {
  font-size: 16px;
}

p {
  padding-top: 6px;
  padding-bottom: 14px;
}

ul {
  padding-top: 6px;
  padding-bottom: 14px;
  padding-left: 58px;
}

.notice {
  margin: 20px 0;
  padding-top: 16px;
  padding-bottom: 16px;
  background: #f5f3ff;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 12px;
  color: var(--text-muted);
}

footer {
  margin-top: 34px;
  padding: 28px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.footer-links a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 32px, 840px);
    padding-top: 72px;
  }

  main > p,
  main > ul,
  main > h2,
  .notice {
    padding-left: 22px;
    padding-right: 22px;
  }

  ul {
    padding-left: 42px;
  }

  .lang-switcher {
    top: 12px;
    right: 12px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}
