/* /fashion-machine — Fashion Machine 2026 × Złota Nitka event page, co-branded with Next Gen Fashion Polska (NGF).
   The wearfits.me header and footer keep site.css; everything between them is scoped to .zn-* and follows the NGF
   brand book: lime / greens / off-white, Climate Crisis headlines and buttons (lime pill, dark-green text),
   Rock Salt handwritten accents (Latin only, see fonts/fashion-machine-fonts.css), Bricolage Grotesque body,
   the topographic swirl pattern (img/fashion-machine/pattern-*.svg). Mobile first. */
.zn-page {
  --zn-lime: #d9ff3b;
  --zn-lime-light: #f1ff9c;
  --zn-green: #1a873e;
  --zn-deep: #03442d;
  --zn-off: #fcfff5;
  --zn-display: 'Climate Crisis', 'Archivo', system-ui, sans-serif;
  --zn-script: 'Rock Salt', 'Climate Crisis', cursive;
  --zn-body: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --zn-wrap: 1200px;
}

/* event strip under the standard header */
.zn-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 8px var(--lp-gutter); background: var(--zn-deep); color: var(--zn-lime);
  border-top: 1px solid rgba(217, 255, 59, 0.25);
}
.zn-strip-text {
  font-family: var(--zn-body); font-weight: 700; font-size: 12px; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 380px) {
  .zn-strip-text { font-size: 11px; letter-spacing: 0.04em; }
  .zn-strip .zn-btn-sm { padding: 8px 12px; font-size: 10px; }
  .zn .zn-logo-wf { width: 104px; }
  .zn-brands { gap: 10px; }
}

/* buttons: Climate Crisis on a lime pill, dark-green text */
.zn .zn-btn, .zn-strip .zn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--zn-lime); color: var(--zn-deep);
  font-family: var(--zn-display); font-size: 15px; line-height: 1.2; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.zn .zn-btn:hover, .zn-strip .zn-btn:hover { opacity: 1; background: var(--zn-lime-light); transform: translateY(-1px); }
.zn .zn-btn:focus-visible, .zn-strip .zn-btn:focus-visible { outline: 3px solid var(--zn-lime); outline-offset: 3px; }
.zn-strip .zn-btn-sm { flex: none; min-height: 44px; padding: 8px 16px; font-size: 11px; }
.zn .zn-btn-dark { background: var(--zn-deep); color: var(--zn-lime); }
.zn .zn-btn-dark:hover { background: var(--zn-green); }
.zn .zn-btn-dark:focus-visible { outline-color: var(--zn-deep); }

.zn { font-family: var(--zn-body); color: var(--zn-deep); background: var(--zn-off); }
.zn img { border-radius: 0; }
.zn-wrap, .zn-hero-inner { width: 100%; max-width: var(--zn-wrap); margin: 0 auto; }

.zn-h1, .zn-h2 {
  font-family: var(--zn-display); font-weight: 400; text-transform: uppercase;
  line-height: 1.02; letter-spacing: 0; overflow-wrap: break-word;
}
.zn-h1 { font-size: clamp(22px, 8.2vw, 88px); }
.zn-h2 { font-size: clamp(22px, 6.4vw, 60px); }
/* Rock Salt accent; a translation with Polish diacritics gets .zn-script-plain from js/fashion-machine.js */
.zn-script { display: block; font-family: var(--zn-script); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.zn-script.zn-script-plain { font-family: var(--zn-display); text-transform: uppercase; line-height: 1.1; }
.zn-h2 .zn-script { margin-top: 0.1em; font-size: 0.62em; transform: rotate(-3deg); transform-origin: left center; }
.zn-lead { font-size: 18px; line-height: 1.5; max-width: 36em; }

/* hero: swirl pattern (two greens) under a dark-green veil so text stays well above AA */
.zn-hero {
  padding: 20px var(--lp-gutter) 32px; color: var(--zn-off);
  background: linear-gradient(180deg, rgba(3, 68, 45, 0.9) 0%, rgba(3, 68, 45, 0.72) 100%), url(/img/fashion-machine/pattern-green.svg) center / cover no-repeat, var(--zn-deep);
}
.zn-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.zn-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 4px; }
.zn .zn-logo-wf { width: 128px; height: auto; }
.zn .zn-logo-ngf { width: 150px; height: auto; } /* brand book: full logo ≥ 150 px wide on screens */
.zn-x { font-family: var(--zn-display); font-size: 18px; color: var(--zn-lime); }
.zn-hero .zn-script { color: var(--zn-lime); font-size: clamp(19px, 5.4vw, 34px); transform: rotate(-2deg); transform-origin: left center; margin: -2px 0 4px; }
.zn-hero .zn-script-plain { font-size: clamp(18px, 4.6vw, 30px); }
.zn-hero .zn-lead { font-size: 17px; }
.zn-hero .zn-script { max-width: 22em; }
.zn-hero .zn-btn { margin-top: 6px; }

