/* Plansza btwn.pl: czerń, biel, błękit z księgi znaku. Żółty tylko jako tło pod czarnym tekstem. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonty/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonty/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonty/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonty/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --blue: #aabdd4;
  --highlight: #ffe45c;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--black);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 10;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(16px);
}

/* pionowy napis "between": powtarzalny motyw marki (zatwierdzony przez agencję) */
.side {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(8px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  pointer-events: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  opacity: 0.55;
  animation: fade-side 2s ease-out 0.4s both;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter-r) clamp(24px, 5vw, 48px) var(--gutter-l);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 64px);
}

/* odstęp od pionowego napisu na wąskich ekranach */
.page > * {
  max-width: calc(100% - 18vw);
}

@media (min-width: 900px) {
  .page > * {
    max-width: 100%;
  }
}

/* Logo poziome, wersja z wyrównanym odstępem B–E (proporcje 298,76:50). Wysokość 100 px
   (minimum z księgi znaku) tam, gdzie mieści się szerokość 597,5 px; na wąskich ekranach
   skaluje się proporcjonalnie w dół. */
/* Logo jest wstawione w HTML jako SVG (bez osobnego pliku i żądania, żeby nie opóźniało się
   na wolnym łączu); źródło i generator: scripts/generuj-logo-inline.mjs. */
.logo svg {
  display: block;
  width: min(597.52px, 100%);
  height: auto;
  aspect-ratio: 298.76 / 50;
  fill: var(--white);
  margin-block: 20px;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  text-wrap: balance;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.4rem, 7.4vw, 5.6rem);
  line-height: 1.14;
}

/* Tło <mark> w linii obejmowałoby całą wysokość glifów Antona i zasłaniało poprzednią linię;
   inline-block z własną interlinią trzyma wyróżnienie w obrębie swojego wiersza. */
h1 mark {
  display: inline-block;
  line-height: 1.08;
  background: var(--highlight);
  color: var(--black);
  padding-inline: 0.12em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(10px, 4vw, 40px);
  margin-top: clamp(24px, 4vw, 40px);
}

.unit {
  display: grid;
  justify-items: start;
  min-width: 0;
}

.num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 9.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.start-date {
  margin-top: 20px;
}

.done {
  margin-top: 24px;
  display: inline-block;
  padding: 10px 14px;
  background: var(--highlight);
  color: var(--black);
  font-weight: 700;
}

.mission {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  max-width: 44ch;
}

.contact__list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact__list a {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  text-underline-offset: 6px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--white);
  background: var(--blue);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 16px var(--gutter-r) 24px var(--gutter-l);
  font-size: 14px;
}

/* wejście: spokojne, jednorazowe */
.logo,
.countdown-block,
.mission,
.contact {
  animation: rise 1.2s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.countdown-block {
  animation-delay: 0.2s;
}

.mission {
  animation-delay: 0.45s;
}

.contact {
  animation-delay: 0.65s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade-side {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side,
  .logo,
  .countdown-block,
  .mission,
  .contact {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
