:root {
  --page: #ebebe6;
  --sidebar: #e3e3dd;
  --text: #2f302e;
  --muted: #666862;
  --accent: #3a3b38;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 38px 28px;
  background: var(--sidebar);
}

.site-title {
  display: inline-block;
  margin: 0 0 44px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.05;
  text-decoration: none;
}

nav {
  display: grid;
  gap: 20px;
}

nav a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.35;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav a.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  background: var(--accent);
  border-radius: 999px;
}

main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 14vh 9vw 8vh;
}

.content {
  max-width: 760px;
}

h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.one-day {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--text);
  white-space: nowrap;
}

.illustration {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin-top: 42px;
  mix-blend-mode: multiply;
}

.home-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
}

.home-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Active section cue on the one shared TBA page, without JavaScript. */
body:has(#blog:target) .nav-blog,
body:has(#course:target) .nav-course,
body:has(#projects:target) .nav-projects {
  font-weight: 600;
}

body:has(#blog:target) .nav-blog::before,
body:has(#course:target) .nav-course::before,
body:has(#projects:target) .nav-projects::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.route-target {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 100%;
  }

  .sidebar {
    position: static;
    width: 100%;
    padding: 26px 24px 22px;
  }

  .site-title {
    margin-bottom: 24px;
  }

  nav {
    gap: 12px;
  }

  main {
    margin-left: 0;
    padding: 56px 24px 48px;
  }

  .illustration {
    margin-top: 30px;
  }
}