
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;500&display=swap');

:root {
  --bg: #FDFCFA;
  --fg: #171717;
  --fg-mid: #4A4540;
  --fg-muted: #6B6460;
  --fg-faint: #A09890;
  --accent: #4A6B5A;
  --accent-hover: #3A5548;
  --rule: #E0DCD6;
  --rule-dark: #C8C2BA;
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-body: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', sans-serif;
  --measure: 42rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--serif-body); line-height: 1.75; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; height: auto; }

/* Masthead */
.masthead { padding: 5rem 2rem 4rem; text-align: center; border-bottom: 1px solid var(--rule); }
.masthead-title { font-family: var(--serif-display); font-size: 3.4rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.masthead-title a { color: var(--fg); }
.masthead-tagline { font-family: var(--serif-display); font-size: 1.15rem; font-style: italic; color: var(--fg-muted); margin-top: 0.8rem; }
.masthead-tagline .ref { display: block; font-family: var(--sans); font-style: normal; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-top: 0.6rem; }
.masthead-sub { font-family: var(--sans); font-size: 0.82rem; color: var(--fg-faint); margin-top: 1.4rem; line-height: 1.6; letter-spacing: 0.01em; }
.masthead-compact { padding: 2rem 2rem 1.5rem; }
.masthead-compact .masthead-title { font-size: 1.6rem; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(253,252,250,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 64rem; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: center; gap: 2.2rem; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-faint); padding: 1rem 0; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s; }
.nav-inner a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-muted); padding: 1rem 2rem; width: 100%; text-align: center; }

/* Content */
.content { max-width: 64rem; margin: 0 auto; padding: 0 2rem; }

/* Featured */
.featured { padding: 5rem 0 4.5rem; text-align: center; border-bottom: 1px solid var(--rule); }
.featured-kicker { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.featured-title { font-family: var(--serif-display); font-size: 2.8rem; font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; max-width: 36rem; margin: 0 auto; }
.featured-title a:hover { color: var(--accent); }
.featured-excerpt { margin: 1.4rem auto 0; font-size: 1.05rem; color: var(--fg-muted); max-width: 32rem; line-height: 1.7; }
.featured-date { margin-top: 1.2rem; font-family: var(--sans); font-size: 0.75rem; color: var(--fg-faint); }

/* Section */
.section { padding: 4rem 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.2rem; }
.section-label { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.section-more { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section-more:hover { color: var(--accent-hover); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }

/* Entry */
.entry { margin-bottom: 1.6rem; }
.entry-title { font-family: var(--serif-display); font-size: 1.45rem; font-weight: 500; line-height: 1.25; }
.entry-title a:hover { color: var(--accent); }
.entry-excerpt { font-size: 0.92rem; color: var(--fg-muted); margin-top: 0.6rem; line-height: 1.65; }
.entry-meta { font-family: var(--sans); font-size: 0.72rem; color: var(--fg-faint); letter-spacing: 0.03em; margin-top: 0.4rem; }

/* Compact list */
.compact-list .compact-entry { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.compact-list .compact-entry:first-child { border-top: 1px solid var(--rule); }
.compact-entry .entry-title { font-size: 1.15rem; }
.compact-entry .entry-meta { margin-top: 0; white-space: nowrap; }

/* Series */
.series-list { counter-reset: series; }
.series-item { padding: 0.7rem 0; display: flex; gap: 1rem; align-items: baseline; }
.series-item::before { counter-increment: series; content: counter(series, upper-roman); font-family: var(--serif-display); font-size: 0.9rem; font-weight: 600; color: var(--fg-faint); min-width: 2.2rem; text-align: right; }
.series-item .entry-title { font-size: 1.1rem; }

/* Split columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split-col:first-child { padding-right: 3rem; border-right: 1px solid var(--rule); }
.split-col:last-child { padding-left: 3rem; }
.split-col .section-header { margin-bottom: 1.8rem; }
.split-col .entry { margin-bottom: 1.4rem; }
.split-col .entry-title { font-size: 1.15rem; }

/* ── Post single ── */
.post-single { padding: 5rem 0 6rem; }
.post-header { max-width: var(--measure); margin: 0 auto 3rem; text-align: center; }
.post-category { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.post-category a { color: var(--accent); }
.post-category a:hover { color: var(--accent-hover); }
.post-title { font-family: var(--serif-display); font-size: 2.8rem; font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; }
.post-date { font-family: var(--sans); font-size: 0.78rem; color: var(--fg-faint); margin-top: 1rem; }
.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body p { margin-bottom: 1.4em; }
.post-body h2 { font-family: var(--serif-display); font-size: 1.6rem; font-weight: 500; margin: 2.5em 0 0.8em; letter-spacing: -0.01em; }
.post-body h3 { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; margin: 2em 0 0.6em; }
.post-body h4 { font-family: var(--serif-display); font-size: 1.1rem; font-weight: 600; margin: 1.6em 0 0.5em; }
.post-body blockquote { margin: 2em 0; padding: 1.2em 0 1.2em 1.8em; border-left: 2px solid var(--rule-dark); font-style: italic; color: var(--fg-muted); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { margin: 1em 0 1.4em 1.5em; }
.post-body li { margin-bottom: 0.4em; }
.post-body hr { border: none; border-top: 1px solid var(--rule); margin: 3em 0; }
.post-body a { color: var(--accent); }
.post-body a:hover { color: var(--accent-hover); }
.post-body img { display: block; margin: 2em auto; border-radius: 2px; }
.post-body .wp-caption { margin: 2em auto; text-align: center; }
.post-body .wp-caption-text { font-family: var(--sans); font-size: 0.78rem; color: var(--fg-faint); margin-top: 0.5rem; }

.post-footer { max-width: var(--measure); margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; }
.post-footer a { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.post-footer a:hover { color: var(--accent-hover); }

/* ── Category page ── */
.category-page { padding: 4rem 0; }
.category-page-title { font-family: var(--serif-display); font-size: 2.2rem; font-weight: 400; text-align: center; margin-bottom: 3rem; }

/* Footer */
.site-footer { padding: 4rem 2rem; text-align: center; border-top: 1px solid var(--rule); }
.footer-title { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.6rem; }
.footer-desc { font-size: 0.85rem; color: var(--fg-muted); max-width: 28rem; margin: 0 auto 1.5rem; line-height: 1.6; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.footer-links a { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-family: var(--sans); font-size: 0.68rem; color: var(--fg-faint); }

/* Mobile */
@media (max-width: 700px) {
  html { font-size: 16px; }
  .masthead { padding: 3.5rem 1.5rem 3rem; }
  .masthead-title { font-size: 2.4rem; }
  .featured { padding: 3.5rem 0; }
  .featured-title { font-size: 2rem; }
  .post-title { font-size: 2rem; }
  .content { padding: 0 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .split-col:first-child { padding-right: 0; border-right: none; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
  .split-col:last-child { padding-left: 0; }
  .nav-inner { display: none; flex-direction: column; align-items: center; gap: 0; padding: 0; }
  .nav-inner.open { display: flex; }
  .nav-inner a { padding: 0.7rem 0; }
  .nav-toggle { display: block; }
  .compact-entry { flex-direction: column; gap: 0.15rem; }
  .compact-entry .entry-meta { order: -1; }
}
