/* ============================================================
   base.css — Reset, typografia bazowa, elementy HTML
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */

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

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-warm);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Typografia bazowa ────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg);  font-family: var(--font-base); font-weight: 700; text-transform: none; }
h6 { font-size: var(--text-base);font-family: var(--font-base); font-weight: 700; text-transform: none; }

/* ── Akcent „brush” — ręcznie pisane hasła i pojedyncze słowa ─ */

.script-accent {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-forest);
}

p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

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

a {
  color: var(--color-brown-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brown-darkest);
}

/* ── Focus visible (dostępność) ──────────────────────────── */

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Skip link ───────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4);
  background: var(--color-brown-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Listy ────────────────────────────────────────────────── */

ul, ol {
  padding-left: var(--space-6);
}

li {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-1);
}

/* ── Tabele ──────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-brown-pale);
}

th {
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ── Elementy pomocnicze ─────────────────────────────────── */

.section-eyebrow {
  display: block;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-brown-medium);
  margin-bottom: var(--space-3);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Dekoracyjne gałązki (akcent botaniczny) ─────────────── */

.decor-leaf {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--color-forest);
  opacity: 0.4;
}

.decor-leaf svg {
  display: block;
  width: 100%;
  height: 100%;
}

.decor-leaf--peach {
  color: var(--color-peach);
}

@media (max-width: 768px) {
  .decor-leaf {
    display: none;
  }
}

/* ── Foto overlay ciepły ─────────────────────────────────── */

.photo-warm {
  position: relative;
  overflow: hidden;
}

.photo-warm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196, 149, 106, 0.12);
  pointer-events: none;
}
