/* ==========================================================================
   blog.css: the one stylesheet of every blog page (index + posts, DE/EN/HE).
   External on purpose: blog pages live in sub-folders, where the CSP hash list
   (tools/csp-hashes.php) does not reach, so they carry no inline script; the
   page look stays one file instead of 6 inline copies that drift apart.
   Header/footer/menu rules are the about page's; the menu itself is fx-nav.css.
   ========================================================================== */
/* ==========================================================================
   TOKENS + BASE: copied from en-about.html (which copied index.html), only the
   rules the blog uses. If the home page's tokens change, change them here too.
   ========================================================================== */
:root {
  --ink: #101d28; --ink-raised: #172b35; --hero: #061721; --night: #071721;
  --emerald: #007f68; --emerald-hover: #006451; --jade: #59c3a0; --jade-bright: #65dfc1;
  --copper: #c5784f; --copper-bright: #d4976e; --copper-dark: #925031; --copper-hero: #edaa75;
  --champagne: #d8c5a3; --ivory: #f4f0e7; --paper: #fffdf8;
  --muted: #b4c2c5; --muted-light: #536268;
  --line: rgba(244,240,231,.16); --line-light: rgba(16,29,40,.16);
  --radius: 16px; --max: 1376px; --gutter: 48px; --section: 80px;
  --body: "Segoe UI", Arial, sans-serif;
  --accent: Georgia, "Times New Roman", serif;
  --mono: Consolas, monospace;
  --ease: 180ms ease-out;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: 112px; }  /* 88px sticky header + 24px air */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.08; letter-spacing: -.045em; }
