*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --surface: #0a0a0a;
  --surface-2: #111827;
  --border: rgba(245, 158, 11, 0.25);
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--gray-300);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber-400);
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--amber-300);
  text-decoration-color: var(--amber-300);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-header .inner,
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  color: var(--amber-400);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header-cta {
  display: inline-block;
  background: var(--amber-500);
  color: var(--black);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--amber-400);
  color: var(--black);
  transform: translateY(-1px);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.container.wide {
  max-width: 1120px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

h1,
h2,
h3 {
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 24px;
}

h1 .accent,
h2 .accent {
  color: var(--amber-400);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--amber-500);
}

h3 {
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--gray-100);
}

.lead {
  font-size: 1.1875rem;
  color: var(--gray-300);
}

.hero-image {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figure {
  margin: 32px 0;
}

figure.inline-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--gray-400);
  text-align: center;
}

.cluster {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 0 0 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.cluster:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.cluster h2 {
  margin-top: 0;
}

.cluster ul {
  list-style: none;
  padding: 0;
}

.cluster li a {
  font-weight: 600;
}

.related {
  margin-top: 56px;
  padding: 24px 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related h2 {
  margin-top: 0;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-box {
  margin: 48px 0 0;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
  border: 1px solid var(--border);
  text-align: center;
}

.cta-box p {
  color: var(--gray-100);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .container {
    padding: 24px 16px 48px;
  }

  .cluster,
  .related {
    padding: 24px 16px;
  }
}
