/* ──────────────────────────────────────────────────────────────
   False Systems® — shared styles
   Colors · fonts · layout · header/footer · overlay · animations
   Page-specific styles stay in the page.
   ────────────────────────────────────────────────────────────── */

/* Geist (Vercel) — SIL OFL, self-hosted variable fonts */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black:       #000000;
  --white:       #ffffff;
  --teal:        #00a693;
  --teal-dim:    #007668;
  --teal-glow:   rgba(0, 150, 136, 0.07);
  --amber:       #d97706;
  --gray:        #9a9a9a;
  --gray-mid:    #555555;
  --gray-dark:   #1a1a1a;
  --gray-darker: #0a0a0a;
  --gray-border: #1e1e1e;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.site {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HEADER ── */
header {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.header-left {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

nav {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}
nav a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
nav a:hover { color: var(--teal); }

/* ── FOOTER ── */
footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-mid);
}

.footer-right {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.footer-right a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-right a:hover { color: var(--teal); }

/* ── PAGE HEADER (blog listing default; suite/about inherit same) ── */
.page-header {
  padding: 5.5rem 0 4rem;
  animation: fadeUp 0.6s ease 0.15s both;
}

.page-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 900px;
  overflow-wrap: break-word;
}

/* ── POSTS (blog listing) ── */
.posts {
  padding: 1rem 0 2rem;
}

.post-card {
  display: block;
  text-decoration: none;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-border);
  animation: fadeUp 0.5s ease both;
}
.post-card:first-child { border-top: none; padding-top: 2.5rem; }

.post-meta {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-date,
.post-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-mid);
}

.post-title {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.post-card:hover .post-title { color: var(--teal); }

.post-excerpt {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  max-width: 640px;
}

.post-read {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--teal);
  transition: color 0.2s;
}
.post-card:hover .post-read { color: var(--white); }

/* ── ARTICLE (shared by all blog articles) ── */
.article-header {
  padding: 5.5rem 0 4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.article-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.article-back:hover { color: var(--teal); }

.article-meta {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-date,
.article-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-mid);
}

.article-title {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 900px;
  overflow-wrap: break-word;
}

.article-body {
  padding: 3rem 0 4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.article-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 1.3em;
}
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-top: 3rem;
  margin-bottom: 1.1rem;
  max-width: 640px;
}
.article-body h2:first-child { margin-top: 0; }

.article-body strong { font-weight: 500; color: var(--white); }
.article-body em     { font-style: italic; color: var(--teal-dim); }

.article-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--teal);
}

.article-body pre {
  background: var(--gray-darker);
  border: 1px solid var(--gray-border);
  padding: 1.4rem 1.5rem;
  margin: 1.75rem 0;
  overflow-x: auto;
  max-width: 680px;
}

.article-body pre code {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--gray);
}

.article-body blockquote {
  border-left: 2px solid var(--teal-dim);
  padding-left: 1.3rem;
  margin: 1.75rem 0;
  max-width: 620px;
}
.article-body blockquote p {
  font-style: italic;
  color: var(--teal-dim);
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 1.3em;
  padding-left: 1.5rem;
}
.article-body li { margin-bottom: 0.5em; }

.article-body a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 166, 147, 0.25);
  transition: color 0.15s, border-color 0.15s;
}
.article-body a:hover {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 3rem 0;
}

/* ── CLOSING (shared by all content pages) ── */
.closing {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--gray-border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.closing.visible { opacity: 1; transform: translateY(0); }

.closing p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 1.25rem;
}

.closing-cta {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 166, 147, 0.25);
  padding-bottom: 3px;
  display: inline-flex;
  gap: 0.55em;
  align-items: baseline;
  transition: color 0.2s, border-color 0.2s;
}
.closing-cta:hover {
  color: var(--white);
  border-bottom-color: var(--teal);
}

/* ── IMPRESSUM OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.overlay.active { opacity: 1; pointer-events: all; }

.overlay-content {
  position: relative;
  max-width: 400px;
  width: 90%;
  padding: 2.5rem;
  border: 1px solid var(--gray-border);
  background: var(--black);
}

.overlay-close {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  background: none; border: none;
  color: var(--gray);
  font-size: 1.15rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: color 0.15s;
}
.overlay-close:hover { color: var(--white); }

.overlay-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.overlay-body {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--gray);
}
.overlay-body a { color: var(--teal); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── MOBILE ── */
@media (max-width: 560px) {
  .site { padding: 0 1.25rem; }
  header { padding: 1.25rem 0 1rem; gap: 0.5rem 0.75rem; }
  nav {
    font-size: 0.82rem;
    gap: 0.25rem 1rem;
    width: 100%;
    justify-content: flex-start;
  }
  nav a { padding: 0.35rem 0; }
  .page-header, .article-header { padding: 3.5rem 0 2.5rem; }
  .page-title, .article-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    letter-spacing: -0.02em;
    word-break: break-word;
  }
  footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .footer-right { flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.8rem; }
  .footer-right a { font-size: 0.8rem; padding: 0.25rem 0; }
  .footer-copy { font-size: 0.8rem; }
}

@media (max-width: 380px) {
  .logo { height: 26px; }
  nav { font-size: 0.78rem; gap: 0.25rem 0.8rem; }
}