h1, h2 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 650; }
p { max-width: 64ch; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip-link { position: fixed; inset-block-start: -90px; inset-inline-start: 20px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { inset-block-start: 8px; }
.eyebrow { max-width: none; font-size: 11px; letter-spacing: .2em; font-weight: 650; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.accent { font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--copper-bright); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.section-heading > div { flex: 1; }
.section-heading > p { max-width: 390px; font-size: 16px; color: var(--muted); }
.button { min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: center; transition: background var(--ease), transform var(--ease), border-color var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-copper { color: var(--ink); background: linear-gradient(125deg, #c78352, #e6a16b); border-color: #f1b784; box-shadow: inset 0 1px 0 #ffffff42; }
.button-copper:hover { background: var(--copper-bright); }
.arrow { font-size: 21px; line-height: 1; }

/* ==========================================================================
   HEADER: the home page's header. The language link points to the
   same document in the other language.
   ========================================================================== */
/* Sticky (Beri 2026-11-25): the menu stays in reach on long pages. z-index 20 sits under
   the modals (60), the skip link (100) and the cookie banner (track.js, 2147483000). */
.site-header { position: sticky; inset-block-start: 0; z-index: 20; background: var(--hero); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.brand { flex-shrink: 0; width: 252px; display: block; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; gap: 30px; align-items: center; font-size: 14px; }
.desktop-nav a:hover { color: var(--jade); }
.header-actions { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.header-actions .button { min-height: 44px; padding: 11px 18px; font-size: 13px; }
.header-login:hover { color: var(--jade); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ivory); font-size: 22px; line-height: 1; }
/* Opened at any scroll position from the sticky header: never taller than the screen. */
.mobile-nav { padding: 8px 0 24px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { display: block; padding: 12px; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   FOOTER: as on the home page.
   ========================================================================== */
.site-footer > .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.footer-brand { width: 170px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; font-size: 12px; color: var(--muted); }
.footer-links a { display: inline-block; padding-block: 8px; min-height: 32px; }
.footer-links a:hover { color: var(--ivory); }
.footer-bottom { font-size: 11px; color: var(--muted); padding-bottom: 24px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ==========================================================================
   RESPONSIVE: the home page's breakpoints.
   ========================================================================== */
@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .header-actions { gap: 10px; }
  .brand { width: 205px; }
}
@media (max-width: 959px) {
  :root { --gutter: 32px; }
  .desktop-nav, .header-login, .header-actions > .button { display: none; }
  .menu-toggle { display: block; }
  .site-footer > .container { flex-wrap: wrap; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --section: 58px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 96px; }  /* 72px header + 24px */
  .header-inner { min-height: 72px; gap: 6px; }
  .brand { width: 176px; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  h1, h2 { font-size: 36px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; max-width: 100%; font-size: 15px; }
  .site-footer > .container { display: block; padding-block: 24px; }
  .footer-links { margin-top: 18px; gap: 14px 18px; }
}
@media (max-width: 389px) { .brand { width: 48px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}


/* ==========================================================================
   BLOG INDEX: heading, intro, card list (cards are written by tools/blog/publish.mjs).
   ========================================================================== */
.blog { background: radial-gradient(ellipse at top right, #18333c 0, transparent 65%), var(--night); }
.blog-index h1 { margin-bottom: 20px; }
.blog-intro { font-size: 18px; color: var(--muted); margin-bottom: 44px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; max-width: 760px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-raised); padding: 26px 28px; transition: border-color var(--ease); }
.post-card:hover, .post-card:focus-within { border-color: var(--jade); }
.post-card h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.post-card h2 a { display: block; }
.post-card h2 a:hover { color: var(--jade); }
.post-card p { font-size: 16px; color: var(--muted); margin-top: 10px; }
.post-card .post-card-meta { font-size: 13px; letter-spacing: .02em; margin: 0; color: var(--champagne); }
.blog-empty { max-width: 560px; color: var(--muted); }

/* ==========================================================================
   POST: one reading column. Headline, meta line, body, the single tool link.
   Body elements are plain h2/h3/p/ul/ol/figure/blockquote/table so an author
   can write them by hand; there is no component to learn.
   ========================================================================== */
.post-crumb { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.post-crumb a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.post h1 { margin-bottom: 22px; font-size: clamp(32px, 3.4vw, 48px); }
.post-meta { max-width: none; font-size: 14px; letter-spacing: .02em; color: var(--champagne); margin-bottom: 40px; }
/* Hero image: a real picture of the topic (publish.mjs checks path, width and that it is not a site share image). Width/height attributes reserve the box, so CLS stays 0. */
.post-hero { max-width: 960px; margin: 0 0 40px; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
/* "Written with AI assistance": a plain label next to the byline, same size as the meta line, not a badge. */
.post-ai { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.post-body { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--muted); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.2; color: var(--ivory); margin-top: 2em; }
.post-body h3 { font-size: 20px; letter-spacing: -.01em; color: var(--ivory); margin-top: 1.6em; }
.post-body p { max-width: none; }
.post-body ul, .post-body ol { padding-inline-start: 24px; }
.post-body li + li { margin-top: .4em; }
.post-body a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.post-body b, .post-body strong { color: var(--ivory); font-weight: 600; }
.post-body blockquote { border-inline-start: 2px solid var(--copper); padding-inline-start: 18px; color: var(--ivory); }
.post-body figure { margin-inline: 0; }
.post-body figure img { border-radius: 12px; width: 100%; }
.post-body figcaption { font-size: 14px; margin-top: 8px; }
.post-body code { font: 15px var(--mono); background: var(--ink-raised); padding: 2px 6px; border-radius: 4px; color: var(--ivory); }
.post-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.post-body th, .post-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.post-next { max-width: 720px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; color: var(--ivory); }
.post-next a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.header-lang { font: 12px var(--mono); letter-spacing: .08em; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.header-lang:hover { color: var(--jade); border-color: var(--jade); }
@media (max-width: 639px) {
  .post-body, .blog-intro, .post-next { font-size: 16.5px; }
  .post-card { padding: 22px 20px; }
  .post-card h2 { font-size: 21px; }
}

/* ==========================================================================
   WDM SEAL: the studio's 1px signature (studio-seal skill), copied from en-about.html.
   ========================================================================== */
/* The seal is a signature, not a badge: it stays under 20% until you look for it.
   difference-blend, NOT currentColor: inheriting the footer's text colour assumed the
   footer's text always contrasts with whatever is painted at the very bottom of the
   page. On a dark decorative panel that runs to the page edge it did not, and the mark
   vanished (cafe-fundstueck desktop, 2026-08-21). Difference against white is contrast
   by construction, so it works on cream, near-black and mid-brown alike. */
/* Bottom-LEFT, not the conventional bottom-right an artist would sign: the demos put a
   fixed WhatsApp button in the right corner, and it covered the seal completely
   (carmen-2, 2026-08-21). The left corner is the one nothing floats over.
   30% and not 20%: difference-blend is weakest against mid-tones, and at 20% a warm tan
   footer measured only 9 RGB of separation - under the 12 the mark needs to be seen.
   This footer is near-black ink, not a mid-tone, so the skill's 14% holds here (as on index.html). */
.wdm-seal{display:block;text-align:left;padding:0 clamp(1rem,4vw,3rem) 1.25rem;line-height:0}
.wdm-seal svg{width:28px;height:28px;color:#fff;opacity:.14;mix-blend-mode:difference;transition:opacity .4s ease,color .4s ease}
.wdm-seal:hover svg,.wdm-seal:focus-visible svg{opacity:1;mix-blend-mode:normal;color:#D2A62C}
.wdm-seal span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* On paper the mark is unreadable, so print spells the studio out instead. */
@media print{.wdm-seal{text-align:center;line-height:1.4}.wdm-seal svg{display:none}.wdm-seal::after{content:"gebaut von Wild Digital Moments - wilddigitalmoments.com";font:11px Georgia,serif;opacity:.75}}
@media (prefers-reduced-motion:reduce){.wdm-seal svg{transition:none}}
