
:root {
  --bg: #faf9f6;
  --bg-card: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #55524a;
  --accent: #a3181f;
  --accent-soft: #e8d9d9;
  --line: #ddd8ce;
  --link-visited: #7a4a4a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161512;
    --bg-card: #1e1c18;
    --ink: #f1efe8;
    --ink-soft: #b8b3a6;
    --accent: #e2555c;
    --accent-soft: #3a2323;
    --line: #34312a;
    --link-visited: #c99;
  }
}
:root[data-theme="dark"] {
  --bg: #161512;
  --bg-card: #1e1c18;
  --ink: #f1efe8;
  --ink-soft: #b8b3a6;
  --accent: #e2555c;
  --accent-soft: #3a2323;
  --line: #34312a;
  --link-visited: #c99;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--accent); text-decoration: underline; }

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}
.site-nav .brand {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.site-nav .brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 54px; right: 20px; left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    display: none;
    z-index: 10;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
}

.accent { color: var(--accent); }

header.masthead {
  border-bottom: 3px solid var(--ink);
  padding: 10px 20px 14px;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
}
.masthead h1 { margin: 0; font-size: 2.6rem; letter-spacing: 0.06em; font-weight: 700; text-wrap: balance; }
.masthead .tagline {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin-top: 6px;
}

.page-header {
  max-width: 1180px; margin: 0 auto; padding: 18px 20px 8px;
  border-bottom: 2px solid var(--ink);
}
.page-header h1 { font-size: 2rem; margin: 0 0 6px; }
.page-header p { font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif; color: var(--ink-soft); font-size: 0.9rem; max-width: 640px; }

.updated-bar {
  max-width: 1180px; margin: 0 auto; padding: 10px 20px;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.72rem; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.search-wrap input, .search-wrap--wide input {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  width: 220px;
  text-transform: none;
  letter-spacing: normal;
}
.search-wrap--wide { margin-top: 12px; }
.search-wrap--wide input { width: 100%; max-width: 420px; }
.search-wrap input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }

ul.top-stories {
  list-style: none; margin: 0 0 22px; padding: 0 0 18px;
  border-bottom: 2px solid var(--ink);
  display: grid; gap: 14px;
}
.headline--top a { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.headline--top { display: flex; gap: 16px; align-items: flex-start; }
.headline--top .thumb { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.headline--top .excerpt {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin: 8px 0 0;
}
.share-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.share-btn {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft); cursor: pointer;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
@media (max-width: 560px) {
  .headline--top { flex-direction: column; }
  .headline--top .thumb { width: 100%; height: 180px; }
}

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .masthead h1 { font-size: 1.9rem; }
}
.column, .archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list { display: grid; gap: 2px; }

li.headline { padding: 10px 0; border-bottom: 1px solid var(--line); }
li.headline.headline--media { display: flex; gap: 12px; align-items: flex-start; }
li.headline .thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
li.headline .headline-body { flex: 1; min-width: 0; }
li.headline a { font-size: 1rem; line-height: 1.35; display: block; }
.meta {
  display: block; margin-top: 4px;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.7rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dot { margin: 0 5px; }

.no-results {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink-soft); text-align: center; padding: 40px 0;
}

.show-more {
  display: block; margin: 20px auto 0;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.85rem; font-weight: 600;
  padding: 10px 22px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink); cursor: pointer;
}
.show-more:hover { color: var(--accent); border-color: var(--accent); }
/* `display: block` above has equal CSS specificity to the browser's built-in
   `[hidden] { display: none }` rule, but author stylesheets always beat the
   browser's own defaults regardless of specificity — so without this, setting
   `.hidden = true` in JS never actually hides the button; it just sits there
   doing nothing once there's nothing left to show, which reads as broken. */
.show-more[hidden] { display: none; }

.support-main { max-width: 1180px; }

.membership-card {
  background: var(--ink); color: var(--bg);
  border-radius: 14px; padding: 32px 28px; margin: 24px 0 32px;
}
.membership-eyebrow {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.membership-card h2 {
  font-family: Georgia, serif; font-size: 1.7rem; margin: 6px 0 4px; text-wrap: balance;
}
.membership-price {
  font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; margin: 8px 0 18px;
}
.membership-price span {
  font-size: 1rem; font-weight: 400; opacity: 0.7;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}
.membership-pitch {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.95rem; line-height: 1.6; opacity: 0.85; max-width: 560px; margin: 0 0 20px;
}
.membership-perks {
  list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif; font-size: 0.9rem;
}
.membership-perks li::before { content: "\2713  "; color: var(--accent); font-weight: 700; }
.membership-cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 0.95rem; padding: 13px 26px; border-radius: 8px;
}
.membership-cta:hover { text-decoration: none; filter: brightness(1.1); }
.membership-note {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.75rem; opacity: 0.6; margin: 14px 0 0;
}

.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px;
}
.support-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}
.support-card h2 { font-family: Georgia, serif; font-size: 1.15rem; margin: 0 0 8px; }
.support-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.support-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.support-links a {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 8px 12px; border-radius: 6px;
}
.support-links a:hover { text-decoration: none; filter: brightness(0.95); }
.support-note {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.75rem; color: var(--ink-soft); margin-top: 24px;
}
.support-note code { background: var(--accent-soft); padding: 2px 5px; border-radius: 4px; }

.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 20px;
  text-align: center;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.72rem; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer-links { margin-top: 6px; }

.reader-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
/* Author `display` always beats the browser's own [hidden]{display:none} default
   regardless of selector specificity (see the show-more fix, same bug class) —
   every element here that's toggled via the hidden attribute needs its own
   explicit override or JS's `.hidden = true` silently does nothing. */
.reader-backdrop[hidden] { display: none; }
.reader-modal {
  position: relative;
  background: var(--bg-card); color: var(--ink);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.reader-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, 0.45); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.reader-close:hover { background: var(--accent); }
.reader-image { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.reader-image[hidden] { display: none; }
.reader-body { padding: 22px 24px 26px; }
.reader-body h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.4rem; line-height: 1.3; margin: 10px 0 12px; text-wrap: balance;
}
.reader-body p {
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 20px;
}
.reader-cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 0.9rem; padding: 11px 22px; border-radius: 8px;
}
.reader-cta:hover { text-decoration: none; filter: brightness(1.1); }
