/* ==========================================================================
   Unlease — base: font, reset, typography, layout, section panels
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-var-pl.woff2") format("woff2");
}

*, *::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(--c-kreda);
  color: var(--c-las);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

.lead {
  max-width: 36rem;
  color: var(--c-las-70);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.muted { color: var(--c-las-70); }
.small { font-size: var(--fs-sm); }
.tabular { font-variant-numeric: tabular-nums; }

a { color: var(--c-zielen); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-las); }

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

.on-las { --focus: var(--c-mieta); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--c-las);
  color: var(--c-kreda);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast) ease;
}
.skip:focus { top: 1rem; }

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

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

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* Section panels: inset from the screen edge, same radius as every image. Colour works in blocks. */
.panel {
  margin-inline: var(--panel-inset);
  border-radius: var(--r-xl);
  overflow: clip;
}

.panel--las {
  background-color: var(--c-las);
  color: var(--c-kreda);
}

.panel--mieta {
  background-color: var(--c-mieta-22);
  color: var(--c-las);
}

.panel--bialy {
  background-color: var(--c-bialy);
  color: var(--c-las);
}

.on-las .lead,
.on-las .muted { color: var(--c-kreda-72); }
.on-las a:not(.btn) { color: var(--c-mieta); }
.on-las a:not(.btn):hover { color: var(--c-kreda); }

/* Brand pattern: a grid of small U padlocks, some of them unlocked (mint shackle). */
.bg-pattern { background-image: url("/assets/img/pattern-light.svg"); background-size: 160px 160px; }
.on-las.bg-pattern,
.panel--las.bg-pattern { background-image: url("/assets/img/pattern-dark.svg"); }

/* the word of the brand: "odblokowane" */
.hl {
  padding: 0 0.12em;
  border-radius: 0.2em;
  background: var(--c-mieta-14);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.on-las .hl { padding: 0; background: none; color: var(--c-mieta); }

/* Polish typography: no single-letter word at the end of a line in headings is handled in markup with &nbsp; */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
