:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --text: #121212;
  --muted: #5f6368;
  --line: #e2e2e2;
  --rule: #121212;
  --accent: #9a6a0c;
  --gold: #b7800f;
  --brand: #0f2a44;
  --brand-ink: #ffffff;
  --brand-muted: #9fc3d9;
  --btn: #0f2a44;
  --btn-ink: #ffffff;
  --card: #ffffff;
  --input: #ffffff;
  --ok: #1e7f4f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-soft: #1a1c1f;
    --text: #ececec;
    --muted: #a0a4ab;
    --line: #2c2f34;
    --rule: #ececec;
    --accent: #f2c14e;
    --gold: #f2c14e;
    --brand: #0a1d30;
    --brand-ink: #ececec;
    --brand-muted: #8fb3c9;
    --btn: #f2c14e;
    --btn-ink: #2a1d02;
    --card: #17191c;
    --input: #0d0e10;
    --ok: #5fd39a;
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); margin: 0; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* utility bar */
.utility { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.utility-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.utility-right { display: flex; gap: 16px; }
.utility a { color: var(--text); font-weight: 600; }

/* masthead */
.masthead { background: var(--brand); color: var(--brand-ink); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 4.6vw, 46px); letter-spacing: -.01em; line-height: 1; }
.logo-mark { width: 1.1em; height: 1.1em; flex: none; }
.masthead .logo-mark { --accent: #f2c14e; }
.tagline { margin: 0; color: var(--brand-muted); font-size: 15px; letter-spacing: .02em; }

/* section nav */
.sections { border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--line); position: sticky; top: 0; background: var(--bg); z-index: 20; }
.sections-inner { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sections-inner::-webkit-scrollbar { display: none; }
.sections a { flex: none; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; }
.sections a:hover { color: var(--text); }
.sections a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ticker */
.ticker { border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker-inner { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker-label { flex: none; color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; padding: 9px 0; display: flex; align-items: center; gap: 6px; }
.ticker-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: inline-flex; gap: 40px; white-space: nowrap; animation: scroll 90s linear infinite; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-items a:hover { text-decoration: underline; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items, .ticker-label::before { animation: none; } }

/* front page */
.section-title { font-size: 28px; padding: 22px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.front { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.lead .img-wrap { aspect-ratio: 16 / 9; }
.lead h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 16px 0 10px; letter-spacing: -.01em; }
.lead p { font-family: var(--sans); font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.lead a:hover h2, .card a:hover h3, .more a:hover, .latest a:hover .l-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.img-wrap { position: relative; overflow: hidden; background: var(--bg-soft); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-wrap.noimg { display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, var(--bg-soft), var(--line)); }
.img-wrap.noimg span { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--muted); }

.byline { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.byline .src { color: var(--text); font-weight: 600; }
.byline .src::after { content: "·"; margin-left: 8px; color: var(--muted); font-weight: 400; }

.rail-title { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-top: 3px solid var(--rule); padding-top: 10px; margin-bottom: 6px; }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { border-bottom: 1px solid var(--line); }
.latest li:last-child { border-bottom: 0; }
.latest a { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 11px 0; }
.l-time { font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.l-title { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.3; }
.l-src { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; padding: 28px 0; }
.card a { display: block; }
.card .img-wrap { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.more { list-style: none; padding: 0; margin: 0 0 48px; columns: 2; column-gap: 32px; }
.more li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.more a { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; margin-bottom: 4px; line-height: 1.3; }

.error { padding: 40px 0; color: var(--muted); }

/* skeletons */
.skeleton { background: linear-gradient(90deg, var(--bg-soft), var(--line), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 3px; }
.sk-img { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.sk-line { height: 22px; margin-bottom: 10px; }
.w80 { width: 80%; } .w60 { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* newsletter */
.newsletter-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--bg-soft); border-top: 3px solid var(--gold); padding: 36px; margin: 8px 0 40px; scroll-margin-top: 70px; }
.kicker { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.band-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.band-copy p:last-child { color: var(--muted); margin: 0; }
.field-row { display: flex; gap: 8px; }
input[type=email], input[type=text] { width: 100%; padding: 13px 14px; font: 16px var(--sans); color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 4px; outline: none; }
input:focus { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-soft), 0 0 0 4px var(--text); }
.btn { flex: none; border: 0; cursor: pointer; background: var(--btn); color: var(--btn-ink); font: 600 15px var(--sans); padding: 13px 22px; border-radius: 4px; display: inline-block; text-align: center; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn-block { width: 100%; }
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-size: 14px; }
.options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.options input[type=radio] { accent-color: var(--text); margin: 0; }
.name-field { flex: 1 1 200px; }
.name-field input { padding: 9px 12px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.3em; margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--accent); }
.msg a { text-decoration: underline; }
.fine { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.fine span:not(:empty)::after { content: " "; }

/* footer */
.footer { background: var(--brand); padding: 32px 0 22px; font-size: 14px; color: var(--brand-muted); }
.footer .logo-small, .footer .footer-links a { color: var(--brand-ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner > div:first-child { max-width: 560px; }
.logo-small { font-size: 24px; color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text); font-weight: 600; }
.copyright { margin-top: 20px; font-size: 12px; }

/* unsubscribe page */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg-soft); }
.card.unsub-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 32px; }
.unsub-card .brand { display: block; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 28px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.unsub-card h1 { font-size: 26px; margin-bottom: 8px; }
.unsub-card p { color: var(--muted); }
.unsub-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.unsub-card label input { margin-top: 6px; }
.link { text-decoration: underline; font-size: 15px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front { grid-template-columns: minmax(0, 1fr); }
  .newsletter-band { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .more { columns: 1; }
  .newsletter-band { margin-left: -16px; margin-right: -16px; padding: 24px 16px; }
  .sections-inner { justify-content: flex-start; }
  .utility-right #updated { display: none; }
  .field-row { flex-direction: column; }
  .lead p { font-size: 17px; }
}
