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

:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --panel: #222;
  --panel-2: #252525;
  --line: #2e2e2e;
  --text: #f0eee8;
  --muted: #bbb;
  --soft: #888;
  --accent: #e8a87c;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 0;
}

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  border-bottom: 1px dotted #555;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.container {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
}

.article {
  max-width: 760px;
}

.kicker {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 750;
  color: var(--text);
  margin-bottom: .85rem;
  line-height: 1.12;
}

.lead {
  font-size: 17px;
  color: #d5d0c7;
  max-width: 720px;
  margin-bottom: 2rem;
}

.meta-line {
  font-size: 12px;
  color: #777;
  margin: -.35rem 0 2.2rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--text);
  margin: 2.6rem 0 .85rem;
  line-height: 1.25;
}

h3 {
  font-size: .95rem;
  font-weight: 750;
  color: #ded8cf;
  margin: 1.6rem 0 .55rem;
}

p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 1rem;
}

p strong,
li strong,
td strong {
  color: #ded8cf;
}

ul,
ol {
  margin: 0 0 1.2rem 1.35rem;
}

li {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: .55rem;
  padding-left: .15rem;
}

a {
  color: var(--accent);
  border-bottom: 1px dotted rgba(232,168,124,.55);
  text-decoration: none;
  padding-bottom: 1px;
}

a:hover {
  border-bottom-color: var(--accent);
  border-bottom-style: solid;
}

.tldr,
.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0 2.25rem;
}

.tldr p,
.note p {
  margin-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 2rem 0 2.5rem;
}

.guide-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  background: var(--panel-2);
  border-color: rgba(232,168,124,.45);
}

.guide-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: .3rem;
}

.guide-card span {
  display: block;
  color: #aaa;
  font-size: 13px;
  line-height: 1.55;
}

.toc {
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.75rem 0 2.25rem;
}

.toc strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: .55rem;
}

.toc ol {
  margin-bottom: 0;
}

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

.step-list > li {
  counter-increment: steps;
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: 1.1rem;
}

.step-list > li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 13.5px;
}

th,
td {
  border: 1px solid var(--line);
  padding: .65rem .75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel);
  color: #ded8cf;
  font-weight: 700;
}

td {
  color: #aaa;
}

.cta-row {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  align-items: center;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 750;
  font-size: 14px;
  padding: .82rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
}

.cta-button:hover {
  opacity: .9;
  border: 0;
}

.secondary-link {
  color: #bbb;
  font-size: 14px;
}

.page-footer {
  max-width: 760px;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid #2a2a2a;
  font-size: 12px;
  color: #777;
}

.page-footer p {
  font-size: 12px;
  color: #777;
}

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 1.25rem;
  }

  .nav-links {
    justify-content: flex-start;
    gap: .75rem;
  }

  .container {
    padding: 2.4rem 1.2rem 3rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
