/* Domskica stylesheet.
 *
 * Design tokens are locked in this site's CLAUDE.md section 3 and must not drift.
 * Shipped as an EXTERNAL stylesheet on purpose: rank-and-rent and fb-traffic both inline their CSS
 * in a <style> block, so an external file is one more thing this site does not share with them
 * (prohibition 1). Class names all carry the ds- prefix and match nothing in either system.
 *
 * No @import, no webfont fetch, no third-party request of any kind. That is what keeps the privacy
 * page honest when it says the site loads nothing from other servers. Bitter and Inter are named
 * first and used if the reader happens to have them; otherwise the fallbacks carry the same shape.
 * Self-hosted woff2 can be added later without touching the markup.
 */

:root {
  --ds-ink: #14201c;
  --ds-ink-soft: #4a5a53;
  --ds-accent: #2f6f4f;
  --ds-accent-dark: #235539;
  --ds-surface: #f4f2ed;
  --ds-paper: #fffdf9;
  --ds-rule: #ddd8cd;
  --ds-head: Bitter, "Roboto Slab", Rockwell, "Bookman Old Style", Georgia, serif;
  --ds-body: Inter, "Segoe UI Variable", Tahoma, Verdana, sans-serif;
  --ds-measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ds-surface);
  color: var(--ds-ink);
  font-family: var(--ds-body);
  font-size: 18px;
  line-height: 1.75;
}

a { color: var(--ds-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ds-accent); }

img { max-width: 100%; height: auto; }

/* ---------- masthead ---------- */
/* Not sticky, no top bar, no phone strip. Deliberately unlike the rank-and-rent header. */
.ds-mast {
  background: var(--ds-paper);
  border-bottom: 3px solid var(--ds-accent);
}
.ds-mast__inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 22px 20px;
}
.ds-mast__brand {
  display: block;
  font-family: var(--ds-head);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ds-ink);
  text-decoration: none;
}
.ds-mast__tagline {
  margin: 4px 0 0;
  color: var(--ds-ink-soft);
  font-size: 0.95rem;
}
.ds-nav {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.ds-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ds-ink);
  text-decoration: none;
}
.ds-nav a:hover { color: var(--ds-accent); text-decoration: underline; }

/* ---------- shell ---------- */
.ds-shell { max-width: 940px; margin: 0 auto; padding: 0 22px; }

/* ---------- blog roll: FULL post bodies, never excerpts (master override 2.4) ---------- */
.ds-roll { padding: 8px 0 0; }
.ds-roll__empty {
  margin: 40px 0 56px;
  padding: 26px;
  background: var(--ds-paper);
  border: 1px dashed var(--ds-rule);
  color: var(--ds-ink-soft);
}
.ds-entry {
  background: var(--ds-paper);
  border: 1px solid var(--ds-rule);
  padding: 30px 28px;
  margin: 34px 0;
}
.ds-entry + .ds-entry { margin-top: 26px; }
.ds-entry__title {
  font-family: var(--ds-head);
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.ds-entry__title a { color: var(--ds-ink); text-decoration: none; }
.ds-entry__title a:hover { color: var(--ds-accent-dark); text-decoration: underline; }
.ds-entry__meta {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--ds-ink-soft);
}
.ds-entry__body > *:first-child { margin-top: 0; }
.ds-entry__body p { max-width: var(--ds-measure); margin: 0 0 20px; }
.ds-entry__body h2 {
  font-family: var(--ds-head);
  font-size: 1.2rem;
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--ds-accent);
}
.ds-entry__body h3 { font-family: var(--ds-head); font-size: 1.05rem; margin: 24px 0 8px; }
.ds-entry__body ul, .ds-entry__body ol { max-width: var(--ds-measure); margin: 0 0 20px; padding-left: 22px; }
.ds-entry__body li { margin-bottom: 8px; }
.ds-entry__more { margin: 24px 0 0; font-weight: 600; }

/* ---------- single article + static page ---------- */
.ds-page { background: var(--ds-paper); border: 1px solid var(--ds-rule); padding: 34px 28px; margin: 34px 0; }
.ds-page__title { font-family: var(--ds-head); font-size: 1.9rem; line-height: 1.25; margin: 0 0 18px; }
.ds-page__meta { margin: -10px 0 22px; font-size: 0.85rem; color: var(--ds-ink-soft); }
.ds-page p { max-width: var(--ds-measure); margin: 0 0 20px; }
.ds-page h2 {
  font-family: var(--ds-head);
  font-size: 1.25rem;
  margin: 32px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--ds-accent);
}
.ds-page h3 { font-family: var(--ds-head); font-size: 1.05rem; margin: 24px 0 8px; }
.ds-page ul, .ds-page ol { max-width: var(--ds-measure); margin: 0 0 20px; padding-left: 22px; }
.ds-page li { margin-bottom: 8px; }
.ds-contact { font-size: 1.15rem; font-weight: 600; }

/* ---------- 404 ---------- */
/* Own layout, shares no structure with any other site's 404 (prohibition 20). */
.ds-gone { max-width: 620px; margin: 0 auto; padding: 70px 22px 90px; text-align: left; }
.ds-gone__code {
  font-family: var(--ds-head);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--ds-accent);
  margin: 0 0 10px;
}
.ds-gone__title { font-family: var(--ds-head); font-size: 1.5rem; margin: 0 0 16px; }

/* ---------- footer ---------- */
.ds-foot {
  margin-top: 60px;
  border-top: 1px solid var(--ds-rule);
  background: var(--ds-paper);
}
.ds-foot__inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 22px 40px;
  font-size: 0.88rem;
  color: var(--ds-ink-soft);
}
.ds-foot__links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.ds-foot__links a { color: var(--ds-ink); }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .ds-entry, .ds-page { padding: 24px 18px; }
  .ds-page__title { font-size: 1.6rem; }
  .ds-entry__title { font-size: 1.35rem; }
}

/* ---------- image slots (seo-core Section P) ---------- */
/* This site has no dark hero band, so the lead image is a real <figure> with real alt text rather
 * than a CSS background. That is a deliberate departure from the rank-and-rent hero pattern: on an
 * editorial page the lead image should be indexable and readable aloud, and a background cannot be
 * either. Class names stay ds- prefixed, so nothing is shared with content-figure. */
.ds-fig { margin: 0 0 22px; }
.ds-fig img { width: 100%; height: auto; display: block; border-radius: 3px; }
.ds-fig figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--ds-ink-soft); }
.ds-fig--lead { margin-bottom: 26px; }

/* ---------- tables (seo-core Section H) ---------- */
.ds-table-intro { font-weight: 700; margin-bottom: 8px; }
.ds-tablewrap { overflow-x: auto; margin: 0 0 22px; }
.ds-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.ds-table th, .ds-table td { border: 1px solid var(--ds-rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.ds-table th { background: var(--ds-surface); font-family: var(--ds-head); }

