/* 03-base.css — base typography defaults.
 * Body line-height 1.7 (rozluźnione vs aggregator 1.6).
 * Drop cap TYLKO na .tl-dropcap.
 */

html { font-family: var(--f-body); }

body.tl-body {
  background: var(--c-bone);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--f-body);
  line-height: var(--lh-prose);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.tl-h1, h1 {
  font-size: var(--f-display-xl);
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
}

.tl-h1--hero { font-size: var(--f-display-hero); }

h2, .tl-h2 {
  font-size: var(--f-display-l);
  margin-bottom: 0.5em;
}

h3, .tl-h3 {
  font-size: var(--f-display-m);
  font-weight: 500;
  margin-bottom: 0.4em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-stone);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--t-fast), text-decoration-thickness var(--t-fast), color var(--t-fast);
}

a:hover {
  text-decoration-color: var(--c-ox);
  text-decoration-thickness: 2px;
}

.tl-link {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-stone);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.tl-link:hover {
  text-decoration-color: var(--c-ox);
  text-decoration-thickness: 2px;
}

.tl-mono, .tl-meta-mono {
  font-family: var(--f-mono);
  font-feature-settings: "tnum";
  font-size: var(--f-mono);
  line-height: var(--lh-mono);
}

.tl-lead {
  font-size: var(--f-body-l);
  color: var(--c-ink-muted);
  line-height: var(--lh-prose);
  max-width: var(--prose);
}

.tl-kicker {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--f-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tl-kicker__mark {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--c-ox);
}

/* Drop cap — TYLKO na .tl-dropcap (zastosowane na pierwszym akapicie /koncepcio/ i /menu/) */
.tl-dropcap::first-letter {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 0.9;
  float: left;
  margin: 4px 12px 0 0;
  color: var(--c-ox);
}

@media (max-width: 480px) {
  .tl-dropcap::first-letter { font-size: 2.5rem; }
}

/* Pull-quote */
.tl-pullquote {
  border-left: 2px solid var(--c-ox);
  padding: 0 0 0 24px;
  margin: 32px 0;
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--c-ink-muted);
}

.tl-pullquote__cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--c-ink-muted);
  font-family: var(--f-body);
}

/* Hair-rule with ♠ pikk-ász glyph */
.tl-hair-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0;
  color: var(--c-stone);
}

.tl-hair-rule::before,
.tl-hair-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-stone);
}

.tl-hair-rule__glyph {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ox);
  letter-spacing: 0;
  line-height: 1;
}

.tl-hair-rule__text {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-ink-muted);
  white-space: nowrap;
}

/* Footnote — amber */
.tl-footnote {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--c-amber);
  line-height: 1.6;
  margin-top: 16px;
}

/* Disclaimer (legal blocks) */
.tl-disclaimer {
  font-family: var(--f-body);
  font-size: var(--f-body-s);
  color: var(--c-ink-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Skip link */
.tl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: var(--c-bone);
  padding: 8px 16px;
  font-size: 0.875rem;
  z-index: 200;
}
.tl-skip-link:focus {
  left: 16px;
  top: 16px;
}

.tl-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tl-sr-only-focusable:focus {
  position: static !important;
  width: auto; height: auto;
  margin: 0; clip: auto; white-space: normal;
}

/* Tabular numbers helper */
.tl-tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
