:root {
  --lacquer: #161410;
  --lacquer-deep: #0b0a08;
  --raised: #201d19;
  --champagne: #edece8;
  --muted: #b3aea3;
  --faint: #857f75;
  --gold: #ecb846;
  --gold-rich: #c7942e;
  --gold-line: rgba(199, 148, 46, 0.55);
  --hairline: rgba(255, 255, 255, 0.10);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--lacquer-deep);
  color: var(--champagne);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--champagne);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--champagne); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; font-size: 0.92rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--champagne); }

.hero {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  max-width: none;
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-gold {
  background: var(--gold);
  color: #1f1708;
}
.btn-gold:hover { background: #f0c45a; }
.btn-ghost {
  background: transparent;
  color: var(--champagne);
  border-color: var(--gold-line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-visual {
  margin-top: 0.5rem;
  background: var(--lacquer);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero-visual img {
  width: min(220px, 50vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

section { margin-bottom: 2.75rem; }
h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.4rem 0 0.45rem;
  color: var(--champagne);
}
.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.75rem;
  max-width: 42em;
}
.prose ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.prose li { margin-bottom: 0.4rem; }
.meta {
  color: var(--faint);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.card {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1.1rem 1.15rem;
}
.card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  background: var(--lacquer);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.95rem 1.1rem 0.95rem 3.2rem;
  position: relative;
  color: var(--muted);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-rich);
  font-weight: 700;
}
.steps strong { color: var(--champagne); font-weight: 600; }

pre {
  background: var(--lacquer);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  color: var(--champagne);
  line-height: 1.55;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.faq details {
  border-top: 1px solid var(--hairline);
  padding: 0.9rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--champagne);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 560px) {
  .nav-desktop { display: none; }
  h1 { max-width: none; }
}
