@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Wordmark";
  src: url("/fonts/wordmark.woff2") format("woff2");
  font-weight: 800;
  font-display: block;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.1);
  --surface: #f6f6f6;
  --white: #ffffff;
  --primary: #1242fe;
  --warn-bg: #fff6e5;
  --warn-line: #f3d9a4;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

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

.brand img {
  width: 30px;
  height: 31px;
}

.wordmark {
  font-family: "Wordmark", Georgia, serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

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

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

.doc h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 44px 0 12px;
  scroll-margin-top: 88px;
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

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

.doc li {
  margin-bottom: 6px;
}

.updated {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 28px;
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

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

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

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}

.notice > :last-child {
  margin-bottom: 0;
}

.toc {
  columns: 2 240px;
  column-gap: 24px;
  padding-left: 20px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

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

th {
  background: var(--surface);
  font-weight: 700;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 24px;
}

.button:hover {
  background: #2a2a2a;
}

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

summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

details[open] summary {
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 15px;
}

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

.site-footer nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 4px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 1400px;
  height: 580px;
  transform: translateX(-50%);
  background: url("/aurora.jpg") center / cover no-repeat;
  animation: breathe 9s ease-in-out infinite alternate;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 240px;
}

.hero-logo {
  width: 101px;
  height: 103px;
}

.hero .wordmark {
  display: block;
  font-size: 44px;
  margin: 14px 0 18px;
}

.hero p {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 28px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
}

@keyframes breathe {
  from {
    transform: translateX(-50%) scale(1);
  }
  to {
    transform: translateX(-52%) scale(1.06, 0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }
  a {
    color: inherit;
  }
}
