/* ─────────────────────────────────────────────────────────
   Simplify Mindfulness · design system
   Vanilla CSS, ~12 KB. No framework.
   ───────────────────────────────────────────────────────── */

@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --cream:        #FAF7F2;
  --ink:          #1F1B16;
  --ink-soft:     #5A544C;
  --rule:         #E8E2D6;
  --accent:       #8B6F47;
  --accent-soft:  #C9B79A;

  --bg:           var(--cream);
  --fg:           var(--ink);
  --fg-soft:      var(--ink-soft);

  --max-content:  640px;
  --max-chrome:   720px;
  --gap:          20px;

  --serif:  'EB Garamond', Garamond, 'Cormorant Garamond', Georgia, serif;
  --ui:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg:        #1B1916;
  --fg:        #E8E2D6;
  --fg-soft:   #A8A095;
  --rule:      #2A2620;
  --accent:    #C9A876;
  --accent-soft: #6F5E45;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg:        #1B1916;
    --fg:        #E8E2D6;
    --fg-soft:   #A8A095;
    --rule:      #2A2620;
    --accent:    #C9A876;
    --accent-soft: #6F5E45;
  }
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 18px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-wrap: break-word;
}
@media (min-width: 720px) {
  body { font-size: 20px; line-height: 1.75; }
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: opacity 200ms ease; }
a:hover { opacity: 0.7; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* ─── Wrap ──────────────────────────────────────────── */
.wrap { max-width: var(--max-chrome); margin: 0 auto; padding: 0 var(--gap); }
main { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--gap) 96px; }

/* ─── Header ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.masthead {
  font-family: var(--serif); font-size: 18px;
  text-decoration: none; color: var(--fg);
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.masthead .logomark { display: block; flex: 0 0 auto; }
.masthead-text { display: inline-block; white-space: nowrap; }

/* Mobile nav: shrink gaps, hide secondary text links progressively */
@media (max-width: 720px) {
  .site-header .wrap { padding: 0 14px; }
  .primary-nav { gap: 12px; font-size: 13px; }
}
@media (max-width: 600px) {
  /* Hide longest items first to keep header on one line */
  .primary-nav a[href="/archive"] { display: none; }
  .primary-nav a[href="/writing"] { display: none; }
  .primary-nav { gap: 10px; }
}
@media (max-width: 480px) {
  .masthead-text { display: none; } /* leave just the mark on small phones */
  .primary-nav a[href="/about"] { display: none; }
  .primary-nav { gap: 8px; }
  .site-header .wrap { padding: 0 12px; }
}
@media (max-width: 360px) {
  /* Bare minimum on tiny screens */
  .primary-nav a[href="/sunday"] { display: none; }
  .primary-nav { gap: 4px; }
  .search-btn, .theme-toggle { padding: 6px; min-width: 32px; min-height: 32px; }
}

/* Visually-hidden helper (for SEO h1 etc) */
.visually-hidden, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap;
}

/* Section ornament (used between long-form sections) */
.ornament {
  display: flex; justify-content: center; margin: 64px 0;
  color: var(--rule);
}
.ornament svg { opacity: 0.7; }

/* 404 mark */
.page-404 .page-404-mark {
  color: var(--accent-soft); margin: 0 auto 24px;
  display: flex; justify-content: center;
}

