/* satzsysteme — style.css (LIGHT — bewusster Kontrast zu allen anderen) */

:root {
  --bg:    #fafaf8;
  --bg-2:  #f2f0eb;
  --bg-3:  #eae7e0;
  --red:   #e63329;
  --red-d: rgba(230,51,41,.08);
  --ink:   #0d0d0d;
  --text:  #444;
  --muted: #888;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono:  'JetBrains Mono', monospace;
  --sans:  system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

@keyframes fadein { to { opacity: 1; } }

/* ── HERO ────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-type-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.type-giant {
  font-family: var(--serif);
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.03);
  line-height: 0.8;
  user-select: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  animation: fadein 0.8s ease forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff;
  animation: fadein 1s ease forwards 0.3s;
  opacity: 0;
}

.hero-rule {
  width: 3rem;
  height: 2px;
  background: var(--red);
  margin: 2rem 0;
  animation: fadein 1s ease forwards 1s;
  opacity: 0;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  animation: fadein 1s ease forwards 1.5s;
  opacity: 0;
  line-height: 1.6;
}

/* ── SHARED ────────── */

.s {
  padding: 5.5rem 3rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.s-2 { background: var(--bg-2); }
.s-3 { background: var(--bg-3); }
.s-dark { background: var(--ink); color: rgba(255,255,255,0.7); }
.s-dark h2 { color: #fff; }
.s-dark .sec-label { color: var(--red); }
.s-dark .pull { color: rgba(255,255,255,0.6); }

.s-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.s-full { max-width: 1040px; margin: 0 auto; }

.sec-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

p { margin-bottom: 1rem; font-size: 1.02rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
  border-left: 2px solid rgba(230,51,41,0.2);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  line-height: 1.55;
}

/* ── TYPE SPECIMENS ────────── */

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}

.specimen {
  background: var(--bg);
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sp-letter {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.sp-name { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--muted); }
.sp-use  { font-size: 0.8rem; color: var(--text); opacity: 0.7; }

/* typefaces for specimens */
.sp-latex   .sp-letter { font-family: 'Georgia', serif; font-style: italic; color: var(--red); }
.sp-typst   .sp-letter { font-family: 'Cormorant Garamond', serif; }
.sp-css     .sp-letter { font-family: system-ui, sans-serif; font-weight: 700; }
.sp-mono    .sp-letter { font-family: var(--mono); font-size: 2.8rem; }

/* ── PARADIGM TABLE ────────── */

.paradigm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.paradigm-table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.paradigm-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  vertical-align: top;
  line-height: 1.45;
}
.paradigm-table td:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}
.paradigm-table tr.highlight { background: var(--red-d); }
.paradigm-table tr.highlight td:first-child { color: var(--red); }
.paradigm-table tr:hover td { background: rgba(0,0,0,0.02); }

/* ── SYSTEMS MATRIX ────────── */

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.sys-card {
  border-top: 2px solid;
  padding: 1rem 0;
}
.sys-card.p1 { border-color: var(--red); }
.sys-card.p2 { border-color: #666; }
.sys-card.p3 { border-color: #999; }
.sys-card.p4 { border-color: #bbb; }
.sys-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.sys-para { font-size: 0.75rem; color: var(--muted); }

/* ── WHO DESIGNS ────────── */

.who-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.who-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.who-row > div {
  background: var(--bg);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.who-row .who-actor { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.who-row .who-tool  { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.who-row.best .who-actor { color: var(--red); }

/* ── RECOMMENDATION ────────── */

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.rec-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 3px;
  padding: 1.4rem;
}
.rec-case {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.rec-tool {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.rec-why { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ── CLOSE ────────── */

.s-close {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 3rem;
  background: var(--ink);
}
.close-inner { max-width: 640px; }
.close-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.2rem;
}
.close-sub { font-size: 1rem; color: rgba(255,255,255,0.45); margin-bottom: 2rem; }
.close-meta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.15); }

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.site-footer a { color: var(--red); text-decoration: none; opacity: 0.6; }
.site-footer a:hover { opacity: 1; }

@media (max-width: 840px) {
  .s { padding: 4rem 1.5rem; }
  .s-inner       { grid-template-columns: 1fr; gap: 2.5rem; }
  .specimen-grid { grid-template-columns: 1fr 1fr; }
  .systems-grid  { grid-template-columns: repeat(2, 1fr); }
  .rec-grid      { grid-template-columns: 1fr; }
  .who-row       { grid-template-columns: 1fr; }
}
