/*
Theme Name: Zielmarke
Theme URI: https://zielmarke.de
Author: Makelki Webdesign — Lennox Makelki
Author URI: https://makelki-webdesign.de
Description: Individuelles Theme für Zielmarke. Digitale Markenentwicklung mit der Hagakure-Strategie. Präzisions-Design in Grün/Schwarz mit Fadenkreuz-Motiv, mehrsprachig, Blog/Journal und integriertem Anfrageformular.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zielmarke
Tags: business, portfolio, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* =========================================================
   ZIELMARKE — Design Tokens
   ========================================================= */
:root {
  /* Palette — refined emerald on green-shifted black */
  --zm-ink:        #0A0E0C;   /* near-black background */
  --zm-ink-2:      #0E1411;   /* raised background */
  --zm-surface:    #121A16;   /* cards / panels */
  --zm-surface-2:  #17211C;   /* hover surface */
  --zm-line:       #223029;   /* hairlines */
  --zm-line-soft:  #1A241F;
  --zm-green:      #22D46E;   /* primary — confident, not neon */
  --zm-green-deep: #0F9A4E;   /* depth */
  --zm-green-dim:  #17563a;   /* muted green for rings */
  --zm-paper:      #F3F6F4;   /* high-contrast text */
  --zm-fog:        #97A69D;   /* muted text */
  --zm-fog-2:      #5F6E66;   /* faint text / captions */

  /* Type */
  --zm-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --zm-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --zm-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4:  clamp(3rem, 2.2rem + 4vw, 6rem);
  --step-5:  clamp(3.8rem, 2.4rem + 6.5vw, 8.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.75rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1240px;

  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--zm-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--zm-paper);
  background: var(--zm-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--zm-green); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--zm-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

/* Selection */
::selection { background: var(--zm-green); color: var(--zm-ink); }

/* =========================================================
   Layout helpers
   ========================================================= */
.zm-container { width: min(100% - calc(var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.zm-section { padding-block: var(--section-y); position: relative; }
.zm-lede { max-width: 62ch; color: var(--zm-fog); font-size: var(--step-1); line-height: 1.5; }

/* Mono eyebrow / coordinate label — signature motif */
.zm-eyebrow {
  font-family: var(--zm-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zm-green);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.zm-eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--zm-green);
  opacity: 0.7;
}

/* Section head */
.zm-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 70ch; }
.zm-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.zm-head p { margin-top: 1.1rem; color: var(--zm-fog); font-size: var(--step-1); line-height: 1.5; }

/* Registration marks — corner reticles that frame sections */
.zm-framed { position: relative; }
.zm-mark { position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0.5; }
.zm-mark::before, .zm-mark::after { content: ""; position: absolute; background: var(--zm-green); }
.zm-mark::before { width: 100%; height: 1px; top: 0; }
.zm-mark::after  { width: 1px; height: 100%; left: 0; }
.zm-mark.tr { top: -1px; right: -1px; transform: scaleX(-1); }
.zm-mark.bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.zm-mark.br { bottom: -1px; right: -1px; transform: scale(-1); }
.zm-mark.tl { top: -1px; left: -1px; }

/* =========================================================
   Buttons — with lock-on reticle
   ========================================================= */
.zm-btn {
  --_bg: var(--zm-green);
  --_fg: var(--zm-ink);
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--zm-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85em 1.4em;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid var(--_bg);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
  font-weight: 500;
}
.zm-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--zm-green-deep); }
.zm-btn svg { width: 1em; height: 1em; }
.zm-btn--ghost { --_bg: transparent; --_fg: var(--zm-paper); border-color: var(--zm-line); }
.zm-btn--ghost:hover { border-color: var(--zm-green); color: var(--zm-green); box-shadow: none; }

/* =========================================================
   Header
   ========================================================= */
.zm-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.zm-header.is-stuck {
  background: color-mix(in srgb, var(--zm-ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--zm-line-soft);
}
.zm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.zm-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--zm-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.zm-brand img { max-height: 40px; width: auto; }
.zm-brand__reticle { width: 22px; height: 22px; flex: 0 0 auto; }

.zm-nav { display: flex; align-items: center; gap: 1.8rem; }
.zm-nav a { font-size: var(--step--1); color: var(--zm-fog); letter-spacing: 0.01em; transition: color 0.25s; position: relative; padding: 0.4rem 0; }
.zm-nav a:hover, .zm-nav .current-menu-item > a { color: var(--zm-paper); }
.zm-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--zm-green); transition: width 0.3s var(--ease); }
.zm-nav a:hover::after, .zm-nav .current-menu-item > a::after { width: 100%; }

