/* tomorrowsnotes.com — Design-System (RFC-097)
   Abgeleitet aus dem Claude-Design-Visual "The Watershed Matrix".
   Minimalistisch: Elfenbein/Anthrazit, Burgunder als einziger Akzent,
   Inter (self-hosted), Haarlinien, viel Whitespace, keine Schatten/Gradienten. */

/* --- Self-hosted Inter (Variable). Kein Google-Fonts-CDN (DSGVO). --- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}

:root {
  --ivory:      #FAF7F2;   /* canvas */
  --charcoal:   #232021;   /* ink */
  --muted:      #5C554D;   /* secondary text */
  --muted-2:    #524B43;
  --hairline:   #C9C1B7;   /* 1px rules */
  --neutral:    #ECE7E0;   /* surface */
  --faded:      #E2DBD2;
  --burgundy:   #7A1F2B;   /* the only accent */
  --burgundy-ink:#7A4A54;
  --burgundy-tint:#F3E7E9;

  --measure: 46rem;        /* reading column — matched to the figure width */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --font: "Inter Variable", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  border-top: 3px solid var(--burgundy);   /* brand signature bar */
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Header --- */
.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.site-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--burgundy);
}
.site-title:hover { color: var(--charcoal); }
.site-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Typography --- */
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 2.5rem 0 0.5rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.5rem; }
/* burgundy underline accent under article section headings (echoes the brief's title underline) */
article h2 { padding-bottom: 0.35rem; border-bottom: 1px solid var(--burgundy); }
h3 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }

p, ul, ol, blockquote { margin: 1.1rem 0; }

a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

blockquote {
  margin-inline: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--burgundy);
  color: var(--muted-2);
  font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

code, pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}
pre {
  background: var(--neutral);
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow-x: auto;
}
:not(pre) > code { background: var(--neutral); padding: 0.1em 0.35em; border-radius: 2px; }

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

/* --- Figures --- */
figure { margin: 2.25rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 2px; }
figcaption { margin-top: 0.55rem; font-size: 0.85rem; color: var(--muted); text-align: center; font-style: italic; }
/* figure fills the reading column, so text and visual share the same width */
.figure-wide img { width: 100%; }

/* --- Post list (home) --- */
.lede { font-size: 1.05rem; color: var(--muted-2); max-width: 36rem; }
.post-list { list-style: none; padding: 0; margin: 2.5rem 0; }
.post-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); }
.post-list li:first-child { border-top: 1px solid var(--hairline); }
.post-list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.post-list a:hover { color: var(--burgundy); text-decoration: underline; }
.post-meta { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--burgundy); font-weight: 500; }
.post-summary { margin: 0.4rem 0 0; color: var(--muted-2); }

/* --- Article --- */
.post-header { margin: 2.5rem 0 1.5rem; }
.post-header .post-meta { margin-top: 0.6rem; }
.post-title { margin: 0; }
.post-title::after { content: ""; display: block; width: 2.75rem; height: 2px; background: var(--burgundy); margin-top: 0.75rem; }
article > *:first-child { margin-top: 0; }

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer nav a { margin-right: 1.25rem; }
.site-footer .sig { color: var(--burgundy); font-style: italic; }

/* --- Legal pages (Impressum, Datenschutz): Überschriften auf Artikel-Textgröße --- */
.legal h1 { font-size: 1.2em; font-weight: 600; letter-spacing: 0; margin: 1.25rem 0 1.25rem; }
.legal h2 { font-size: 1em; font-weight: 600; margin: 1.6rem 0 0.2rem; }
.legal p { margin: 0.7rem 0; }

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute; left: -999px;
}
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ivory); padding: 0.5rem 0.75rem; border: 1px solid var(--burgundy); }
