:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --surface-alt: #151515;
  --surface-soft: #1e1e1e;
  --border: #f5f5f5;
  --divider: rgba(255, 255, 255, 0.12);
  --text: #f6f6f6;
  --muted: #b3b3b3;
  --accent: #f6f6f6;
  --accent-contrast: #080808;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Special Elite", "Courier New", Courier, monospace;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

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

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  border-bottom-color: var(--text);
  opacity: 0.8;
}

.muted {
  color: var(--muted);
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.button:hover,
.btn:focus,
.button:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #e6e6e6;
  color: #050505;
}

.btn-ghost {
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 24px clamp(16px, 5vw, 72px);
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}

.site-brand {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.site-nav a {
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom: 1px solid var(--text);
}

.site-header .cta {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
  padding: clamp(80px, 12vw, 160px) clamp(16px, 8vw, 160px);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 48ch;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions.space-top {
  margin-top: 24px;
}

.section {
  padding: clamp(64px, 10vw, 120px) clamp(16px, 8vw, 160px);
}

.section-header {
  margin-bottom: clamp(32px, 6vw, 72px);
  max-width: 720px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.card {
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 40px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.card-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.card p {
  color: var(--muted);
}

.card a {
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.2rem;
}

.card a:hover,
.card a:focus {
  opacity: 0.9;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 6vw, 120px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 32px;
}

.page-header {
  margin-bottom: clamp(32px, 6vw, 72px);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.75rem;
}

.page-header .meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 64px);
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.prose {
  display: grid;
  gap: 1.5rem;
  color: var(--muted);
}

.sidebar-card {
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 40px var(--shadow);
  display: grid;
  gap: 16px;
}

.footer {
  padding: clamp(32px, 6vw, 72px);
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.footer a {
  color: var(--muted);
  border-bottom: none;
}

.footer a:hover,
.footer a:focus {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

small,
.time,
.meta {
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: clamp(32px, 6vw, 72px) 0;
}

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
  margin: 0;
  color: var(--text);
}

ul,
ol {
  padding-left: 1.5rem;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .cta {
    align-self: stretch;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }
}
