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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --accent: #4f8ef7;
  --accent-dim: #1e3a6e;
  --text: #e2e4ed;
  --muted: #7c7f90;
  --code-bg: #12141c;
  --green: #3ecf6e;
  --yellow: #f5c842;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
header h1 span { color: var(--accent); }
header p { color: var(--muted); margin-top: 0.5rem; font-size: 1.05rem; }

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

section { margin-bottom: 3rem; }

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

h2 .step {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 1.75rem 0 0.6rem;
}

.section-desc {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 1rem;
}

p { color: var(--text); margin-bottom: 0.75rem; }
p:last-of-type { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 0.9rem; }

.updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 2.5rem; }

ul {
  margin: 0.5rem 0 0.75rem 1.4rem;
  color: var(--text);
}

ul li { margin-bottom: 0.3rem; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

pre code { color: var(--text); }

.comment { color: var(--muted); }
.dns-type { color: var(--yellow); }
.dns-value { color: var(--green); }
.placeholder { color: #c792ea; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.card pre,
.card table { margin-bottom: 0; }

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-family: "SF Mono", monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

td code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--green);
}

.nowrap td {
  white-space: nowrap;
  word-break: keep-all;
}

td.mono {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  color: var(--green);
  white-space: nowrap;
  word-break: keep-all;
}

.ref-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer p + p { margin-top: 0.4rem; }
