/* ==========================================================================
   base.css — reset, typografia bazowa, pomocniki układu, przyciski
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--violet-600);
  color: #fff;
}

/* ------------------------------------------------------------- pomocniki */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-dark {
  background: var(--ink-900);
  color: var(--text-light);
}

.section-chalk {
  background: var(--chalk-100);
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--orange-500);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
}

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

/* ------------------------------------------------- sygnatura: pasek próbek */

.swatch-rule {
  display: flex;
  height: 5px;
  width: 100%;
}

.swatch-rule span {
  display: block;
  height: 100%;
}

.swatch-rule span:nth-child(1) {
  width: 34%;
  background: var(--violet-600);
}

.swatch-rule span:nth-child(2) {
  width: 22%;
  background: var(--orange-500);
}

.swatch-rule span:nth-child(3) {
  width: 14%;
  background: var(--cyan-400);
}

.swatch-rule span:nth-child(4) {
  flex: 1;
  background: var(--ink-600);
}

/* ------------------------------------------------------- nagłówki sekcji */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-dark .eyebrow,
.photo-section .eyebrow {
  color: var(--violet-300);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 14px;
  border-radius: var(--r-xs);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.section-head {
  max-width: 44ch;
}

.section-head.wide {
  max-width: 58ch;
}

.section-lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 58ch;
}

.section-dark .section-lead,
.photo-section .section-lead {
  color: var(--text-light-muted);
}

/* ------------------------------------------------------------- przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 104;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--orange-500);
  color: var(--ink-900);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: var(--orange-400);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  box-shadow: inset 0 0 0 1.5px rgba(245, 242, 248, 0.3);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--cyan-400);
  color: var(--cyan-100);
}

.btn-ink {
  background: var(--ink-900);
  color: var(--text-light);
}

.btn-ink:hover {
  background: var(--violet-700);
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: var(--fs-2xs);
}

.btn .ico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

/* ---------------------------------------------------------- ujawnianie */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
