/* ============================================================================
   LUTZ UND LUTZ · BASE
   Reset · root typography · type scale classes · layout primitives.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv05" 1, "ss01" 1; /* Inter: nicer l, 1 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* safety net against horizontal scroll on mobile */
  overflow-wrap: break-word;   /* long German compound words wrap instead of overflowing */
}

img, svg, video, canvas { display: block; max-width: 100%; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
b, strong { font-weight: var(--fw-semibold); }

::selection { background: var(--color-orange-200); color: var(--color-ink); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------------
   TYPE SCALE — semantic classes
   --------------------------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--primary);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-display);
}
.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-display);
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}

/* The signature caps-headline device */
.headline-caps {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: var(--fw-bold);
}

.lead {
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
  color: var(--text);
}
.body { font-size: var(--fs-body); line-height: var(--lh-body); }
.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-eyebrow);
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Eyebrow / overline — uppercase, tracked, the system's section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent-text);
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--on-dark { color: var(--color-orange-400); }
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.eyebrow--bare::before { display: none; }
@media (max-width: 600px) {
  .eyebrow { display: block; }
  .eyebrow::before { display: inline-block; vertical-align: middle; margin-right: var(--space-2); }
}

/* ---------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.stack > * + * { margin-top: var(--space-4); }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-7 > * + * { margin-top: var(--space-7); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.row { display: flex; align-items: center; gap: var(--space-3); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid > * { grid-column: auto !important; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.divider { height: 1px; background: var(--line); border: 0; }
.divider--cool { background: var(--line-cool); }

/* Surfaces */
.on-dark { color: var(--on-dark); }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3 { color: var(--color-white); }
.on-dark .muted, .on-dark .caption { color: var(--on-dark-muted); }