/* Inline SVG cover art */
.cover-art {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft) 16%, transparent);
  border-radius: 6px;
}
:root[data-theme="dark"] .cover-art,
:root[data-theme="auto"] .cover-art { color: var(--fg); }
.post-cover { margin: 0 0 48px; }
.post-cover .cover-art { aspect-ratio: 16/9; max-height: 460px; }
.post-card-thumb { background: transparent; }
.post-card-thumb .cover-art { aspect-ratio: 16/10; }
.primary-nav {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--ui); font-size: 14px;
}
.primary-nav a {
  color: var(--fg-soft); text-decoration: none;
}
.primary-nav a:hover { color: var(--fg); }
.search-btn {
  background: none; border: 0; cursor: pointer; color: var(--fg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px; min-width: 36px; min-height: 36px;
}
.search-btn:hover { color: var(--fg); }

/* ─── Search dialog ─────────────────────────────────── */
.search-dialog {
  border: 0; padding: 0; margin: 0; max-width: 100vw;
  width: 100%; height: 100%;
  background: color-mix(in srgb, var(--bg) 95%, black);
  color: var(--fg);
}
.search-dialog::backdrop { background: rgba(0,0,0,0.4); }
.search-form {
  display: flex; align-items: center; gap: 12px;
  max-width: var(--max-chrome); margin: 80px auto 0; padding: 0 var(--gap);
}
.search-form input[type="search"] {
  flex: 1; padding: 14px 16px; font: inherit; font-size: 22px;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--rule);
}
.search-form input[type="search"]:focus { outline: 0; border-bottom-color: var(--accent); }
.search-hint { max-width: var(--max-chrome); margin: 16px auto 0; padding: 0 var(--gap); font-family: var(--ui); font-size: 13px; color: var(--fg-soft); }
.search-hint kbd { font-family: var(--mono); font-size: 12px; background: var(--rule); padding: 2px 6px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Home ──────────────────────────────────────────── */
.home-intro { padding: 64px 0 32px; }
.tagline { font-size: 22px; color: var(--fg-soft); margin: 0; }
@media (min-width: 720px) { .tagline { font-size: 24px; } }

/* ─── Post cards (lists) ────────────────────────────── */
.post-list { display: flex; flex-direction: column; }
.post-card { padding: 28px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; gap: 16px; }
.post-card:first-child { border-top: 0; padding-top: 0; }
.post-card.has-cover { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .post-card.has-cover { grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
}
.post-card-thumb { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16/10; background: var(--rule); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.post-card-thumb:hover img { opacity: 0.85; }
.post-card-text { min-width: 0; }
.post-card-meta {
  font-family: var(--ui); font-size: 13px; color: var(--fg-soft);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  margin-bottom: 6px;
}
.post-card-meta a { color: inherit; text-decoration: none; }
.post-card-meta a:hover { color: var(--fg); }
.post-card-meta .dot { opacity: 0.5; }
.post-card-meta .cat { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.post-card-title {
  font-family: var(--serif); font-size: 24px; line-height: 1.25;
  margin: 0 0 6px; font-weight: 500;
}
@media (min-width: 720px) { .post-card-title { font-size: 28px; } }
.post-card-title a { color: var(--fg); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-dek { color: var(--fg-soft); margin: 0; font-size: 18px; }

.more { margin-top: 32px; font-family: var(--ui); font-size: 14px; }

/* ─── Single post ────────────────────────────────────── */
.post { padding: 64px 0; }
.post-header { margin-bottom: 64px; }
.post-eyebrow {
  font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-soft); margin: 0 0 16px;
}
.post-eyebrow a { color: inherit; text-decoration: none; }
.post-eyebrow a:hover { color: var(--accent); }
.post-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; line-height: 1.2; margin: 0 0 16px;
}
@media (min-width: 720px) { .post-title { font-size: 44px; line-height: 1.15; } }
.post-dek { font-size: 22px; color: var(--fg-soft); margin: 0 0 24px; line-height: 1.5; }
.post-meta { font-family: var(--ui); font-size: 14px; color: var(--fg-soft); display: flex; flex-wrap: wrap; gap: 8px; }
.post-meta .dot { opacity: 0.5; }
.post-meta time, .post-meta .byline { font-style: normal; }

/* Post cover image */
.post-cover { margin: 0 0 48px; }
.post-cover img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 6px; aspect-ratio: 16/9; }

/* Post body typography */
.post-body p { margin: 0 0 1.2em; }
.post-body h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 56px 0 16px; line-height: 1.3; }
@media (min-width: 720px) { .post-body h2 { font-size: 30px; } }
.post-body h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 40px 0 12px; line-height: 1.4; }
.post-body a { color: var(--accent); }
.post-body strong { font-weight: 500; }
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent-soft);
  font-style: italic;
  color: var(--fg-soft);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.post-body li { margin: 0.4em 0; }
.post-body code {
  font-family: var(--mono); font-size: 0.88em;
  background: color-mix(in srgb, var(--rule) 60%, transparent);
  padding: 2px 6px; border-radius: 3px;
}
.post-body pre {
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  background: color-mix(in srgb, var(--rule) 50%, transparent);
  padding: 16px 20px; border-radius: 6px; overflow-x: auto;
  margin: 24px 0;
}
.post-body pre code { background: none; padding: 0; }
.post-body img { margin: 24px 0; border-radius: 4px; }

/* Breathing pause */
.breathing-pause {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 64px 0; padding: 40px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-align: center; color: var(--fg-soft);
  font-family: var(--ui); font-size: 13px; letter-spacing: 0.1em;
}
.breathing-pause .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  animation: breathe 8s ease-in-out infinite;
  margin-bottom: 14px;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50%      { transform: scale(1.4); opacity: 1.0; }
}
@media (prefers-reduced-motion: reduce) {
  .breathing-pause .dot { animation: none; opacity: 0.7; }
}

/* Tags row */
.post-tags { margin: 48px 0 0; padding: 24px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--ui); font-size: 14px; }
.post-tags a { color: var(--fg-soft); text-decoration: none; }
.post-tags a:hover { color: var(--accent); }

