/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/libre-franklin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/libre-franklin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/instrument-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafa;
  --serif: 'Instrument Serif', Georgia, serif;
  --fg: #111;
  --fg-muted: #555;
  --accent: #1a6b6a;
  --border: #222;
  --card-bg: #fff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 960px;
  --grid-color: rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #e8e8e8;
    --fg-muted: #999;
    --card-bg: #1c1c1c;
    --border: #ddd;
    --grid-color: rgba(255, 255, 255, 0.02);
  }

  .prose blockquote {
    background: color-mix(in srgb, var(--fg) 7%, transparent);
  }

  .prose code {
    background: color-mix(in srgb, var(--fg) 15%, transparent);
  }

  .prose pre {
    background: color-mix(in srgb, var(--fg) 9%, transparent);
    border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  }

  .prose h2 {
    border-top-color: color-mix(in srgb, var(--fg) 20%, transparent);
  }

  .prose hr {
    border-top-color: color-mix(in srgb, var(--fg) 20%, transparent);
  }

  .prose figcaption {
    border-top-color: color-mix(in srgb, var(--fg) 16%, transparent);
  }

  .prose figure {
    border-color: color-mix(in srgb, var(--fg) 20%, transparent);
  }

  .post-card {
    border-bottom-color: color-mix(in srgb, var(--fg) 20%, transparent);
  }

  .musing-card {
    border-bottom-color: color-mix(in srgb, var(--fg) 16%, transparent);
  }

  .tag {
    border-color: color-mix(in srgb, var(--fg) 32%, transparent);
  }

  .post-footer,
  .musing-footer,
  footer {
    border-top-color: color-mix(in srgb, var(--fg) 16%, transparent);
  }

  .back-link {
    border-top-color: color-mix(in srgb, var(--fg) 16%, transparent);
  }

  .bio .cta {
    border-top-color: color-mix(in srgb, var(--fg) 16%, transparent);
  }

  .prose figure.diagram img {
    filter: invert(1) hue-rotate(180deg);
  }
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: break-word;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--fg);
  z-index: 1001;
  transition: width 0.1s linear;
}

::selection {
  background: color-mix(in srgb, var(--fg) 15%, transparent);
}

a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent);
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  border-radius: 50%;
}

.nav-blog {
  font-family: var(--mono);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.15s;
  padding: 0.5rem 0.25rem;
}

.nav-blog:hover {
  color: var(--fg);
}

.nav-sep {
  color: var(--fg-muted);
  margin: 0 0.15rem;
  user-select: none;
}


/* MAIN */
main {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero {
  padding: 4rem 0 2rem;
  border-bottom: 3px solid var(--border);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  animation: fade-up 0.5s ease both;
}

.hero-content {
  flex: 1;
}

.hero-photo {
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--fg) 12%, transparent);
  object-fit: cover;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 420px;
}

/* BIO */
.bio {
  margin-bottom: 3rem;
}

.bio p {
  margin-bottom: 1rem;
}


.bio .cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.bio .cta a {
  font-weight: 600;
  color: var(--fg);
}

/* NEWSLETTER */
.newsletter-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
}

.newsletter-pitch {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.newsletter-fields {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
}

.newsletter-fields input[type="email"] {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-fields input[type="email"]:focus {
  border-color: var(--fg);
}

.newsletter-fields input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--fg-muted) 60%, transparent);
}