/* QR blocks: only where a phone is the second screen (wide, landscape layouts) */
.zn-qr { display: none; }
.zn .zn-qr img { width: 200px; height: 200px; padding: 0; background: #fff; border-radius: 12px; }
.zn-qr figcaption { max-width: 220px; font-size: 15px; line-height: 1.4; }
.zn-qr strong { display: block; margin-bottom: 4px; font-family: var(--zn-display); font-weight: 400; font-size: 15px; text-transform: uppercase; color: var(--zn-lime); }
.zn-final .zn-qr strong { color: var(--zn-deep); }

/* about */
.zn-about { padding: 56px var(--lp-gutter); background: var(--zn-off); }
.zn-about .zn-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.zn-about .zn-h2 { color: var(--zn-deep); max-width: 14em; }
.zn-prose { display: grid; gap: 16px; font-size: 18px; line-height: 1.6; max-width: 46em; }
.zn-prose p:first-child { font-size: 20px; font-weight: 600; }

/* collection */
.zn-collection { padding: 56px var(--lp-gutter) 64px; background: var(--zn-deep); color: var(--zn-off); scroll-margin-top: 0; }
.zn-collection:focus { outline: none; }
.zn-collection .zn-h2 .zn-script { color: var(--zn-lime); }
.zn-collection .zn-lead { margin-top: 16px; }
.zn-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-top: 32px; }
.zn-gallery[hidden] { display: none; }
.zn-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zn-card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--zn-green); }
.zn .zn-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.zn-card-name { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.zn-card-title { font-size: 14px; line-height: 1.35; color: var(--zn-lime-light); overflow-wrap: anywhere; }
.zn .zn-card .zn-btn { margin-top: auto; min-height: 44px; padding: 10px 12px; font-size: 11px; width: 100%; }
.zn-card-skel .zn-card-media { background: linear-gradient(100deg, rgba(26, 135, 62, 0.55) 30%, rgba(26, 135, 62, 0.9) 50%, rgba(26, 135, 62, 0.55) 70%) 0 0 / 200% 100%; animation: zn-shimmer 1.4s linear infinite; }
.zn-card-skel .zn-skel-line { height: 14px; width: 70%; border-radius: 7px; background: rgba(26, 135, 62, 0.6); }
.zn-card-skel .zn-skel-btn { height: 44px; border-radius: 999px; background: rgba(217, 255, 59, 0.25); margin-top: auto; }
@keyframes zn-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .zn-card-skel .zn-card-media { animation: none; }
  .zn .zn-btn, .zn-strip .zn-btn { transition: none; }
}
.zn-gallery-fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; padding: 24px; border: 1px solid rgba(217, 255, 59, 0.4); border-radius: 16px; font-size: 18px; }
.zn-gallery-fallback[hidden] { display: none; }
.zn .zn-credit { margin-top: 40px; font-size: 15px; color: var(--zn-lime-light); }

/* final CTA: lime swirl, dark-green type */
.zn-final {
  padding: 56px var(--lp-gutter) 64px; color: var(--zn-deep);
  background: url(/img/fashion-machine/pattern-lime.svg) center / cover no-repeat, var(--zn-lime);
}
.zn-final-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.zn-final .zn-h2 { max-width: 13em; }
.zn-final .zn-lead { font-weight: 600; }

@media (min-width: 700px) {
  .zn-strip-text { font-size: 13px; }
  .zn-strip .zn-btn-sm { font-size: 12px; padding: 8px 20px; }
  .zn-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 40px 24px; }
  .zn .zn-card .zn-btn { font-size: 12px; }
  .zn-about, .zn-collection, .zn-final { padding-top: 88px; padding-bottom: 96px; }
}

/* Wide landscape screens (laptops, tablets sideways, event screens): copy beside the QR code. */
@media (min-width: 900px) and (orientation: landscape) {
  .zn-hero { padding-top: 48px; padding-bottom: 64px; background: linear-gradient(90deg, rgba(3, 68, 45, 0.92) 0%, rgba(3, 68, 45, 0.78) 55%, rgba(3, 68, 45, 0.35) 100%), url(/img/fashion-machine/pattern-green.svg) center / cover no-repeat, var(--zn-deep); }
  .zn-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .zn-h1 { font-size: clamp(44px, 5.6vw, 84px); }
  .zn-hero .zn-lead { font-size: 19px; }
  .zn-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; padding: 20px; border-radius: 20px; background: rgba(3, 68, 45, 0.85); text-align: center; }
  .zn-final .zn-qr { background: var(--zn-off); }
  .zn .zn-qr img { width: 180px; height: 180px; }
}
@media (min-width: 1200px) and (orientation: landscape) {
  .zn .zn-qr img { width: 200px; height: 200px; }
}
/* Short landscape screens (1366×768, 1280×720): keep the hero CTA on the first screen. */
@media (min-width: 900px) and (orientation: landscape) and (max-height: 820px) {
  .zn-hero { padding-top: 32px; padding-bottom: 40px; }
  .zn-h1 { font-size: clamp(40px, min(5vw, 8.5svh), 72px); }
  .zn .zn-logo-ngf { width: 150px; }
  .zn .zn-qr img { width: 168px; height: 168px; }
}
