:root {
  --bg: #d6c1a3;
  --bg-deep: #c8af8d;
  --text: #111111;
  --muted: #111111;
  --line: rgba(17, 17, 17, 0.28);
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 12% 8%, #e4d3bb 0%, var(--bg) 40%, var(--bg-deep) 80%);
  color: var(--text);
  overflow-y: auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(rgba(46, 34, 21, 0.15) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.page {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 4.25rem 0 3rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  width: min(900px, 92vw);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.45rem;
}

.navbar {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  font-size: 0.95rem;
}

.navbar a:hover,
.navbar a:focus-visible,
.navbar a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.layout {
  margin-top: 1.2rem;
  padding: 2.5rem 1.3rem 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  font-weight: 500;
  margin: 0.35rem 0 0.7rem;
  line-height: 1;
}

.tagline,
.note {
  max-width: 60ch;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tagline a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
}

.tagline a:hover,
.tagline a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.note {
  margin-top: 2rem;
  font-style: italic;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.2rem;
  color: #111111;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.timeline {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.timeline a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.timeline a:hover,
.timeline a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.timeline ul li {
  margin-bottom: 1rem; /* Adjust this value (e.g., 10px, 2rem) for more or less gap */
}


.entry {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.entry-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.entry h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.entry p {
  margin: 0;
  color: #111111;
  line-height: 1.65;
}

.links {
  margin-top: 2.4rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .page {
    width: 94vw;
    padding-top: 6rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout {
    padding: 2rem 1rem 2.5rem;
  }

  .entry h3 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .note {
    font-size: 1.1rem;
  }
}

/* Increase MathJax size globally */
mjx-container {
  font-size: 200% !important; /* Adjust percentage as needed */
  color: inherit;
}

/* Optional: Add extra space around block equations */
mjx-container[display="true"] {
  margin: 1.5em 0 !important;
}
