/* PROPOZYCJA 1 — "Ink & Neon" : ciemny, typograficzny, efektowny */

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

:root {
  --ink: #0c0c0e;
  --ink-2: #141417;
  --paper: #f4f1ea;
  --red: #ff2d2d;
  --red-deep: #c81e1e;
  --grey: #8b8b93;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-ui: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ziarno na całej stronie */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

a { color: inherit; }

/* ── pasek przewijany ─────────────────────────────── */
.ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  padding: 7px 0;
  position: relative; z-index: 2;
}
.ticker-track { display: inline-flex; gap: 26px; align-items: center; animation: ticker 28s linear infinite; padding-right: 26px; }
.ticker i { font-style: normal; opacity: .7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── topbar ───────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(244,241,234,.12);
}
.top-brand {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: .1em;
  text-decoration: none;
}
.top-nav { display: flex; gap: clamp(14px, 3vw, 34px); font-size: 14px; }
.top-nav a { text-decoration: none; color: var(--grey); transition: color .2s; position: relative; }
.top-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--red); transition: width .25s;
}
.top-nav a:hover { color: var(--paper); }
.top-nav a:hover::after { width: 100%; }

main { position: relative; z-index: 2; }

/* ── hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(30px, 6vh, 70px) clamp(16px, 4vw, 48px) clamp(60px, 10vh, 120px);
  text-align: center;
}
/* zastępcze czcionki systemowe przeskalowane do metryk Bebas Neue,
   żeby napis nie "skakał" po doładowaniu właściwego fontu */
@font-face {
  font-family: 'Bebas Fallback Narrow';
  src: local('Arial Narrow'), local('Liberation Sans Narrow');
  size-adjust: 88%;
  ascent-override: 100%;
}
@font-face {
  font-family: 'Bebas Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 76%;
  ascent-override: 100%;
}
.mega {
  font-family: 'Bebas Neue', 'Bebas Fallback Narrow', 'Bebas Fallback', sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 14.5vw, 224px);
  line-height: .92;
  letter-spacing: .015em;
  white-space: nowrap;
  user-select: none;
  position: relative; z-index: 1;
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(255,45,45,0); }
  50% { text-shadow: 0 0 60px rgba(255,45,45,.45), 0 0 18px rgba(255,45,45,.25); }
}
@media (prefers-reduced-motion: reduce) { .mega { animation: none; } }

.hero-cover {
  width: clamp(190px, 26vw, 330px);
  margin: clamp(-40px, -6vw, -90px) auto 0;
  position: relative; z-index: 2;
  perspective: 900px;
}
.hero-cover a { display: block; text-decoration: none; transform-style: preserve-3d; transition: transform .15s ease-out; }
.hero-cover img {
  width: 100%; display: block;
  border: 3px solid var(--paper);
  box-shadow: 18px 18px 0 var(--red), 0 30px 70px rgba(0,0,0,.65);
}
.hero-badge {
  position: absolute; top: -16px; left: -22px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .1em;
  padding: 8px 14px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.hero-sub {
  margin: 40px auto 0; max-width: 560px;
  color: var(--grey); font-size: clamp(15px, 1.6vw, 18px);
}
.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; transition: all .2s;
}
.btn-solid { background: var(--red); color: #fff; box-shadow: 6px 6px 0 rgba(255,45,45,.25); }
.btn-solid:hover { background: var(--red-deep); transform: translate(-2px,-2px); box-shadow: 9px 9px 0 rgba(255,45,45,.3); }
.btn-line { border: 2px solid var(--paper); color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); }

.scroll-hint {
  display: inline-block; margin-top: 54px;
  font-size: 26px; text-decoration: none; color: var(--grey);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ── archiwum ─────────────────────────────────────── */
.archive { padding: clamp(50px, 9vh, 110px) clamp(16px, 4vw, 48px); background: var(--ink-2); }
.archive-head { max-width: 1200px; margin: 0 auto 46px; }
.archive-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
}
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.archive-head p { color: var(--grey); margin-top: 12px; }

.issues-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.issue a { display: block; text-decoration: none; position: relative; }
.issue-no {
  position: absolute; top: -14px; left: -8px; z-index: 2;
  font-family: var(--font-display); font-size: 40px;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  transition: color .25s;
}
.issue a:hover .issue-no { color: var(--red); }
.issue-media { overflow: hidden; border: 2px solid rgba(244,241,234,.15); transition: border-color .25s, transform .25s, box-shadow .25s; }
.issue-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; filter: grayscale(.45) contrast(1.05); transition: filter .3s, transform .5s; }
.issue a:hover .issue-media { border-color: var(--red); transform: translate(-5px,-5px); box-shadow: 10px 10px 0 var(--red); }
.issue a:hover .issue-media img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.issue h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.issue-date { color: var(--grey); font-size: 13px; margin-top: 3px; }

/* ── klimat ───────────────────────────────────────── */
.climate { padding: clamp(50px, 9vh, 110px) clamp(16px, 4vw, 48px); }
.climate-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border: 2px solid var(--paper);
  padding: clamp(28px, 5vw, 60px);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color .25s;
}
.climate-inner::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .35s ease;
  z-index: 0;
}
.climate-inner:hover::before { transform: translateX(0); }
.climate-inner:hover { border-color: var(--red); }
.climate-inner > * { position: relative; z-index: 1; }
.climate-tag { font-size: 12px; letter-spacing: .18em; color: var(--grey); transition: color .25s; }
.climate-inner:hover .climate-tag { color: rgba(255,255,255,.8); }
.climate-inner h2 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 64px); line-height: .95; margin: 10px 0; }
.climate-inner p { color: var(--grey); max-width: 460px; transition: color .25s; }
.climate-inner:hover p { color: rgba(255,255,255,.85); }
.climate-arrow { font-size: clamp(40px, 6vw, 70px); font-family: var(--font-display); transition: transform .3s; }
.climate-inner:hover .climate-arrow { transform: translateX(14px); }

/* ── stopka ───────────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(244,241,234,.12); padding: 0 clamp(16px, 4vw, 48px) 50px; position: relative; z-index: 2; }
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(40px, 11.5vw, 168px);
  line-height: 1; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,.14);
  padding: 40px 0 30px;
  user-select: none;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px;
  font-size: 14px; color: var(--grey);
}
.footer-grid h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; color: var(--paper); font-size: 16px; margin-bottom: 12px; text-transform: uppercase; }
.footer-grid a { color: var(--grey); transition: color .2s; }
.footer-grid a:hover { color: var(--red); }
.footer-grid p + p { margin-top: 8px; }

/* ── reveal on scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── responsywność ────────────────────────────────── */
.only-desktop { display: inline; }
@media (max-width: 720px) {
  .only-desktop { display: none; }
  .topbar { flex-direction: column; gap: 12px; }
  .theme-switcher { top: auto !important; right: 10px !important; bottom: 14px !important; left: 10px !important; }
  .theme-switcher a { flex: 1; min-width: 0; padding: 6px 5px !important; font-size: 10px; line-height: 1.15; text-align: center; white-space: normal !important; }
  .climate-inner { flex-direction: column; align-items: flex-start; }
  .hero-cover { margin-top: -18px; }
}
