:root {
  color-scheme: light;
  --background: #fbfbfa;
  --text: #1f1f1d;
  --muted: #696862;
  --quiet: #8b8981;
  --link: #292925;
  --space-left: clamp(16rem, 27vw, 24rem);
  --space-top: clamp(4rem, 15vh, 10rem);
  --measure: 38rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #000;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.2rem;
}

.skip-link {
  background: var(--text);
  color: var(--background);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  left: 1rem;
  padding: 0.4rem 0.6rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-identity,
.site-nav {
  bottom: clamp(1.5rem, 4vw, 3rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  position: fixed;
  z-index: 2;
}

.site-identity {
  color: var(--muted);
  left: clamp(1.5rem, 4vw, 3rem);
  max-width: 15rem;
}

.site-identity p {
  margin: 0;
}

.site-identity .site-title {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 0.8rem;
  right: clamp(1.5rem, 4vw, 3rem);
}

.site-nav a,
.return-link {
  color: var(--muted);
}

.home {
  margin-left: var(--space-left);
  max-width: min(68rem, calc(100vw - var(--space-left) - 2rem));
  padding-bottom: 16rem;
  padding-top: var(--space-top);
}

.post-index {
  margin-bottom: clamp(5rem, 16vh, 10rem);
  max-width: 30rem;
}

.post-index h1 {
  color: var(--quiet);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.post-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-index li {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 0 0.35rem;
}

.post-index time,
.post-meta,
.return-link {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
}

.post-stream {
  max-width: var(--measure);
}

.post {
  margin: 0 0 clamp(7rem, 20vh, 13rem);
}

.post-header {
  margin-bottom: clamp(2rem, 7vh, 4rem);
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.post h1,
.post h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.post h2 a {
  text-decoration: none;
}

.post-body {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.85;
}

.post-body p {
  margin: 0 0 1.55rem;
}

.post-body img {
  display: block;
  height: auto;
  margin: 3rem 0;
  max-width: 100%;
}

.post-page {
  margin-left: var(--space-left);
  max-width: var(--measure);
  padding: var(--space-top) 1.5rem 9rem 0;
}

.return-link {
  display: inline-block;
  margin-bottom: clamp(4rem, 12vh, 7rem);
}

.post-single {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  html {
    font-size: 17px;
  }

  .site-identity,
  .site-nav {
    bottom: auto;
    left: auto;
    position: static;
    right: auto;
  }

  .site-identity {
    margin: 1.25rem 1.25rem 2rem;
    max-width: 22rem;
  }

  .site-nav {
    margin: 0 1.25rem;
  }

  .home,
  .post-page {
    margin-left: 0;
    max-width: none;
    padding: clamp(4rem, 12vh, 6rem) 1.25rem 6rem;
  }

  .post-index {
    margin-bottom: 5rem;
  }

  .post-index li {
    align-items: flex-start;
    display: block;
    margin-bottom: 0.7rem;
  }

  .post-index time {
    display: block;
    margin-top: 0.05rem;
  }

  .post {
    margin-bottom: 6rem;
  }

  .post-header {
    margin-bottom: 2.5rem;
  }
}
