:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #101d2e;
  --surface-2: #16263a;
  --text: #f6f7fb;
  --muted: #a8b4c4;
  --accent: #ff7a1a;
  --accent-2: #ffad66;
  --border: rgba(255, 255, 255, 0.11);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 122, 26, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

a { color: inherit; }

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(18px);
}

nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #17100a;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  padding: 92px 0 58px;
  max-width: 850px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 15px 0 22px;
  font-size: clamp(2.55rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.27rem);
}

.guide-grid {
  padding: 20px 0 86px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.guide-card h2 { margin: 10px 0 10px; line-height: 1.18; }
.guide-card p { margin: 0 0 18px; color: var(--muted); }
.guide-card a { color: var(--accent-2); font-weight: 800; text-decoration: none; }
.guide-card a:hover { text-decoration: underline; }

.article-layout {
  padding: 76px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 230px;
  gap: 70px;
  align-items: start;
}

article h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
article h2 { margin: 50px 0 12px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.18; }
article h3 { margin: 30px 0 8px; font-size: 1.18rem; }
article p, article li { color: #c4ccd8; }
article strong { color: var(--text); }
article ul, article ol { padding-left: 24px; }
article li { margin-bottom: 10px; }

.byline {
  margin: -8px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.callout {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 173, 102, 0.32);
  border-radius: 16px;
  background: rgba(255, 122, 26, 0.08);
  color: #f7d7bd;
}

.example {
  margin: 24px 0;
  padding: 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}

.example strong { display: block; margin-bottom: 7px; }

aside {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

aside strong { display: block; margin-bottom: 10px; }
aside a { display: block; margin: 8px 0; color: var(--muted); text-decoration: none; }
aside a:hover { color: var(--accent-2); }

.related {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related a { color: var(--accent-2); font-weight: 750; }

footer {
  padding: 34px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  aside { position: static; }
}
