@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=DM+Mono:ital,wght@0,300;0,400;1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* ── VARIABLES ───────────────────────────────────────── */
:root {
  --bg: #faf5ef;
  --ink: #050301;
  --link: #c084fc;
  --sidebar-w: 180px;
  --logo-size: 3rem;
  --ghost-size: 1.6rem;
  --body-font: "Crimson Text", serif;
  --mono-font: "DM Mono", monospace;
  --blog-font: "Atkinson Hyperlegible", sans-serif;

}

.dark {
  --bg: #faf5ef;
  --ink: #050301;
  --link: #e2e8f0;
}

/* ── RESET ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.15rem;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 100;
  border-right: 1px solid rgba(5, 3, 1, 0.00);
  overflow: hidden;
}

/* main ptrfs — links to about */
.sidebar-logo {
  font-family: var(--body-font);
  font-style: italic;
  font-size: var(--logo-size);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  user-select: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.sidebar-logo:hover {
  opacity: 0.65;
}

/* ghost rows container */
.sidebar-ghosts {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  overflow: hidden;
}

.sidebar-ghost-row {
  font-family: var(--body-font);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  user-select: none;
  flex-shrink: 0;
  /* color + opacity set by JS */
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.content {
  margin-left: var(--sidebar-w);
  padding: 3rem 3.5rem;
  max-width: 780px;
  min-height: 100vh;
}

.blog-title {
  font-family: var(--body-font);
  font-size: 2.0rem;
  color: #050301;
}

.blog-blurb {
  font-size: 1.25rem;
}

/* ── UTILITY CLASSES ─────────────────────────────────── */
.page-section {
  margin-bottom: 0rem;
  font-family: var(--blog-font);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.page-title {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.page-subtitle {
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 1.8rem;
}

.page-body {
  font-family: var(--blog-font);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 60ch;
}

.page-body+.page-body {
  margin-top: 1rem;
}

.page-divider {
  border: none;
  border-top: 1px solid rgba(5, 3, 1, 0.0);
  margin: 3rem 0;
}

code {
  font-family: var(--mono-font);
  font-size: 0.88em;
  background: rgba(5, 3, 1, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.content a {
  opacity: 1;
  transition: color 0.25s ease;
}

.content a:hover {
  opacity: 1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--link); 
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(5, 3, 1, 0.07);
    overflow: visible;
  }

  .sidebar-ghosts {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }
}