/* Related posts + adjacent nav */
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.related-title { font-family: var(--ui); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-soft); margin: 0 0 16px; font-weight: 500; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.related li:last-child { border-bottom: 0; }
.related li em { color: var(--fg-soft); }
.related a { color: var(--fg); text-decoration: none; }
.related a:hover { color: var(--accent); }

.post-adjacent {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--ui); font-size: 14px;
}
.post-adjacent a { color: var(--fg-soft); text-decoration: none; max-width: 45%; }
.post-adjacent a:hover { color: var(--accent); }
.post-adjacent .next { text-align: right; margin-left: auto; }

/* End-of-post CTA */
.end-cta {
  margin: 48px 0 0; padding: 40px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-align: center;
}
.end-cta-prompt { font-style: italic; color: var(--fg-soft); margin: 0 0 16px; font-size: 18px; }
.end-cta-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.end-cta-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 10px 14px;
  font: inherit; font-size: 16px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule); border-radius: 4px;
}
.end-cta-form input[type="email"]:focus { outline: 0; border-color: var(--accent); }
.end-cta-form button {
  padding: 10px 18px; font-family: var(--ui); font-size: 14px;
  background: var(--accent); color: var(--cream);
  border: 0; border-radius: 4px; cursor: pointer; transition: opacity 200ms ease;
}
.end-cta-form button:hover { opacity: 0.85; }
.end-cta-fine { font-family: var(--ui); font-size: 12px; color: var(--fg-soft); margin: 14px 0 0; }

/* Archive */
.archive h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 64px 0 12px; }
.archive .lede { color: var(--fg-soft); margin-bottom: 56px; }
.archive-month { font-family: var(--ui); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); margin: 48px 0 16px; font-weight: 500; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.archive-list time { font-family: var(--ui); font-size: 13px; color: var(--fg-soft); }
.archive-list a { color: var(--fg); text-decoration: none; }
.archive-list a:hover { color: var(--accent); }

/* Category page */
.cat-page { padding: 64px 0 16px; }
.cat-page h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 12px; }
.cat-page .lede { color: var(--fg-soft); }

/* Writing index */
.writing-index { padding: 64px 0; }
.writing-index h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 32px; }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.cat-card {
  display: block; padding: 24px; border: 1px solid var(--rule); border-radius: 8px;
  text-decoration: none; color: var(--fg); transition: border-color 200ms ease;
}
.cat-card:hover { border-color: var(--accent-soft); }
.cat-card h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; font-weight: 500; }
.cat-card p { color: var(--fg-soft); margin: 0 0 12px; font-size: 16px; }
.cat-card .count { font-family: var(--ui); font-size: 12px; color: var(--fg-soft); }

/* Search page */
.search-page { padding: 64px 0; }
.search-page h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 24px; }
.search-form-page { display: flex; gap: 8px; margin-bottom: 32px; }
.search-form-page input[type="search"] { flex: 1; padding: 12px 16px; font: inherit; background: transparent; color: var(--fg); border: 1px solid var(--rule); border-radius: 4px; }
.search-form-page .btn { padding: 12px 18px; background: var(--ink); color: var(--cream); border: 0; border-radius: 4px; cursor: pointer; font-family: var(--ui); font-size: 14px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.search-results time { display: block; font-family: var(--ui); font-size: 12px; color: var(--fg-soft); margin-bottom: 4px; }
.search-results a { color: var(--fg); text-decoration: none; }

/* Sunday page */
.sunday-page { padding: 64px 0; }
.sunday-page h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 24px; }
.sunday-form { display: flex; gap: 8px; max-width: 480px; margin: 32px 0 14px; flex-wrap: wrap; }
.sunday-form input[type="email"] { flex: 1; min-width: 200px; padding: 12px 14px; font: inherit; background: transparent; color: var(--fg); border: 1px solid var(--rule); border-radius: 4px; }
.sunday-form .btn { padding: 12px 18px; background: var(--accent); color: var(--cream); border: 0; border-radius: 4px; cursor: pointer; font-family: var(--ui); font-size: 14px; }
.sunday-page .fine { font-family: var(--ui); font-size: 12px; color: var(--fg-soft); }

/* Letters list */
.letters-page { padding: 64px 0; }
.letters-list { list-style: none; padding: 0; margin: 32px 0; }
.letters-list li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.letters-list time { font-family: var(--ui); font-size: 13px; color: var(--fg-soft); }
.letters-list a { color: var(--fg); text-decoration: none; }
.letters-list a:hover { color: var(--accent); }