.newsletter-fields button {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.newsletter-fields button:hover {
  opacity: 0.8;
}

.newsletter-form-post {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* LISTING HERO */
.listing-hero {
  padding: 4rem 0 2rem;
  border-bottom: 3px solid var(--border);
  margin-bottom: 2rem;
}

.listing-hero h1 {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.listing-hero p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-top: 0.6rem;
  line-height: 1.5;
  max-width: 540px;
}

/* POST CARDS */
.recent-posts {
  margin-bottom: 3rem;
}

.recent-posts h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.blog-index {
  margin-bottom: 3rem;
}

.post-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  transition: background 0.15s;
}

.post-card:hover {
  background: var(--card-bg);
}

.post-card h2::after,
.post-card h3::after {
  content: ' \203A';
  font-size: 1.2em;
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.15s;
}

.post-card:hover h2::after,
.post-card:hover h3::after {
  opacity: 1;
}

.post-card time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card h2,
.post-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.3rem 0 0.2rem;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.reading-time {
  color: var(--fg-muted);
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

a.tag:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.see-all {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.empty {
  color: var(--fg-muted);
  font-style: italic;
}

/* ARTICLE */
.post {
  max-width: 680px;
  margin: 0 auto;
}

.post header {
  padding: 4rem 0 2rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2.5rem;
}

.post header h1 {
  font-family: var(--serif);
  font-size: 2.65rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.post-description {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.post-byline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 1rem;
}

.post-byline .author-name {
  color: var(--fg);
  font-weight: 500;
}

.prose {
  margin-bottom: 3rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.prose li > strong:first-child {
  color: var(--fg);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  padding: 0.15em 0.35em;
  border-radius: 2px;
}

.prose pre {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* SYNTAX HIGHLIGHTING */
.token.comment,
.token.prolog,
.token.cdata { color: #6a737d; font-style: italic; }
.token.punctuation { color: var(--fg-muted); }
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol { color: #d19a66; }
.token.selector,
.token.string,
.token.char,
.token.builtin,
.token.attr-value { color: #98c379; }
.token.operator,
.token.entity,
.token.url { color: #56b6c2; }
.token.atrule,
.token.keyword { color: #c678dd; }
.token.function,
.token.class-name { color: #61afef; }
.token.regex,
.token.important,
.token.variable { color: #e06c75; }

/* HEADING ANCHORS */
.prose h2,
.prose h3 {
  position: relative;
}

.heading-anchor {
  position: absolute;
  right: 100%;
  padding-right: 0.4em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.15s;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 4px;
}

.prose figure {
  width: calc(100% + 14rem);
  margin-left: -7rem;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 4px;
}

@media (max-width: 960px) {
  .prose figure {
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }
}

.prose figure img {
  margin: 0 0 0.75rem;
}

.prose figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
}

.prose hr {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  margin: 2.5rem 0;
}

.post-footer {
  display: block;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  margin-top: 2rem;
}

.author-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--fg) 12%, transparent);
  object-fit: cover;
}

.author-card-info {
  min-width: 0;
}

.author-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.author-card-name a {
  text-decoration: none;
}

.author-card-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  margin-top: 0.1rem;
}

.follow-cta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 1.25rem;
  line-height: 1.5;
}

.follow-cta a {
  color: var(--fg);
  font-weight: 500;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-decoration: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  width: 100%;
}

.back-link:hover {
  color: var(--fg);
}

/* WIDE / INTERACTIVE POSTS */
.post-wide .prose .full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 2rem 1.5rem;
}

.post-wide .prose .full-width-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.prose .interactive {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 4px;
  background: var(--card-bg);
}

.prose .interactive figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}

.prose .scroll-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MUSINGS */
.musings-index {
  margin-bottom: 3rem;
}

.musing-card {
  display: block;
  text-decoration: none;
  padding: 1.25rem 0.75rem;
  margin: 0 -0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  transition: background 0.15s;
}

.musing-card:hover {
  background: var(--card-bg);
}

.musing-card h2::after {
  content: ' \203A';
  font-size: 1.2em;
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.15s;
}

.musing-card:hover h2::after {
  opacity: 1;
}

.musing-card time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.musing-card h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0.15rem 0 0.25rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.musing-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}

.musing {
  max-width: 680px;
  margin: 0 auto;
}

.musing header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  margin-bottom: 2rem;
}

.musing header time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.musing header h1 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.musing-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  margin-top: 2rem;
}

/* 404 */
.not-found {
  padding: 4rem 0;
  text-align: center;
}

.not-found h1 {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.not-found-ascii {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  line-height: 1.3;
  text-align: left;
  display: inline-block;
}

.not-found-sub {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: var(--fg);
}

.not-found-hint {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}

.not-found-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* FOOTER */
footer {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  margin-top: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-newsletter .newsletter-fields {
  max-width: none;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-role {
  color: color-mix(in srgb, var(--fg-muted) 70%, transparent);
  font-size: 0.7rem;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icons a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.footer-icons a:hover {
  color: var(--fg);
}

footer a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--fg);
}

/* MOBILE */
@media (max-width: 600px) {
  html { font-size: 16px; }
  body { line-height: 1.7; }
  nav {
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem 0.75rem;
    gap: 0.5rem;
  }
  .nav-left { gap: 1rem; }
  .nav-icons { gap: 0.75rem; }
  .hero { flex-direction: column-reverse; text-align: center; padding: 2.5rem 0 1.5rem; }
  .hero-photo { width: 72px; height: 72px; }
  .hero h1 { font-size: 2.5rem; }
  .listing-hero { padding: 2.5rem 0 1.5rem; }
  .listing-hero h1 { font-size: 2rem; }
  .listing-hero p { font-size: 0.95rem; }
  .post header { padding: 2.5rem 0 1.5rem; }
  .post header h1 { font-size: 1.85rem; }
  .post-description { font-size: 1rem; }
  .musing header { padding: 2rem 0 1.25rem; }
  .prose figure { width: calc(100% + 1rem); margin-left: -0.5rem; padding: 1rem; }
  .newsletter-fields { max-width: 100%; }
  .footer-top { flex-direction: column; gap: 1rem; }
  footer { gap: 0.5rem; }
}

/* PRINT */
@media print {
  .progress-bar,
  nav,
  footer,
  .post-footer,
  .back-link { display: none; }
  body {
    background: white;
    color: #111;
    font-size: 12pt;
  }
  .post { max-width: 100%; }
  .prose a { text-decoration: underline; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
}
