:root {
  --bg: #f3efe6;
  --surface: #fffaf3;
  --text: #1c1915;
  --muted: #5e564c;
  --line: #e4d9c8;
  --accent: #9a3412;
  --accent-ink: #fffaf3;
  --accent-soft: #f3e1d4;
  --ok: #1f6b45;
  --ok-soft: #e5f3eb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 21, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1b17;
    --text: #f6f1e8;
    --muted: #b3a89a;
    --line: #3a342c;
    --accent: #e07a4c;
    --accent-ink: #1c1915;
    --accent-soft: #3a241c;
    --ok: #7dcea0;
    --ok-soft: #163024;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2em 0 .4em; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.eyebrow { margin: 28px 0 0; color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 42rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-family: Georgia, Palatino, serif; font-size: 1.2rem; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--accent-soft); }

main { padding-bottom: 56px; }
.hero { padding: 28px 0 8px; }

.date-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 16px; }
.date-pill { display: flex; align-items: center; gap: 10px; min-width: max-content; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--text); }
.date-day { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: Georgia, Palatino, serif; font-weight: 700; }
.date-nav { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.filters label, .calc label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
select, input[type="date"], .calc input {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 650; padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 7px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.teaser, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; margin: 12px 0;
  box-shadow: var(--shadow);
}
.teaser h2 { margin: .2em 0 .3em; font-size: 1.25rem; }
.teaser h2 a { color: var(--text); text-decoration: none; }
.teaser h2 a:hover { color: var(--accent); }
.teaser p { margin: .3em 0; }
.teaser-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; font-size: .88rem; }
.chip { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 2px 10px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.card h2 { margin: 0 0 .4em; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.card:hover { border-color: var(--accent); }
.card-link { color: var(--accent); font-weight: 700; }

.points { padding-left: 1.1em; }
.points li { margin: .8em 0; }
blockquote { margin: .4em 0 0; padding: .2em 0 .2em 14px; border-left: 3px solid var(--accent); color: var(--muted); }
blockquote p { margin: .2em 0; }
blockquote footer { font-size: .82rem; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose { max-width: 760px; }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: 22px; }
.crumbs a { text-decoration: none; }

.cal-list { list-style: none; padding: 0; }
.cal-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pager { display: flex; gap: 8px; margin-top: 16px; }
.pager a { text-decoration: none; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.pager a[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.calc { display: grid; gap: 12px; max-width: 420px; margin: 18px 0; }
.calc-result { scroll-margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 24px; min-height: 3em; }
.ad { margin: 18px 0; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; }
.ad-label { font-size: .75rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 24px; }
.footer-title { font-weight: 700; margin: 0 0 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0 0 .25em; }
.footer-bottom { margin-top: 18px; }

.cookie { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
.cookie-inner { max-width: 980px; margin: 0 auto; padding: 14px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-inner p { margin: 0; max-width: 46rem; }
.cookie-actions { display: flex; gap: 8px; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { align-items: stretch; }
}
