/* saeij.com. No external fonts or scripts: fast, private, nothing to break. */
:root {
  --bg: #fbfaf7; --ink: #16202a; --muted: #5b6670; --rule: #e6e2d9; --card: #ffffff;
  --accent: #0f5c5c; --accent-ink: #0b4545; --warm: #a4661a; --note: #f3efe4; --howto: #7a5a12;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12171c; --ink: #e8e6e1; --muted: #9aa5ae; --rule: #2a333c; --card: #1a2128;
          --accent: #5cc0b8; --accent-ink: #8ad6cf; --warm: #e0a559; --note: #1f2830; --howto: #d8ab4e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; z-index: 10; }
.muted { color: var(--muted); }

/* header */
.site-header { border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--accent); text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand span { color: var(--ink); }
.brand .mark { fill: var(--bg); }
nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.98rem; }
nav a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-ink); }

/* type */
main.wrap { padding-top: 3rem; padding-bottom: 4rem; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0.2rem 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.6rem 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 650; color: var(--warm); margin: 0; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.28rem; line-height: 1.55; color: var(--ink); margin-top: 0; }
.byline { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); margin: -0.2rem 0 1.6rem; }
.prose { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--accent); color: var(--muted); }
code { font-size: 0.92em; background: var(--note); padding: 0.1em 0.3em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.note { background: var(--note); border-left: 3px solid var(--warm); padding: 0.9rem 1.1rem; margin: 1.6rem 0; font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; border-radius: 0 6px 6px 0; }
.draft-banner { font-family: var(--sans); font-size: 0.9rem; background: #7a2e0e; color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; display: inline-block; margin: 0 0 1.2rem; }

/* home */
.hero { max-width: 46rem; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; margin: 2rem 0 1rem; }
.card { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem 1.5rem 1.3rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.card h2 { margin: 0.3rem 0 0.5rem; font-size: 1.45rem; }
.card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.card p.eyebrow { color: var(--warm); font-size: 0.78rem; margin: 0; }
.card .more { font-family: var(--sans); font-size: 0.92rem; font-weight: 650; color: var(--accent); }
.latest h2 { font-size: 1.2rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 650; }
.latest-list { list-style: none; padding: 0; }
.latest-list li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.latest-list .muted { font-family: var(--sans); font-size: 0.88rem; margin-left: 0.4rem; }

/* topic lists */
.topics { list-style: none; padding: 0 !important; margin: 1.5rem 0; }
.topic { padding: 1rem 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.topic:last-child { border-bottom: 1px solid var(--rule); }
.topic .t { font-weight: 650; font-size: 1.15rem; }
.topic.soon .t { color: var(--ink); }
.topic p { margin: 0.25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tag { font-family: var(--sans); font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.12rem 0.55rem; margin-left: 0.4rem; vertical-align: 0.15em; white-space: nowrap; }
.tag.draft { color: #fff; background: #7a2e0e; border-color: #7a2e0e; }

/* guide landing */
.cta { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.3rem 1.5rem; margin: 2rem 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
.cta strong { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.button { display: inline-block; margin-top: 0.8rem; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 650; padding: 0.6rem 1.1rem; border-radius: 8px; }
.button:hover { background: var(--accent-ink); color: var(--bg); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.88rem; line-height: 1.55; color: var(--muted); padding: 2rem 0 2.5rem; }
.site-footer p { max-width: 46rem; margin: 0 0 0.7rem; }
.site-footer strong { color: var(--ink); font-weight: 650; }
.site-footer .links a { margin-right: 1.2rem; }

@media (max-width: 40rem) { body { font-size: 1.06rem; } main.wrap { padding-top: 2rem; } .lead { font-size: 1.15rem; } }
@media print { .site-header nav, .site-footer .links, .cta { display: none; } body { background: #fff; color: #000; } }

/* articles: short-answer box, citations, sources */
.short { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.6rem 0 2rem; }
.short p { margin: 0.4rem 0; }
.short .label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 650; color: var(--accent); margin: 0 0 0.3rem; }
/* "How to do it" boxes in the guides: commands the reader can run straight away */
.howto { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--howto); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem 0.7rem; margin: 1.6rem 0 2rem; }
.howto p { margin: 0.4rem 0; }
.howto .label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 650; color: var(--howto); margin: 0 0 0.3rem; }
.howto pre { margin: 0.55rem 0; }

sup.ref { line-height: 0; }
sup.ref a { font-family: var(--sans); font-size: 0.72em; text-decoration: none; padding: 0 0.1em; }
.sources { font-family: var(--sans); font-size: 0.88rem; line-height: 1.5; color: var(--muted); padding-left: 1.4rem !important; }
.sources li { margin: 0.45rem 0; }
.sources li:target { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.95rem; margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 650; }
.table-wrap { overflow-x: auto; }

/* guide chapters */
.chapter-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.95rem; }
.chapter-nav a { text-decoration: none; max-width: 48%; }
.chapter-nav .next { text-align: right; margin-left: auto; }
.prose .callout { background: var(--note); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: 1.02rem; }
.prose .callout .label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 650; color: var(--warm); margin: 0 0 0.3rem; }
.prose pre { background: var(--note); padding: 0.9rem 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.9rem; line-height: 1.45; }

/* unlisted review copy: a standing note at the foot of each draft chapter */
.review-note { font-family: var(--sans); font-size: 0.92rem; background: var(--note); border: 1px dashed var(--rule);
  border-radius: 8px; padding: 0.7rem 0.9rem; margin: 2.5rem 0 0; color: var(--muted); }
.review-note a { color: var(--accent-ink); }
