:root {
  --bg: #f6f7fb;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --surface: #ffffff;
  --accent: #c83737;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --container: 1120px;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand a {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  display: none;
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
}

.site-nav a:hover {
  background: rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
}

@media (min-width: 620px) {
  .nav-toggle {
    display: none;
  }
  .site-nav a {
    display: inline-flex;
  }
  .site-nav a:hover {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
  }
}

@media (max-width: 619px) {
  .nav-open .site-nav {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .nav-open .site-nav a {
    display: block;
    padding: 12px;
    margin: 4px 0;
  }
}

.site-main {
  min-height: 60vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: left;
  padding: 72px 0;
  background: radial-gradient(900px 380px at 20% 0%, rgba(200, 55, 55, 0.45), rgba(200, 55, 55, 0)),
    linear-gradient(135deg, #0b1220 0%, #111b2e 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero h1 {
  color: #fff;
  font-weight: 750;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px 0;
}

.hero .lead {
  font-size: 1.1rem;
  max-width: 75ch;
  margin: 16px 0 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.button a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-weight: 650;
}

.button.primary a {
  background: rgba(255, 255, 255, 0.92);
  color: #0b1220;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.primary a:hover {
  background: #fff;
  color: #0b1220;
  text-decoration: none;
}

.button.alt a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button.alt a:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.content {
  background: transparent;
  padding: 38px 0 54px;
}

.page-title {
  font-weight: 750;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 18px 0;
  letter-spacing: -0.015em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  letter-spacing: -0.015em;
}

.prose h2 {
  font-weight: 750;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
  margin: 42px 0 16px 0;
}

.prose h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 22px 0 10px 0;
}

.prose p,
.prose li {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.prose code {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.15em 0.35em;
  color: var(--text);
  font-size: 0.95em;
}

.prose pre {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.prose blockquote {
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-left: 4px solid rgba(200, 55, 55, 0.45);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  text-align: left;
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
}

.site-footer {
  padding: 56px 0 48px;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.footer-desc {
  margin-top: 8px;
  max-width: 70ch;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
