/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ---------- Background ---------- */
body {
  background-color: #0b0d10;
  color: #d8d8d8;
  font-family: "EB Garamond", serif;
}

/* ---------- Layout ---------- */
.page {
  display: flex;
  justify-content: center;
}

.content {
  width: 100%;
  max-width: 680px;
  padding: 4rem 1.5rem 6rem;
}

/* ---------- Title ---------- */
h1 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.meta {
  font-size: 0.9rem;
  color: #9a9a9a;
  margin-bottom: 2.5rem;
}

/* ---------- Text ---------- */
p {
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

/* ---------- Headings ---------- */
h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* ---------- Inline code ---------- */
code {
  background-color: #1e2126;      /* lighter gray, visible but calm */
  color: #e2e2e2;
  padding: 0.05em 0.3em;          /* much less vertical padding */
  border-radius: 3px;
  font-size: 0.9em;               /* slightly smaller than text */
  position: relative;
  top: -0.05em;                   /* baseline alignment tweak */
}

/* ---------- Code blocks ---------- */
pre {
  background-color: #14161a;
  padding: 1.2rem;
  overflow-x: auto;
  border-radius: 6px;
  margin: 2rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: monospace;
}

/* ---------- Math ---------- */
.math {
  margin: 2rem 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  p,
  li {
    font-size: 1.3rem;
    line-height: 1.75;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.7rem;
  }
}

/* ---------- Back / Home Navigation ---------- */
.nav-back {
  position: absolute;
  top: 1.8rem;
  left: 4.5rem;
}

.nav-back a {
  font-size: 1.2rem;
  color: #9a9a9a;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-back a:hover {
  color: #d8d8d8;
  transform: translateX(2px);
}

.content a {
  color: inherit;
  text-decoration: underline;  
  text-decoration-color: white; 
  display: inline;       
  text-underline-offset: 0.15em;
  transition: text-decoration 0.2s ease;
}

.content a:hover {
  text-decoration: underline;
}


/* ---------- Figures (Notion-style) ---------- */
.figure {
  margin: 2rem 0;              /* vertical breathing room */
  text-align: center;
}

.figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;          /* subtle, optional */
}

.figure figcaption {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: #9a9a9a;
  line-height: 1.5;
}

.reading-list {
  list-style: disc;
  padding-left: 1.5rem;
  max-width: 900px;
}

.reading-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.reading-list a {
  font-size: 1.2rem;          /* ↑ readability */
  font-weight: 400;
  color: #eaeaea;              /* neutral, book-like */
  text-decoration: none;
}

.reading-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}