/* The Meridian — main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --black:    #111010;
  --ink:      #1c1c1c;
  --ink-2:    #3a3a3a;
  --ink-3:    #666;
  --ink-4:    #999;
  --rule:     #c8c0b4;
  --rule-dk:  #8a8278;
  --cream:    #faf8f4;
  --cream-2:  #f3f0eb;
  --cream-3:  #ece8e1;
  --red:      #8b1a1a;
  --red-h:    #b01e1e;
  --gold:     #9a7b2e;
  --serif:    'Libre Baskerville', Georgia, serif;
  --body:     'Lora', Georgia, serif;
  --sans:     'Source Sans 3', Helvetica, sans-serif;
  --wrap:     1280px;
}

body { font-family: var(--body); background: var(--cream); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── TOP BAR ── */
.top-bar { background: var(--black); color: rgba(255,255,255,.5); display: flex; justify-content: space-between; align-items: center; padding: 6px 2rem; font-family: var(--sans); font-size: 11px; flex-wrap: wrap; gap: 4px; }

/* ── MASTHEAD ── */
.masthead { background: var(--cream); padding: 1.5rem 2rem 0; text-align: center; border-bottom: 3px double var(--black); }
.masthead-overline { font-family: var(--sans); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.masthead-name-link { text-decoration: none; }
.masthead-name { font-family: 'UnifrakturMaguntia', serif; font-size: clamp(48px, 8vw, 100px); color: var(--black); line-height: 1; margin-bottom: .25rem; }
.masthead-motto { font-family: var(--body); font-style: italic; font-size: 13px; color: var(--ink-3); margin-bottom: 1rem; }
.masthead-rule { height: 1px; background: var(--rule-dk); margin: 0 -2rem; }
.masthead-nav { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.masthead-nav::-webkit-scrollbar { display: none; }
.nav-link { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); padding: 9px 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); border-bottom-color: var(--red); }

