:root {
  --bg-primary: #0f1115;
  --bg-surface: #161920;
  --bg-surface-alt: #1d212b;
  --text-primary: #e8e6e1;
  --text-muted: #a3a8b3;
  --accent-gold: #c9a24b;
  --accent-gold-soft: rgba(201, 162, 75, 0.14);
  --accent-crimson: #9e3333;
  --border-subtle: #2a2f3d;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #161920 0%, #0f1115 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.site-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: #ffffff;
}

.subtitle {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.top-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:hover {
  color: var(--accent-gold);
  background-color: var(--accent-gold-soft);
}

/* Main & Typography */
main {
  padding: 2.5rem 0 4rem;
}

section {
  margin-bottom: 3.25rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #e4c170;
}

ul {
  padding-left: 1.35rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.65rem;
}

.meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Cards & Grids */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
}

.highlight-box {
  border-left: 3px solid var(--accent-gold);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.grid-3 .card h3 {
  margin-top: 0;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  font-size: 0.93rem;
  text-align: left;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background-color: var(--bg-surface-alt);
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

tr:last-child td {
  border-bottom: none;
}

.sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Callout */
.callout {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.35rem;
  background-color: var(--bg-surface-alt);
  border-left: 3px solid var(--accent-crimson);
  border-radius: 0 6px 6px 0;
  font-size: 0.96rem;
}

/* Network List */
.network-list li {
  margin-bottom: 0.8rem;
}

code {
  background-color: var(--bg-surface-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-note {
  font-size: 0.82rem;
  margin-bottom: 0;
}