.zm-header__right { display: flex; align-items: center; gap: 1.2rem; }

/* Language switcher */
.zm-lang { display: flex; align-items: center; gap: 0.55rem; font-family: var(--zm-mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.zm-lang a, .zm-lang span { color: var(--zm-fog-2); text-transform: uppercase; transition: color 0.25s; }
.zm-lang a:hover { color: var(--zm-green); }
.zm-lang .is-active { color: var(--zm-green); }

/* Burger */
.zm-burger { display: none; width: 40px; height: 40px; background: transparent; border: 1px solid var(--zm-line); border-radius: var(--radius); position: relative; }
.zm-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--zm-paper); transition: transform 0.3s var(--ease), opacity 0.2s; }
.zm-burger span:nth-child(1) { top: 14px; }
.zm-burger span:nth-child(2) { top: 19px; }
.zm-burger span:nth-child(3) { top: 24px; }
body.zm-menu-open .zm-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.zm-menu-open .zm-burger span:nth-child(2) { opacity: 0; }
body.zm-menu-open .zm-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   Hero — the thesis: aim clearly, hit
   ========================================================= */
.zm-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 120px 60px; overflow: hidden; }
.zm-hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--zm-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--zm-line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.zm-hero__reticle { position: absolute; z-index: 0; right: -6%; top: 50%; transform: translateY(-50%); width: min(62vw, 720px); aspect-ratio: 1; opacity: 0.9; pointer-events: none; }
.zm-hero__inner { position: relative; z-index: 2; max-width: 46rem; }
.zm-hero h1 { font-size: var(--step-5); font-weight: 600; margin: 1.4rem 0 0; }
.zm-hero h1 .hit { color: var(--zm-green); position: relative; }
.zm-hero__sub { margin-top: 1.8rem; font-size: var(--step-1); color: var(--zm-fog); max-width: 40ch; line-height: 1.5; }
.zm-hero__cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.zm-hero__meta { position: absolute; z-index: 2; bottom: 42px; left: 0; display: flex; gap: 2.5rem; font-family: var(--zm-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--zm-fog-2); text-transform: uppercase; }
.zm-hero__meta b { color: var(--zm-green); font-weight: 500; }

/* Reticle stroke draw-in */
.reticle-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: reticle-in 2.2s var(--ease) forwards; }
.reticle-draw.d2 { animation-delay: 0.2s; }
.reticle-draw.d3 { animation-delay: 0.4s; }
@keyframes reticle-in { to { stroke-dashoffset: 0; } }
.reticle-spin { transform-origin: center; animation: reticle-spin 40s linear infinite; }
@keyframes reticle-spin { to { transform: rotate(360deg); } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.zm-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.zm-reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Statement / intro
   ========================================================= */
.zm-statement p { font-family: var(--zm-display); font-weight: 500; font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.01em; max-width: 24ch; }
.zm-statement .zm-green { color: var(--zm-green); }
.zm-statement__split { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 860px) { .zm-statement__split { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.zm-statement__aside { color: var(--zm-fog); font-size: var(--step-0); border-left: 1px solid var(--zm-line); padding-left: 1.4rem; }

/* =========================================================
   Process — Hagakure steps (numbering is real sequence)
   ========================================================= */
.zm-process { display: grid; gap: 1px; background: var(--zm-line-soft); border: 1px solid var(--zm-line-soft); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .zm-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .zm-process { grid-template-columns: repeat(4, 1fr); } }
.zm-step { background: var(--zm-ink-2); padding: clamp(1.5rem, 3vw, 2.2rem); transition: background 0.35s; position: relative; }
.zm-step:hover { background: var(--zm-surface); }
.zm-step__no { font-family: var(--zm-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--zm-green); }
.zm-step h3 { font-size: var(--step-1); margin: 1.4rem 0 0.7rem; }
.zm-step p { color: var(--zm-fog); font-size: var(--step--1); line-height: 1.6; }
.zm-step__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--zm-green); transition: width 0.5s var(--ease); }
.zm-step:hover .zm-step__bar { width: 100%; }

/* =========================================================
   Services grid
   ========================================================= */
.zm-services { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .zm-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .zm-services { grid-template-columns: repeat(3, 1fr); } }
.zm-card {
  background: var(--zm-surface); border: 1px solid var(--zm-line-soft); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem); transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
  position: relative; overflow: hidden;
}
.zm-card:hover { border-color: var(--zm-green-dim); transform: translateY(-4px); background: var(--zm-surface-2); }
.zm-card__icon { width: 34px; height: 34px; color: var(--zm-green); margin-bottom: 1.4rem; }
.zm-card h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.zm-card p { color: var(--zm-fog); font-size: var(--step--1); line-height: 1.6; }
.zm-card__tag { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--zm-mono); font-size: 0.68rem; color: var(--zm-fog-2); letter-spacing: 0.1em; }

