:root {
  --bg: #050505;
  --surface: #10100c;
  --surface-strong: #17150d;
  --border: rgba(233, 200, 77, 0.22);
  --border-strong: rgba(233, 200, 77, 0.38);
  --gold: #f7d756;
  --gold-soft: #e9c84d;
  --ink: #f7f0db;
  --muted: rgba(247, 240, 219, 0.74);
  --accent: #83cbbf;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

body {
  background:
    linear-gradient(180deg, rgba(131, 203, 191, 0.08), transparent 360px),
    var(--bg);
  margin: 0;
}

a {
  color: var(--gold-soft);
  text-underline-offset: 0.18em;
}

main u {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:focus-visible,
.cta:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  background: var(--gold);
  border-radius: 0 0 8px 0;
  color: var(--bg);
  font-weight: 800;
  left: 0;
  min-height: 44px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: 0;
  transform: translateY(-120%);
  transition: transform 140ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: rgba(5, 5, 5, 0.92);
  border-color: var(--border);
  border-style: solid;
  border-width: 0 0 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-footer {
  border-width: 1px 0 0;
  margin-top: 40px;
}

.wrap {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(247, 240, 219, 0.82);
  font-size: 14px;
  min-width: 44px;
  min-height: 36px;
  padding: 7px 12px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links .nav-cta {
  background: rgba(247, 215, 86, 0.14);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
  padding: 7px 14px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 56px 24px 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  justify-self: end;
  margin: 0;
  text-align: center;
}

.hero-art picture,
.hero-art svg.hero-illu {
  display: block;
}

.hero-art img,
.hero-art svg.hero-illu {
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 25%, rgba(247, 215, 86, 0.08), transparent 60%),
    linear-gradient(160deg, var(--surface-strong), #07060a 75%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  display: block;
  height: auto;
  max-width: 220px;
  object-fit: cover;
  width: 100%;
}

.hero-art svg.hero-illu {
  padding: 14px;
}

.hero-art figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

h1,
h2,
h3 {
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1.14;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin: 0 0 18px;
  max-width: 840px;
}

h2 {
  font-size: 28px;
  margin: 40px 0 12px;
}

h2[data-icon] {
  align-items: center;
  display: flex;
  gap: 14px;
}

h2[data-icon]::before {
  background: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 26px;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  width: 26px;
}

h2[data-icon="book"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4a2 2 0 0 1 2-2h6v18H4a2 2 0 0 1-2-2z'/><path d='M22 4a2 2 0 0 0-2-2h-6v18h6a2 2 0 0 0 2-2z'/><path d='M10 6H6M10 10H6M14 6h4M14 10h4'/></svg>"); }

h2[data-icon="quote"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 8H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h2v-4H5a1 1 0 0 1-1-1v-1h5V8zm12 0h-5a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h2v-4h-1a1 1 0 0 1-1-1v-1h5V8z'/></svg>"); }

h2[data-icon="users"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.2'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='17.5' cy='7' r='2.6'/><path d='M14.5 14.2c.9-.4 1.9-.6 3-.6 2.6 0 4.5 2 4.5 5'/></svg>"); }

h2[data-icon="compass"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polygon points='12,5 14,12 12,19 10,12' fill='black'/></svg>"); }

h2[data-icon="star"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='12,3 14.5,9 21,9.5 16,14 17.5,20.5 12,17 6.5,20.5 8,14 3,9.5 9.5,9'/></svg>"); }

h2[data-icon="globe"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><ellipse cx='12' cy='12' rx='4' ry='9'/><path d='M3 12h18'/></svg>"); }

h2[data-icon="balance"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M5 21h14M5 7h14M5 7l-3 7c0 1.7 1.3 3 3 3s3-1.3 3-3zM19 7l-3 7c0 1.7 1.3 3 3 3s3-1.3 3-3z'/></svg>"); }

h2[data-icon="check"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polyline points='8,12 11,15 16,9'/></svg>"); }

h2[data-icon="list"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='9' y1='6' x2='21' y2='6'/><line x1='9' y1='12' x2='21' y2='12'/><line x1='9' y1='18' x2='21' y2='18'/><circle cx='4' cy='6' r='1.5' fill='black'/><circle cx='4' cy='12' r='1.5' fill='black'/><circle cx='4' cy='18' r='1.5' fill='black'/></svg>"); }

h2[data-icon="info"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M9.5 9.5a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4'/><circle cx='12' cy='17.2' r='0.9' fill='black'/></svg>"); }

h2[data-icon="library"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='4' height='16'/><rect x='9' y='4' width='4' height='16'/><path d='M16.5 4.5l3.5 1-3.5 14.5-3.5-1z'/></svg>"); }

h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

p,
li {
  color: rgba(247, 240, 219, 0.88);
  font-size: 17px;
}

.lead {
  font-size: 20px;
  line-height: 1.58;
  max-width: 760px;
}

.answer {
  background: linear-gradient(135deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  margin: 20px 0 36px;
  padding: 22px;
}

.answer strong {
  color: var(--gold);
}

.cta {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-weight: 800;
  margin-top: 12px;
  min-height: 44px;
  padding: 0 20px;
  text-decoration: none;
}

.cta:hover {
  background: #ffe36f;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
}

.grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

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

.related a {
  display: block;
  font-weight: 800;
  min-height: 44px;
}

.reviewed {
  color: rgba(247, 240, 219, 0.62);
  font-size: 14px;
  margin-top: 36px;
}

blockquote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  margin: 20px 0;
  padding: 18px 20px 18px 56px;
  position: relative;
}

blockquote::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23f7d756'><path d='M9 8H4a4 4 0 0 0-4 4v8a4 4 0 0 0 4 4h4v-6H6a2 2 0 0 1-2-2v-2h5V8zm15 0h-5a4 4 0 0 0-4 4v8a4 4 0 0 0 4 4h4v-6h-2a2 2 0 0 1-2-2v-2h5V8z'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 22px;
  left: 18px;
  opacity: 0.85;
  position: absolute;
  top: 20px;
  width: 22px;
}

blockquote p {
  font-size: 18px;
  margin-top: 0;
}

.diagram {
  background: linear-gradient(160deg, var(--surface-strong), #06060a 80%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  margin: 28px 0;
  padding: 22px;
}

.diagram svg {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}

.diagram figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

cite {
  color: var(--muted);
  display: block;
  font-style: normal;
  margin-top: 10px;
}

ol:not([class]) {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

ol:not([class]) li {
  counter-increment: step;
  margin: 0 0 14px;
  min-height: 34px;
  padding-left: 48px;
  position: relative;
}

ol:not([class]) li::before {
  align-items: center;
  background: rgba(247, 215, 86, 0.14);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold);
  content: counter(step);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -1px;
  width: 32px;
}

.breadcrumbs {
  color: rgba(247, 240, 219, 0.62);
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: rgba(247, 240, 219, 0.78);
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px;
  }

  .nav {
    align-items: flex-start;
    min-height: 0;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-art {
    justify-self: start;
  }

  .hero-art img {
    max-width: 116px;
  }

  .hero-art figcaption {
    text-align: left;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 20px;
  }

  .answer {
    padding: 20px;
  }
}
