:root {
  color-scheme: light;
  --page: #fbfaf8;
  --surface: #fff;
  --ink: #211f1d;
  --muted: #77716b;
  --line: #e9e5df;
  --accent: #a64d32;
  --soft: #f1ece6;
  --focus: #bd5c3d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #151514;
  --surface: #1d1c1a;
  --ink: #f2eee8;
  --muted: #b4ada4;
  --line: #34312e;
  --accent: #e6a184;
  --soft: #292622;
  --focus: #f2ad8f;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; }
button { font: inherit; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 8px 12px; background: var(--surface); color: var(--ink);
}
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  width: min(1160px, calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.header-inner { min-height: 82px; }
.brand { display: inline-flex; align-items: baseline; gap: 11px; text-decoration: none; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif; font-size: 30px;
  font-weight: 600; letter-spacing: -.08em; line-height: 1;
}
.brand-source { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  background: var(--surface); cursor: pointer; font-size: 20px;
  transition: transform .18s ease, border-color .18s ease;
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--accent); }
.theme-toggle:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; min-height: 72vh; }
.intro { max-width: 720px; padding: 76px 0 44px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .19em; }
.intro h1 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 88px); font-weight: 500; letter-spacing: -.075em; line-height: .99;
}
.title-dot { color: var(--accent); }
.mobile-break { display: none; }
.intro-copy { max-width: 480px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; padding: 12px 0 76px; }
.post-card { min-width: 0; }
.post-cover-link { display: block; overflow: hidden; aspect-ratio: 1.32 / 1; border-radius: 13px; background: var(--soft); text-decoration: none; }
.post-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-cover-link:hover .post-cover { transform: scale(1.035); }
.post-cover-placeholder {
  display: grid; place-items: center; color: var(--accent);
  font: 500 48px Georgia, "Times New Roman", serif; letter-spacing: -.08em;
  background: radial-gradient(ellipse at 74% 25%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 43%), linear-gradient(135deg, var(--soft), var(--surface));
}
.post-card-body { padding: 17px 2px 0; }
.post-date { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.post-card-title { margin: 8px 0 0; font: 500 23px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-excerpt { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feed-message { grid-column: 1 / -1; padding: 36px 0; color: var(--muted); font: 21px Georgia, "Times New Roman", serif; }
.feed-error { color: var(--muted); padding-bottom: 60px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); font: 18px Georgia, "Times New Roman", serif; text-decoration: none; }
.story-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; min-height: 72vh; padding: 62px 0 90px; }
.story-back { display: inline-block; margin-bottom: 28px; color: var(--accent); font-size: 14px; text-decoration: none; }
.story-header { margin-bottom: 32px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.story-title { margin: 0; font: 500 clamp(38px, 6vw, 62px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.story-cover { display: block; width: 100%; max-height: 560px; aspect-ratio: 1.5 / 1; object-fit: cover; border-radius: 14px; margin: 0 0 34px; }
.story-content { font-size: 18px; line-height: 1.78; overflow-wrap: anywhere; }
.story-content > :first-child { margin-top: 0; }
.story-content h2, .story-content h3 { margin: 1.8em 0 .55em; font: 500 1.6em/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.story-content p { margin: 0 0 1.25em; }
.story-content a { color: var(--accent); text-underline-offset: .2em; }
.story-content img { max-width: 100%; height: auto; border-radius: 10px; }
.story-content figure { margin: 2em 0; }
.story-content figcaption { color: var(--muted); font-size: 13px; }
.story-content blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--accent); color: var(--muted); font: 1.2em Georgia, "Times New Roman", serif; }
.story-content ul, .story-content ol { padding-left: 1.35em; }
.story-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.story-content th, .story-content td { padding: .6em; border: 1px solid var(--line); }
.not-found { text-align: center; padding: 100px 0; }
@media (max-width: 850px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; }
  .intro { padding-top: 64px; }
}
@media (max-width: 560px) {
  .header-inner, .footer-inner, .page-shell { width: min(calc(100% - 36px), 1160px); }
  .header-inner { min-height: 70px; }
  .brand-name { font-size: 27px; }
  .intro { padding: 52px 0 30px; }
  .intro h1 { font-size: clamp(51px, 15vw, 72px); }
  .mobile-break { display: initial; }
  .intro-copy { font-size: 15px; }
  .post-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 55px; }
  .post-cover-link { aspect-ratio: 1.25 / 1; }
  .post-card-title { font-size: 22px; }
  .footer-inner { min-height: 72px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 2px; padding: 14px 0; }
  .story-shell { width: min(calc(100% - 36px), 820px); padding: 40px 0 64px; }
  .story-title { font-size: clamp(36px, 12vw, 54px); }
  .story-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Prime Shows navigation and legal-page footer */
.header-inner { gap: 22px; }
.primary-nav {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.7vw, 24px);
  min-width: 0; color: var(--muted); font-size: 13px;
}
.primary-nav a, .footer-nav a { text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .footer-nav a:hover { color: var(--accent); }
.footer-inner-expanded { align-items: center; gap: 28px; padding: 20px 0; }
.footer-brand-wrap { display: flex; flex-direction: column; gap: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 12px; }
@media (max-width: 1040px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding: 14px 0; }
  .primary-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; padding: 5px 0 2px; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 560px) {
  .primary-nav { gap: 18px; font-size: 12px; }
  .footer-inner-expanded { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; gap: 9px 15px; }
}