/* ── TICKER ── */
.ticker-bar { background: var(--black); display: flex; align-items: center; overflow: hidden; height: 34px; }
.ticker-label { background: var(--red); color: #fff; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 0 14px; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-scroll { display: flex; animation: ticker 35s linear infinite; white-space: nowrap; }
.ticker-item { color: rgba(255,255,255,.75); font-family: var(--sans); font-size: 12px; padding: 0 28px; flex-shrink: 0; }
.ticker-item:hover { color: #fff; }
.ticker-item::before { content: '◆'; margin-right: 10px; opacity: .35; font-size: 7px; vertical-align: middle; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── LAYOUT ── */
.site-wrap { max-width: var(--wrap); margin: 0 auto; padding: 2rem; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-ornament { font-family: var(--serif); font-size: 72px; color: var(--rule); line-height: 1; margin-bottom: 1.25rem; font-style: italic; }
.empty-state h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.empty-state p { font-family: var(--body); font-style: italic; color: var(--ink-3); font-size: 15px; max-width: 420px; margin: 0 auto; }

/* ── SECTION HEADER ── */
.cat-section { margin-bottom: 3rem; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.section-rule-left { width: 24px; height: 2px; background: var(--red); flex-shrink: 0; }
.section-title { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap; }
.section-title a { color: var(--red); }
.section-rule-right { flex: 1; height: 1px; background: var(--rule); }
.section-more { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--red); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* ── GRIDS ── */
.grid-featured { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--rule); background: #fff; }
.grid-stack { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.grid-stack .card { border-right: none; flex: 1; }
.grid-stack .card + .card { border-top: 1px solid var(--rule); }
.grid-standard { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: #fff; }
.grid-quartet  { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); background: #fff; }

@media (max-width: 1100px) { .grid-quartet { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px)  { .grid-featured { grid-template-columns: 1fr; } .grid-stack { border-left: none; } .grid-standard { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .grid-standard, .grid-quartet { grid-template-columns: 1fr; } }

/* ── CARDS ── */
.card { background: #fff; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .15s; }
.card:last-child { border-right: none; }
.card--lead { border-right: none; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:hover .card-headline { text-decoration: underline; text-decoration-color: var(--rule-dk); }
.card-img-wrap { overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.88) contrast(1.04); transition: transform .35s; }
.card--lead .card-img { aspect-ratio: 4/3; }
.card:hover .card-img { transform: scale(1.02); }
.card-body { padding: 1.1rem 1.3rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 5px; min-height: 14px; }
.card-headline { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 7px; }
.card--lead .card-headline { font-size: 24px; }
.card-headline--xl { font-size: 28px; }
.card-deck { font-family: var(--body); font-style: italic; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: .75rem; }
.card--lead .card-deck { font-size: 15px; -webkit-line-clamp: 5; }
.card-byline { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: .55rem; border-top: 1px solid var(--rule); }
.card-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 9.5px; font-weight: 700; }
.card-byline-text { flex: 1; min-width: 0; }
.card-author { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-role { font-family: var(--sans); font-size: 10px; color: var(--ink-4); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-time { font-family: var(--sans); font-size: 10px; color: var(--ink-4); flex-shrink: 0; }

/* ── ARTICLE PAGE ── */
.article-wrap { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 2rem 3rem; }
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb-list { display: flex; gap: 8px; list-style: none; font-family: var(--sans); font-size: 11.5px; color: var(--ink-4); }
.breadcrumb-list li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb-list a { color: var(--red); }
.breadcrumb-list a:hover { text-decoration: underline; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }

.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; filter: saturate(.88) contrast(1.04); margin-bottom: 1.75rem; }
.article-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: .5rem; }
.kicker-rule { width: 18px; height: 2px; background: var(--red); flex-shrink: 0; }
.kicker-text { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.article-headline { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.18; color: var(--black); margin-bottom: .55rem; }
.article-deck { font-family: var(--body); font-style: italic; font-size: 18px; color: var(--ink-2); line-height: 1.5; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.article-byline { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.article-avatar { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-weight: 700; }
.byline-name { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); display: block; }
.byline-role { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); display: block; }
.byline-date { font-family: var(--sans); font-size: 11px; color: var(--ink-4); display: block; margin-top: 2px; }
.byline-rule { height: 1px; background: var(--rule); margin-bottom: 1.5rem; }
.article-lead { background: var(--cream-2); border-left: 3px solid var(--red); padding: 1rem 1.2rem; font-family: var(--body); font-style: italic; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 1.5rem; }
.article-body { font-family: var(--body); font-size: 16.5px; line-height: 1.82; color: var(--ink); }
.article-body p { margin-bottom: 1.2rem; }
.analysis-box { margin-top: 2rem; background: var(--cream-3); border: 1px solid var(--rule); border-left: 4px solid var(--gold); padding: 1.2rem 1.4rem; }
.analysis-label { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.analysis-box p { font-family: var(--body); font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.tag { font-family: var(--sans); font-size: 11px; padding: 3px 9px; background: var(--cream-3); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-3); }
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.share-label { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .15s; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 1.5rem; }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-label { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.sidebar-card { display: flex; gap: 10px; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.sidebar-card:last-child { border-bottom: none; }
.sidebar-card-img { width: 80px; height: 52px; object-fit: cover; flex-shrink: 0; filter: saturate(.88); }
.sidebar-card-hl { font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 3px; }
.sidebar-card-hl:hover { text-decoration: underline; }
.sidebar-card-by { font-family: var(--sans); font-size: 10.5px; color: var(--ink-4); }
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats a { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 5px 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.sidebar-cats a::after { content: '→'; opacity: .4; }
.sidebar-cats a:hover { color: var(--red); }

/* ── CATEGORY PAGE ── */
.cat-page-header { text-align: center; padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.cat-page-rule { width: 40px; height: 2px; background: var(--red); margin: 0 auto .75rem; }
.cat-page-title { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.cat-page-sub { font-family: var(--body); font-style: italic; color: var(--ink-3); font-size: 14px; }
.cat-lead { margin-bottom: 2rem; }
.cat-lead .card { border: 1px solid var(--rule); }
.cat-lead .card-img { aspect-ratio: 21/9; }

/* ── FOOTER ── */
.site-footer { background: var(--black); color: rgba(255,255,255,.4); padding: 2.5rem 2rem; margin-top: 3rem; font-family: var(--sans); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.footer-name { font-family: 'UnifrakturMaguntia', serif; font-size: 32px; color: rgba(255,255,255,.75); margin-bottom: .75rem; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 12px; margin-bottom: .75rem; }
.footer-links a { color: rgba(255,255,255,.45); }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-copy { font-size: 11px; line-height: 1.8; }
