:root {
  --page: oklch(0.145 0.012 75);
  --raised: oklch(0.19 0.014 75);
  --text: oklch(0.94 0.015 85);
  --secondary: oklch(0.8 0.018 85);
  --muted: oklch(0.7 0.018 85);
  --gold: oklch(0.77 0.13 78);
  --gold-light: oklch(0.85 0.11 82);
  --border: oklch(0.94 0.015 85 / 0.18);
  color-scheme: dark;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 90% 0%, oklch(0.51 0.14 253 / 0.1), transparent 32rem),
    radial-gradient(ellipse at 0% 35%, oklch(0.77 0.13 78 / 0.045), transparent 30rem),
    var(--page);
  color: var(--text);
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, summary { touch-action: manipulation; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
  border-radius: 3px;
}
p, li { max-width: 72ch; }
p { margin: 0 0 1.25rem; }
strong { color: var(--text); font-weight: 600; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: oklch(0.145 0.012 75 / 0.92);
  backdrop-filter: blur(14px);
}
.guide-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  width: min(100%, 76rem);
  min-height: 76px;
  margin: auto;
  padding: 0.75rem 1.25rem;
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.guide-brand svg { width: 26px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.guide-brand b { color: var(--gold); font-weight: 600; }
.guide-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 1.25rem; }
.guide-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  transition: color 160ms ease-out;
}
.guide-nav a:hover { color: var(--gold-light); }
.guide-nav .guide-nav__cabinet { color: var(--text); }

.guide-main { width: min(100%, 72rem); margin: auto; padding: 0 1.25rem; }
.breadcrumbs { margin: 2rem 0 4rem; color: var(--muted); font-size: 0.88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--gold-light); }

.guide-hero { max-width: 58rem; padding-bottom: 4rem; }
.guide-kicker {
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { max-width: 18ch; font-size: clamp(2.7rem, 10vw, 5.7rem); }
h2 { font-size: clamp(2rem, 6vw, 3.3rem); }
h3 { font-size: 1.45rem; line-height: 1.25; }
.guide-lead { margin-top: 1.75rem; color: var(--secondary); font-size: 1.15rem; line-height: 1.75; }
.guide-updated { margin-top: 1.25rem; color: var(--muted); font-size: 0.85rem; }

.guide-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.guide-button:hover { transform: translateY(-2px); }
.guide-button--primary { border-color: var(--gold); background: var(--gold); color: var(--page); }
.guide-button--primary:hover { background: var(--gold-light); }
.guide-button--secondary:hover { border-color: var(--text); background: var(--text); color: var(--page); }

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 4rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}
.guide-toc a { color: var(--secondary); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 5px; }
.guide-toc a:hover { color: var(--gold-light); }

.guide-section { padding: 4rem 0; border-top: 1px solid var(--border); scroll-margin-top: 6rem; }
.guide-section > p, .guide-section > ul, .guide-section > ol, .guide-section > h3 { margin-top: 1.5rem; }
.guide-section > div > p { color: var(--secondary); }
.guide-section ul, .guide-section ol { padding-left: 1.35rem; }
.guide-section li { margin-bottom: 0.7rem; padding-left: 0.3rem; color: var(--secondary); }
.guide-section a:not(.guide-button):not(.device-link) { color: var(--gold-light); text-decoration: underline; text-decoration-color: oklch(0.85 0.11 82 / 0.35); text-underline-offset: 4px; }
.guide-section a:not(.guide-button):not(.device-link):hover { text-decoration-color: currentColor; }

.guide-steps { margin: 2.5rem 0 0; padding: 0 !important; list-style: none; counter-reset: guide-step; }
.guide-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0 !important;
  padding: 2rem 0 !important;
  border-top: 1px solid var(--border);
  counter-increment: guide-step;
}
.guide-step::before {
  content: counter(guide-step);
  grid-row: 1 / span 2;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
}
.guide-step h3 { grid-column: 2; }
.guide-step p { grid-column: 2; margin: 0.5rem 0 0; color: var(--secondary); }
.guide-step ul { grid-column: 2; margin: 0.75rem 0 0; }

.guide-note { margin-top: 2rem; padding: 1rem 0 1rem 1.25rem; border-left: 1px solid var(--gold); }
.guide-note p { margin: 0; color: var(--secondary); }
.guide-note strong { display: block; margin-bottom: 0.35rem; font-family: 'Oswald', sans-serif; font-weight: 500; }

.device-links { display: grid; grid-template-columns: 1fr; gap: 0 2rem; margin-top: 2rem; }
.device-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  border-top: 1px solid var(--border);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  transition: color 160ms ease-out, transform 160ms ease-out;
}
.device-link::after { content: '↗'; color: var(--gold); }
.device-link:hover { color: var(--gold-light); transform: translateX(4px); }

.guide-faq { margin-top: 2rem; }
.guide-faq details { border-top: 1px solid var(--border); }
.guide-faq details:last-child { border-bottom: 1px solid var(--border); }
.guide-faq summary {
  position: relative;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; position: absolute; right: 0.5rem; color: var(--gold); font-size: 1.5rem; }
.guide-faq details[open] summary::after { content: '−'; }
.guide-faq details p { padding: 0 2rem 1.4rem 0; margin: 0; color: var(--secondary); }

.guide-cta { padding: 4rem 0 5rem; border-top: 1px solid var(--border); }
.guide-cta h2 { max-width: 18ch; }
.guide-cta p { margin-top: 1.25rem; color: var(--secondary); }
.guide-footer { border-top: 1px solid var(--border); }
.guide-footer__inner { width: min(100%, 72rem); margin: auto; padding: 2rem 1.25rem; }
.guide-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.guide-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.85rem; }
.guide-footer a:hover { color: var(--gold-light); }
.guide-footer p { margin: 1rem 0 0; color: var(--muted); font-size: 0.82rem; }

@media (min-width: 44rem) {
  .guide-header__inner, .guide-main, .guide-footer__inner { padding-inline: 2rem; }
  .device-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { padding-bottom: 5rem; }
  .guide-section { padding-block: 5rem; }
}
@media (max-width: 35rem) {
  body { font-size: 16px; }
  .guide-header { position: relative; }
  .guide-header__inner { align-items: flex-start; }
  .guide-nav { gap: 0 0.9rem; }
  .guide-nav a { font-size: 0.8rem; }
  .guide-nav .guide-nav__support { display: none; }
  .breadcrumbs { margin-bottom: 2.5rem; }
  .guide-actions { flex-direction: column; align-items: stretch; }
  .guide-button { width: 100%; }
  .guide-step { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
