/* Plain Ledger - base styles */
:root {
  --text: #1c2229;
  --muted: #5d6874;
  --line: #dde2e7;
  --bg: #ffffff;
  --link: #1f4e79;
  --soft: #f5f7f9;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e6e9ed; --muted: #a3adb8; --line: #2f3740; --bg: #14181d; --link: #8fb8de; --soft: #1b2027; }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.7 Georgia, "Times New Roman", serif; }
h1, h2, h3, nav, .meta, .cookie, .site-footer, .brand { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; padding: 1rem 0; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav a { margin-right: 1.1rem; font-size: .95rem; color: var(--text); text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a:last-child { margin-right: 0; }

main { padding: 2.5rem 0 4rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: .75rem 0 .25rem; line-height: 1.35; }
p { margin: 0 0 1rem; }
main > h1, main > h2, main > p, .post, .intro { max-width: var(--measure); }
.grid { max-width: none; }
.meta { color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.note { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--line); padding-left: 1rem; margin-top: 2rem; }

.intro { padding: 1rem 0 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card img, .hero { background: var(--soft); border-radius: 2px; }
.card p { font-size: .98rem; }
.hero { margin: 1.5rem 0 2rem; width: 100%; }
.more { margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.site-footer a { margin-right: 1rem; color: var(--muted); }

.cookie { position: fixed; inset: auto 1rem 1rem 1rem; max-width: 40rem; margin-inline: auto; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.15); padding: 1rem; font-size: .9rem; line-height: 1.5; z-index: 20; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 .75rem; }
.cookie button { font: inherit; padding: .5rem .9rem; margin-right: .5rem; border: 1px solid var(--link); background: var(--bg); color: var(--link); cursor: pointer; }
.cookie #cookie-accept { background: var(--link); color: var(--bg); }
