/* Root theme variables */
:root {
  --bg-0: #0f1115;        /* page background */
  --bg-1: #171a21;        /* surfaces */
  --bg-2: #1f2430;        /* elevated surfaces */
  --text-0: #e6e9ef;      /* primary text */
  --text-1: #bcc4d0;      /* secondary text */
  --muted: #7f8aa3;       /* muted */
  --accent: #4ea1ff;      /* blue highlight */
  --accent-strong: #2f85e5;
  --border: #2a3040;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Global reset-ish */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 20% 0%, #12151b 0%, var(--bg-0) 60%) fixed;
  color: var(--text-0);
  font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Page header */
.title {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 22px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.title h1 {
  margin: 0 0 4px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.title h2 {
  margin: 0;
  color: var(--text-1);
  font-weight: 500;
}

/* Layout */
.side-menu {
  position: fixed;
  top: 92px; /* below sticky header */
  left: 0;
  width: 245px;
  height: calc(100vh - 92px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-right: 1px solid var(--border);
  padding: 20px 16px;
}

.content {
  max-width: 1500px;
  margin: 32px auto;
  padding: 0 24px;
  /* leave space for side menu on desktop */
  margin-left: calc(240px + 32px);
}

/* Side menu links */
.side-menu a {
  display: block;
  color: var(--text-1);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.06s ease;
}

/* Current page (no href) appears active */
.side-menu a:not([href]),
.side-menu a.active {
  color: var(--text-0);
  background: rgba(78, 161, 255, 0.12);
  border: 1px solid rgba(78, 161, 255, 0.22);
}

.side-menu a[href]:hover {
  color: var(--text-0);
  background: rgba(78, 161, 255, 0.08);
}

.side-menu a:active {
  transform: translateY(1px);
}

/* Content headings */
.content h1 {
  margin-top: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
}

 .sectionHeader {
   margin: 32px 0 8px 0;
   padding-left: 12px;
   border-left: 4px solid var(--accent);
   color: var(--text-0);
   scroll-margin-top: 150px;
 }
 
/* Typography */
.content p {
  color: var(--text-0);
}

.content b,
.content strong {
  color: var(--text-0);
}

.content ul, .content ol {
  margin: 8px 0 16px 20px;
  color: var(--text-1);
}

.content a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.content a:hover {
  color: var(--accent-strong);
}

/* Media blocks */
.fullImage {
  width: 100%;
  border-radius: var(--radius);
  background: #0c0e12;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.quarterImage {
  width: calc(50% - 20px);
  display: inline-block;
  vertical-align: middle;
  margin: 6px;
  border-radius: var(--radius-sm);
  background: #0c0e12;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

video {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0c0e12;
}

/* Details and helpers */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #0e1218;
  color: #cde3ff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

pre {
  padding: 14px 16px;
  overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 1050px) {
  .content {
    margin-left: calc(240px + 24px);
  }
}

@media (max-width: 860px) {
  .title {
    position: relative; /* unstick for mobile simplicity */
  }
  .side-menu {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .side-menu a {
    display: inline-block;
    padding: 8px 10px;
  }
  .content {
    margin: 16px auto;
    padding: 0 16px;
    margin-left: 0;
  }
  .quarterImage {
    width: 100%;
    margin: 8px 0;
  }
}