/* =========================================================
   Transparency / Finances
   ========================================================= */
.zm-transparency { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .zm-transparency { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.zm-ledger { display: grid; gap: 1px; background: var(--zm-line-soft); border: 1px solid var(--zm-line); border-radius: var(--radius); overflow: hidden; }
.zm-ledger__row { background: var(--zm-ink-2); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; transition: background 0.3s; }
.zm-ledger__row:hover { background: var(--zm-surface); }
.zm-ledger__label { display: flex; flex-direction: column; gap: 0.2rem; }
.zm-ledger__label b { font-family: var(--zm-display); font-weight: 500; font-size: var(--step-0); }
.zm-ledger__label span { font-size: 0.8rem; color: var(--zm-fog-2); }
.zm-ledger__val { font-family: var(--zm-mono); color: var(--zm-green); font-size: var(--step-1); }
.zm-ledger__bar { grid-column: 1 / -1; height: 3px; background: var(--zm-line); border-radius: 2px; overflow: hidden; margin-top: 0.2rem; }
.zm-ledger__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--zm-green-deep), var(--zm-green)); width: var(--w, 0%); border-radius: 2px; transition: width 1.1s var(--ease); }

/* =========================================================
   Journal / Blog listing
   ========================================================= */
.zm-posts { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .zm-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .zm-posts { grid-template-columns: repeat(3, 1fr); } }
.zm-post { background: var(--zm-surface); border: 1px solid var(--zm-line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.35s, transform 0.35s var(--ease); }
.zm-post:hover { border-color: var(--zm-green-dim); transform: translateY(-4px); }
.zm-post__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--zm-ink-2); position: relative; }
.zm-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.zm-post:hover .zm-post__thumb img { transform: scale(1.05); }
.zm-post__thumb--empty { display: grid; place-items: center; color: var(--zm-green-dim); }
.zm-post__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.zm-post__meta { font-family: var(--zm-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--zm-fog-2); text-transform: uppercase; }
.zm-post__body h3 { font-size: var(--step-1); line-height: 1.2; }
.zm-post__body h3 a:hover { color: var(--zm-green); }
.zm-post__excerpt { color: var(--zm-fog); font-size: var(--step--1); line-height: 1.6; }
.zm-post__more { margin-top: auto; font-family: var(--zm-mono); font-size: 0.75rem; color: var(--zm-green); letter-spacing: 0.06em; }

/* =========================================================
   Contact / Anfrage
   ========================================================= */
.zm-contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .zm-contact { grid-template-columns: 0.85fr 1.15fr; } }
.zm-contact__aside h2 { font-size: var(--step-3); margin: 1rem 0; }
.zm-contact__aside p { color: var(--zm-fog); max-width: 34ch; }
.zm-contact__list { margin-top: 2rem; display: grid; gap: 1rem; }
.zm-contact__list li { display: flex; gap: 0.8rem; align-items: baseline; font-size: var(--step--1); }
.zm-contact__list .k { font-family: var(--zm-mono); color: var(--zm-fog-2); letter-spacing: 0.08em; min-width: 5.5rem; text-transform: uppercase; font-size: 0.72rem; }
.zm-contact__list a:hover { color: var(--zm-green); }

