/* crissgraf.com — editorial layout
   Migration from All-Inkl Web-Baukasten to static.
   Sparse, magazine-like. Serif body, single accent rule per section.
   No tracking, no JS, no external fonts. */

:root {
  --bg: #fdf8e8;
  --surface: #ffffff;
  --ink: #1a140a;
  --ink-soft: #3a2d1a;
  --muted: #6a5c45;
  --accent: #2f4a78;
  --rule: rgba(26, 20, 10, 0.18);
  --rule-strong: rgba(26, 20, 10, 0.55);
  --serif: Georgia, Charter, "Times New Roman", "Liberation Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 680px;
  --maxw-wide: 920px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110a;
    --surface: #1c1810;
    --ink: #f0e8d4;
    --ink-soft: #c8bda5;
    --muted: #948770;
    --accent: #98b8e8;
    --rule: rgba(240, 232, 212, 0.18);
    --rule-strong: rgba(240, 232, 212, 0.55);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip;
}

/* Ambient tree-watermark — Emotional-Trust mark as subtle accent silhouette
 * on the cream canvas. Same brand-anchor pattern as systemn.eu + emotional-
 * trust.org but cream-context here: --accent (warm blue) multiplied at 7%
 * opacity reads as a soft sepia-tinted shadow, not a copy of the ET site. */
.tree-watermark {
  position: absolute;
  top: 6%;        /* slightly down from previous -8% — still upper-region */
  left: 8%;       /* shifted right — tree now partially sits behind hero photo */
  width: clamp(800px, 100vw, 1500px);
  aspect-ratio: 1 / 1;
  -webkit-mask: url('assets/tree-mark.svg') no-repeat center / contain;
          mask: url('assets/tree-mark.svg') no-repeat center / contain;
  background: var(--accent);
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .tree-watermark {
    opacity: 0.09;
    mix-blend-mode: screen;
  }
}
@media (max-width: 720px) {
  .tree-watermark { display: none; }
}
.top-bar-wrap,
.hero-photo,
.page,
.site-footer { position: relative; z-index: 1; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 120ms ease;
}
a:hover, a:focus {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 700; }
em { color: var(--ink-soft); font-style: italic; }
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.skip-link {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto; height: auto;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* Top bar — sticky, glass-bg, hairline divider */

.top-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
          backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-bar {
  max-width: var(--maxw);     /* matches content + hero-photo column width */
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand:hover, .brand:focus { color: var(--accent); }
.brand .logo {
  width: 96px;
  height: 96px;
}
@media (max-width: 720px) {
  .brand .logo { width: 64px; height: 64px; }
}
.sub-nav {
  font-family: var(--sans);
  font-size: 0.88rem;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;   /* push nav-block away from brand, near lang-toggle */
}
.sub-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sub-nav a:hover, .sub-nav a:focus {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.sub-nav .ctx {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 0.25rem;
}
.lang-toggle {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.lang-toggle:hover, .lang-toggle:focus { color: var(--accent); }

/* Page column */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* Hero photo — same column as text below, no letterbox/border */

.hero-photo {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  background: none;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  /* Opaque photo — the previous bottom-fade mask let the tree-watermark
   * shine through the photo's bottom edge. Operator-correction 2026-05-18. */
}

/* Masthead */

.masthead {
  margin: 0 0 3rem;
}
.masthead .eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.masthead .eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.masthead h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.masthead .tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 32em;
}
.masthead .role-line {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}
.masthead .role-line a { color: var(--ink-soft); }

/* Sections */

.section {
  margin: 0 0 4rem;
  scroll-margin-top: 6rem;   /* keeps section-top below sticky header on anchor jumps */
}
.section h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 4rem 0 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;       /* uniform eyebrow tracking */
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Subtle accent dot before each section-eyebrow — quiet hierarchical anchor */
.section h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.section ul li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--ink-soft);
  position: relative;
}
/* Subtle leading dash instead of full-width hairlines under each item —
 * keeps the editorial verticality without making the page feel like a
 * spreadsheet. */
.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.55rem;
  height: 1px;
  background: var(--rule-strong);
}

/* Lead paragraph after first H2 */

.lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

/* Portrait — text wraps right */

.portrait {
  float: right;
  margin: 0.3rem 0 1rem 1.5rem;
  width: 200px;
  max-width: 45%;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.portrait figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.3;
}
@media (max-width: 520px) {
  .portrait {
    float: none;
    margin: 0 0 1.5rem;
    width: 100%;
    max-width: 280px;
  }
}

.clear { clear: both; }

/* Blockquote — generous spacing, larger type, decorative opening quote.
 * Editorial, magazine-pull-quote feel. */

blockquote.pull {
  margin: 4rem auto;
  padding: 0.5rem 0 0.5rem 2.5rem;
  max-width: 32em;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  position: relative;
}
blockquote.pull::before {
  content: "\201C";          /* left double quotation mark */
  position: absolute;
  left: 0.5rem;
  top: -0.7rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-style: normal;
}

/* Contact — plain definition-list, not card */

.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.96rem;
}
.contact dt {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.15rem;
}
.contact dd + dt { margin-top: 0.3rem; }
.contact dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover, .site-footer a:focus {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.site-footer .copyright { margin-left: auto; }

/* Legal pages */

.legal h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.legal h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
  color: var(--ink);
}
.legal p, .legal address, .legal ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal ul li {
  padding: 0.15rem 0;
  border-bottom: none;
}
.legal-stand {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

/* Subpage content (poems, articles, music) */

.subpage-content {
  font-family: var(--serif);
}
.subpage-content h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
}
.subpage-content h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}
.subpage-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.subpage-content ul, .subpage-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--ink-soft);
}
.subpage-content ul li, .subpage-content ol li {
  margin-bottom: 0.4rem;
  padding: 0;
  border-bottom: none;
}
.subpage-content figure {
  margin: 1.5rem 0;
}
.subpage-content figure img {
  max-width: 100%;
  height: auto;
}
.wbk-note {
  border-left: 2px solid var(--rule-strong);
  padding: 0.2rem 0 0.2rem 0.85rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-style: italic;
  margin: 1.5rem 0;
}
.embed-wrap {
  margin: 1rem 0 1rem;
  max-width: 100%;
}
.embed-wrap iframe {
  display: block;
  width: 100%;
}
