/* Final editorial rhythm: two type voices, generous space, restrained motion. */
:root { --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.page-container { max-width: 1160px; }
.site-header { height: 96px; }
.brand-desktop { font-size: .8125rem; font-weight: 400; }
.brand-mark { font-family: "Allura", "Brush Script MT", cursive; font-size: 2.8rem; font-weight: 400; letter-spacing: -.025em; color: var(--accent); line-height: 1; padding-right: .15em; }
.nav-link { font-size: .8125rem; }
.theme-menu summary { border: 0; }
.color-switcher { gap: .75rem; }
.personal-intro { padding: 4.5rem 0 4rem; }
.intro-location { color: var(--text-muted); font-size: .8125rem; margin-bottom: 2.5rem; }
.intro-location span { margin-inline: .75rem; opacity: .5; }
.personal-intro h1 { font-family: var(--font-serif); font-size: clamp(4rem, 9.5vw, 8.5rem); font-weight: 400; letter-spacing: -.065em; line-height: .94; }
.personal-intro h1 em { display: inline-block; color: var(--accent); margin-left: clamp(0rem, 7vw, 6rem); font-weight: 400; }
.personal-intro-note { font-size: 1.0625rem; line-height: 1.85; color: var(--text-muted); margin: 2.5rem 0 0 auto; max-width: 430px; }
.minimal-home .lead-story { display: block; padding: 3rem 0; border-top: 1px solid var(--border-color); border-bottom: 0; }
.minimal-home .lead-story-copy { max-width: 850px; }
.minimal-home .lead-story h2 { font-size: clamp(2.2rem, 4.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; margin: 1.5rem 0; }
.minimal-home .lead-story-description { max-width: 640px; }
.read-essay { border-color: var(--border-color); }
.lead-story-copy:hover .read-essay { border-color: var(--accent); }
.selected-notes { margin: 1rem 0 5rem; }
.selected-notes .section-header-row { padding-top: 2rem; border-top: 1px solid var(--border-color); align-items: center; margin-bottom: 1rem; }
.selected-notes h2 { font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.selected-notes .quiet-link { font-size: .8125rem; }
.selected-notes .notebook-entry { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.5rem 0; }
.selected-notes h3 { font-size: 1.6rem; margin: 0; }
.selected-notes .story-meta { flex-shrink: 0; }
.footer { border-top: 1px solid var(--border-color); gap: 1.25rem; padding-block: 1.5rem; }
.footer-rss { color: var(--text-muted); font-size: .75rem; text-decoration: none; }
.footer-rss:hover { color: var(--text-color); }
.footer .social-links { margin-left: auto; }
.ambient-toggle { margin-left: auto; font-size: .75rem; }
.analytical-background { mask-image: linear-gradient(90deg, #000c, #0001 18%, transparent 32%, transparent 67%, #0001 82%, #000c); }
body:has(.post-page) .analytical-background { opacity: .5; }
.ambient-wash { opacity: .55; }
.prose { font-size: 1.125rem; line-height: 1.95; }
.prose p { margin-bottom: 1.75rem; }
.prose h2 { font-weight: 400; margin-top: 3.25rem; margin-bottom: 1.15rem; }
.prose h3 { margin-top: 2.25rem; font-weight: 400; }
.prose a { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--accent); opacity: 1; }
.prose pre { padding: 3.25rem 1.25rem 1.25rem; border-radius: 3px; }
.prose pre code { font-size: .875rem; line-height: 1.8; }
.post-title { letter-spacing: -.04em; font-weight: 400; }
.post-lead { line-height: 1.8; }
.post-header { padding-bottom: 2.25rem; }
.post-tags { gap: .85rem; }.post-tag { font-size: .75rem; color: var(--text-muted); }
.article-toc li a { font-size: .8125rem; }
.post-related .timeline-eyebrow { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 760px) {
  .personal-intro { padding: 3.5rem 0 3rem; }
  .personal-intro h1 { font-size: clamp(3.5rem, 12vw, 6rem); }
  .personal-intro h1 em { margin-left: 0; }
  .personal-intro-note { margin: 2rem 0 0; max-width: 430px; }
  .intro-location { margin-bottom: 2rem; }
  .minimal-home .lead-story { padding-block: 2.5rem; }
  .selected-notes { margin-bottom: 3rem; }
  .selected-notes .notebook-entry { display: block; padding-block: 1.4rem; }
  .selected-notes .story-meta { margin-top: .75rem; }
  .analytical-background { mask-image: linear-gradient(90deg, #0007, transparent 22%, transparent 78%, #0009); }
}
@media (max-width: 480px) {
  .site-header { height: auto; }
  .personal-intro h1 { font-size: 13vw; }
  .personal-intro-note { font-size: 1rem; }
  .intro-location { font-size: .75rem; }
  .footer .copyright { width: 100%; }
  .ambient-toggle { margin-left: 0; }
}
