@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #f5f5f7;
  --white: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #32d74b;
  --max: 720px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { opacity: 0.7; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(245, 245, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.top-inner,
.wrap,
.foot-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 18px;
}

.brand span { color: var(--accent); }

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.nav a { text-decoration: none; color: var(--muted); }
.nav a.active { color: var(--text); font-weight: 600; }

.hero {
  padding: 48px 0 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}

.toc a {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}

.content {
  padding: 8px 0 64px;
  display: grid;
  gap: 18px;
}

.content h2 {
  margin: 18px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.content p,
.content li { color: var(--muted); font-size: 16px; }

.content ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }

.content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px;
}

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

.content th {
  background: #eeeef2;
  color: var(--text);
  font-weight: 600;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  background: var(--text);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}

.foot a { color: var(--muted); text-decoration: none; }

@media (max-width: 560px) {
  .top-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .content th:nth-child(3),
  .content td:nth-child(3) { display: none; }
}