/* About page */
.about-page .post-body { font-size: 19px; }
@media (min-width: 720px) { .about-page .post-body { font-size: 21px; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0;
  margin-top: 96px;
  font-family: var(--ui); font-size: 13px; color: var(--fg-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--fg-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); }
.footer-meta { margin: 0; }
.footer-controls { display: flex; gap: 8px; align-items: center; }
.theme-toggle {
  background: none; border: 0; cursor: pointer; color: var(--fg-soft);
  padding: 8px; min-width: 36px; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--fg); }
.theme-icon { display: inline-block; }
:root[data-theme="dark"] [data-theme-icon-light] { display: none; }
:root[data-theme="light"] [data-theme-icon-dark] { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] [data-theme-icon-light] { display: none; }
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] [data-theme-icon-dark] { display: none; }
}

/* Flash */
.flash {
  padding: 12px 16px; margin-bottom: 24px;
  background: color-mix(in srgb, var(--accent-soft) 30%, transparent);
  border-left: 3px solid var(--accent);
  font-family: var(--ui); font-size: 14px;
}

/* Sit timer */
.sit-timer {
  margin: 64px 0 0; padding: 32px 24px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft) 12%, transparent);
  text-align: center;
}
.sit-timer-label { font-family: var(--ui); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); }
.sit-timer-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 14px; }
.sit-timer-controls button {
  padding: 8px 14px; font-family: var(--ui); font-size: 14px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer; transition: all 200ms ease;
}
.sit-timer-controls button:hover, .sit-timer-controls button.is-selected { border-color: var(--accent); color: var(--accent); }
.sit-timer-display { margin: 14px 0 6px; }
.sit-timer-clock {
  display: block; font-family: var(--mono); font-size: 48px;
  color: var(--fg); letter-spacing: 0.04em; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.sit-timer-action {
  padding: 10px 22px; font-family: var(--ui); font-size: 14px;
  background: var(--accent); color: var(--cream);
  border: 0; border-radius: 999px; cursor: pointer; transition: opacity 200ms ease;
  min-width: 120px;
}
.sit-timer-action:hover { opacity: 0.85; }
.sit-timer-hint { font-family: var(--ui); font-size: 12px; color: var(--fg-soft); margin: 8px 0 0; }
.sit-timer.is-running .sit-timer-controls button:not(.is-selected) { opacity: 0.4; pointer-events: none; }

/* About → Contact CTA */
.about-cta {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule);
  text-align: center;
}
.about-cta .btn-primary {
  display: inline-block; padding: 14px 32px; font-family: var(--ui); font-size: 15px;
  background: var(--accent); color: var(--cream);
  text-decoration: none; border-radius: 4px; transition: opacity 200ms ease;
}
.about-cta .btn-primary:hover { opacity: 0.85; }
.about-cta .fine { font-family: var(--ui); font-size: 13px; color: var(--fg-soft); margin: 16px 0 0; }
.about-cta .fine a { color: var(--fg-soft); }

/* Footnotes */
.post-body sup.footnote-ref { font-size: 0.7em; }
.post-body sup.footnote-ref a { text-decoration: none; padding: 0 4px; color: var(--accent); }
.footnotes {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--ui); font-size: 14px; color: var(--fg-soft); line-height: 1.6;
}
.footnotes summary { cursor: pointer; font-weight: 500; padding: 4px 0; color: var(--fg); }
.footnotes ol { padding-left: 20px; margin: 8px 0 0; }
.footnotes li { margin: 8px 0; scroll-margin-top: 80px; }
.footnotes a.fn-back { font-family: var(--mono); font-size: 11px; margin-left: 8px; opacity: 0.7; }
.footnotes a.fn-back:hover { opacity: 1; }

/* Contact form */
.contact-form { margin: 32px 0 0; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-family: var(--ui); font-size: 13px; color: var(--fg-soft); margin-bottom: 6px; letter-spacing: 0.04em; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 17px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule); border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); }
.contact-form textarea { font-family: var(--serif); line-height: 1.6; resize: vertical; min-height: 200px; }
.contact-form .btn-primary {
  padding: 12px 24px; font-family: var(--ui); font-size: 14px;
  background: var(--accent); color: var(--cream);
  border: 0; border-radius: 4px; cursor: pointer;
  transition: opacity 200ms ease;
}
.contact-form .btn-primary:hover { opacity: 0.85; }
.contact-form .fine { font-family: var(--ui); font-size: 12px; color: var(--fg-soft); margin: 14px 0 0; font-style: italic; }
.contact-form .hp { position: absolute; left: -9999px; }

/* Print */
@media print {
  .site-header, .site-footer, .end-cta, .post-tags, .related, .post-adjacent, .sit-timer { display: none; }
  body { color: black; background: white; }
}