.zm-form { display: grid; gap: 1.1rem; }
.zm-field { display: grid; gap: 0.45rem; }
.zm-field--row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .zm-field--row { grid-template-columns: 1fr 1fr; } }
.zm-field label { font-family: var(--zm-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zm-fog); }
.zm-field input, .zm-field select, .zm-field textarea {
  width: 100%; background: var(--zm-ink-2); border: 1px solid var(--zm-line); border-radius: var(--radius);
  color: var(--zm-paper); padding: 0.85rem 1rem; font: inherit; font-size: var(--step--1); transition: border-color 0.25s, box-shadow 0.25s;
}
.zm-field textarea { min-height: 140px; resize: vertical; }
.zm-field input:focus, .zm-field select:focus, .zm-field textarea:focus { outline: none; border-color: var(--zm-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zm-green) 18%, transparent); }
.zm-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2322D46E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.zm-form__note { font-size: 0.78rem; color: var(--zm-fog-2); line-height: 1.5; }
.zm-form__consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.78rem; color: var(--zm-fog); }
.zm-form__consent input { width: auto; margin-top: 0.25rem; accent-color: var(--zm-green); }
.zm-form__status { font-family: var(--zm-mono); font-size: 0.78rem; letter-spacing: 0.04em; min-height: 1.2em; }
.zm-form__status.ok { color: var(--zm-green); }
.zm-form__status.err { color: #ff6b6b; }
.zm-hp { position: absolute !important; left: -9999px; }

/* =========================================================
   Footer
   ========================================================= */
.zm-footer { border-top: 1px solid var(--zm-line-soft); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: var(--section-y); }
.zm-footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .zm-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.zm-footer__brand .zm-brand { font-size: 1.4rem; margin-bottom: 1rem; }
.zm-footer__brand p { color: var(--zm-fog); font-size: var(--step--1); max-width: 32ch; }
.zm-footer__col h4 { font-family: var(--zm-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zm-fog-2); margin-bottom: 1rem; font-weight: 500; }
.zm-footer__col ul { display: grid; gap: 0.6rem; }
.zm-footer__col a, .zm-footer__col address { color: var(--zm-fog); font-size: var(--step--1); font-style: normal; line-height: 1.7; }
.zm-footer__col a:hover { color: var(--zm-green); }
.zm-footer__wordmark { font-family: var(--zm-display); font-weight: 600; font-size: clamp(3rem, 14vw, 10rem); letter-spacing: -0.04em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--zm-line); margin-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; user-select: none; }
.zm-footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--zm-line-soft); font-family: var(--zm-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--zm-fog-2); }
.zm-footer__bottom a:hover { color: var(--zm-green); }

/* =========================================================
   Single / page content (typography)
   ========================================================= */
.zm-entry { padding-block: 120px var(--section-y); }
.zm-entry__header { max-width: 60rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.zm-entry__header h1 { font-size: var(--step-4); margin: 1rem 0; }
.zm-entry__hero-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.zm-prose { max-width: 44rem; margin-inline: auto; font-size: var(--step-0); line-height: 1.8; color: #d9e0dc; }
.zm-prose > * + * { margin-top: 1.4em; }
.zm-prose h2 { font-size: var(--step-2); margin-top: 2.2em; color: var(--zm-paper); }
.zm-prose h3 { font-size: var(--step-1); margin-top: 1.8em; color: var(--zm-paper); }
.zm-prose a { color: var(--zm-green); text-decoration: underline; text-underline-offset: 3px; }
.zm-prose blockquote { border-left: 2px solid var(--zm-green); padding-left: 1.4rem; font-family: var(--zm-display); font-size: var(--step-1); color: var(--zm-paper); font-style: italic; }
.zm-prose img { border-radius: var(--radius); }
.zm-prose code { font-family: var(--zm-mono); background: var(--zm-surface); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
.zm-prose ul, .zm-prose ol { padding-left: 1.4rem; }
.zm-prose li::marker { color: var(--zm-green); }

/* Pagination */
.zm-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; font-family: var(--zm-mono); font-size: 0.8rem; }
.zm-pagination .page-numbers { padding: 0.6rem 0.9rem; border: 1px solid var(--zm-line); border-radius: var(--radius); color: var(--zm-fog); transition: border-color 0.25s, color 0.25s; }
.zm-pagination .page-numbers:hover, .zm-pagination .current { border-color: var(--zm-green); color: var(--zm-green); }

/* 404 */
.zm-404 { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: 100px; }
.zm-404 .code { font-family: var(--zm-mono); color: var(--zm-green); letter-spacing: 0.2em; }
.zm-404 h1 { font-size: var(--step-4); margin: 1rem 0; }

/* =========================================================
   Mobile nav
   ========================================================= */
@media (max-width: 900px) {
  .zm-nav, .zm-header__right .zm-btn { display: none; }
  .zm-burger { display: block; }
  .zm-mobile {
    position: fixed; inset: 74px 0 0 0; z-index: 90; background: var(--zm-ink);
    padding: 2rem var(--gutter); display: flex; flex-direction: column; gap: 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
    border-top: 1px solid var(--zm-line-soft); overflow-y: auto;
  }
  body.zm-menu-open .zm-mobile { opacity: 1; transform: none; pointer-events: auto; }
  .zm-mobile a { font-family: var(--zm-display); font-size: var(--step-2); color: var(--zm-paper); }
  .zm-mobile .zm-lang { margin-top: auto; font-size: 0.85rem; }
  body.zm-menu-open { overflow: hidden; }
}
@media (min-width: 901px) { .zm-mobile { display: none; } }

/* Utility */
.zm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
