@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');
:root { --accent: #7c3aed; --ink: #1a1033; --paper: #f5f3ff; --card: #ffffff;
  --muted: color-mix(in srgb, var(--ink) 50%, var(--paper)); --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --soft: color-mix(in srgb, var(--accent) 6%, var(--paper)); --shadow: 0 1px 4px rgba(0,0,0,.05);
  --serif: 'Merriweather', Georgia, serif; --sans: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --accent: #a78bfa; --ink: #ddd8d2; --paper: #111510; --card: #1a1f17; --shadow: 0 1px 6px rgba(0,0,0,.25); color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)); }
.read { max-width: 65ch; margin: 0 auto; }
header.mast { background: var(--paper); padding: 20px 0 0; border-bottom: 1px solid var(--line); }
.mast .wrap { text-align: center; max-width: 800px; }
.logo { display: block; text-decoration: none; color: var(--ink); font: 900 clamp(28px,4vw,38px)/1 var(--serif); letter-spacing: -.01em; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.logo b { display: none; }
nav.top { display: flex; justify-content: center; gap: 0; }
nav.top a { color: var(--muted); text-decoration: none; padding: 10px 16px; font: 500 13px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
nav.top a:hover { color: var(--ink); }
nav.top a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.featured { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin: 32px 0; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.featured:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.featured-img { position: relative; overflow: hidden; min-height: 280px; }
.featured-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-info { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.featured .cat { display: inline-block; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--soft); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; align-self: flex-start; }
.featured h2 { font: 700 clamp(20px,2.5vw,26px)/1.3 var(--serif); margin: 0 0 10px; }
.featured p { font: 400 15px/1.6 var(--sans); color: var(--muted); margin: 0 0 16px; }
.featured .rd { font: 600 13px/1 var(--sans); color: var(--accent); letter-spacing: .02em; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-block: 20px 40px; }
.two-col > aside { display: flex; flex-direction: column; gap: 24px; }
.sec-title { font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); padding-bottom: 12px; border-bottom: 2px solid var(--accent); margin-bottom: 20px; }
.ac { display: grid; grid-template-columns: 160px 1fr; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); margin-bottom: 16px; transition: box-shadow .15s; }
.ac:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.ac-img { min-height: 120px; position: relative; overflow: hidden; }
.ac-img svg { position: absolute; inset: 0; }
.ac-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.ac h3 { margin: 0; font: 700 16px/1.3 var(--serif); }
.ac p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ac .meta { font: 400 12px/1 var(--sans); color: var(--muted); }
.side-box { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.side-box h3 { font: 700 15px/1.3 var(--serif); margin: 0 0 10px; }
.side-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,300px), 1fr)); gap: 20px; padding-block: 8px 32px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 0; font: 700 16px/1.3 var(--serif); }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card .meta { font: 400 12px/1 var(--sans); color: var(--muted); }
.meta { font: 400 13px/1.4 var(--sans); color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }
h2 { font: 700 22px/1.3 var(--serif); margin: 2em 0 .5em; }
h3 { font: 600 16px/1.4 var(--sans); margin: 1.6em 0 .4em; }
.page-title { padding: 40px 0 20px; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-title h1 { font: 900 28px/1.2 var(--serif); margin: 0 0 6px; }
.page-title p { margin: 0; color: var(--muted); font-size: 14px; font-style: italic; }
article.post { padding-block: 40px 20px; }
article.post h1 { font: 700 clamp(24px, 3.4vw, 34px)/1.3 var(--serif); margin: 10px 0 14px; }
article.post .lede { font: 400 17px/1.6 var(--serif); color: var(--muted); font-style: italic; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.tbl { overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 12px 16px; margin: 1.2em 0; border-radius: 0 6px 6px 0; font-size: 15px; }
.sources { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1em; font-size: 14px; }
.sources h2 { font: 600 13px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 .5em; color: var(--muted); }
.sources ol { padding-left: 1.2em; margin: 0; }
.signup { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.signup h2 { margin: 0 0 4px; font: 700 16px/1.3 var(--serif); }
.signup p { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-style: italic; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 15px var(--sans); }
.signup button { padding: 10px 18px; border-radius: 6px; border: 0; background: var(--accent); color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.signup button[disabled], .signup input[disabled] { opacity: .55; cursor: not-allowed; }
.signup label.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); flex-basis: 100%; }
.signup .hp { position: absolute; left: -9999px; }
.signup .msg { flex-basis: 100%; font-size: 13px; margin: 4px 0 0; }
footer.foot { border-top: 2px solid var(--ink); margin-top: 60px; padding-block: 20px 40px; font-size: 12px; color: var(--muted); text-align: center; }
footer.foot .wrap { display: block; max-width: 800px; }
footer.foot nav { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); }
@media (max-width: 768px) { .featured { grid-template-columns: 1fr; } .featured-img { min-height: 200px; } .two-col { grid-template-columns: 1fr; } .ac { grid-template-columns: 120px 1fr; } }
@media (max-width: 480px) { .ac { grid-template-columns: 1fr; } .ac-img { min-height: 140px; } }
