/* Text pages (why, bookmarklet, privacy, impressum): a sheet of paper on the same sand ground as the app */
@import url('/static/fonts.css');

:root {
    --ink: #1a1814;
    --ink-muted: #5c5345;
    --rule: #e8e1d4;
    --primary: #16a34a;
    --ground: linear-gradient(115deg, #f8f1e4, #f3e8d4 60%, #efe2cc);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ground); }
body {
    margin: 0;
    color: var(--ink);
    font-family: 'Figtree', system-ui, sans-serif;
    font-size: 15px;
}

a { color: inherit; }
a:hover { color: var(--primary); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 24px clamp(16px, 4vw, 48px);
}
.wordmark { font-family: 'Literata', Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.wordmark::after { content: '.'; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current] { color: var(--primary); }

.sheet {
    /* An A4 sheet: at least as tall as 1.414 × its width, with margins like the PDFs */
    --sheet-width: min(840px, 100vw - 32px);
    width: var(--sheet-width);
    min-height: calc(var(--sheet-width) * 1.414);
    margin: 8px auto 32px;
    padding: calc(var(--sheet-width) * 0.1) calc(var(--sheet-width) * 0.11);
    background: white;
    box-shadow: 0 1px 1px rgba(80, 60, 30, 0.08), 0 2px 6px rgba(80, 60, 30, 0.06), 0 18px 40px -8px rgba(80, 60, 30, 0.14);
}

.sheet h1 {
    margin: 0 0 28px;
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.sheet h2 {
    margin: 40px 0 12px;
    font-family: 'Literata', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

/* Reading text */
.prose p, .prose li { font-family: 'Literata', Georgia, serif; font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 20px; line-height: 1.5; }
.prose a { text-decoration-color: rgba(22, 163, 74, 0.5); text-underline-offset: 3px; }

/* Legal pages: same faces, smaller and denser */
.prose.small p, .prose.small li { font-size: 15px; line-height: 1.6; }
.prose.small h2 { font-size: 17px; margin-top: 32px; }
.muted { color: var(--ink-muted); }

.site-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 16px 32px;
    font-size: 13px;
    color: var(--ink-muted);
}
.site-footer a { text-decoration: none; }
