:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #2a2522;
  --muted: #6b625c;
  --line: #ebe4dc;
  --accent: #b5524a;
  --accent-ink: #ffffff;
  --soft: #f4ece4;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.brand svg { flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 40px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .lead { margin: 0; }
.note { font-size: .9rem; color: var(--muted); }
.pill { display: inline-block; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: .85rem; margin-bottom: 14px; }

/* stories */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; }
.card p { margin: 0 0 .9rem; }
.card p:last-child { margin-bottom: 0; }
.initials { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 600; margin-bottom: 12px; font-family: Georgia, serif; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 40px; margin-top: 48px; }
.list { padding-left: 1.2rem; }
.list li { margin-bottom: .5rem; }

/* legal pages */
.page { padding: 48px 0 64px; }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.page th, .page td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; color: var(--muted); font-size: .9rem; background: var(--surface); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer .langs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; color: var(--ink); }
[dir="rtl"] .list { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .page th, [dir="rtl"] .page td { text-align: right; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 20px; display: none; }
.consent.open { display: block; }
.consent h3 { font-size: 1.1rem; }
.consent p { margin: 0 0 12px; font-size: .95rem; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 8px 0; }
.consent .opts { display: none; border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 12px; }
.consent.custom .opts { display: block; }
.consent #c-save, .consent.custom #c-manage { display: none; }
.consent.custom #c-save { display: inline-block; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 10px 16px; font: inherit; font-size: .95rem; cursor: pointer; }
.btn.secondary { background: var(--surface); color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  .nav { gap: 12px; }
}
