/* Vernissio WWW · nurt F „Kino”
   Układ: zdjęcia na całą szerokość jak slajdy wystawy, treść na tle, szkło na paskach.
   Tokeny z docs/design/nurt-F/README.md. Scena (zdjęcia) zawsze ciemna, tło według trybu. */
/* Source Serif 4 (OFL) z własnego serwera: latin i latin-ext, prosty i kursywa, zmienna grubość i optyczny rozmiar */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/ss4-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/ss4-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: "Source Serif 4"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/ss4-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Source Serif 4"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/ss4-italic-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 {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --fg: #1D1D1F;
  --fg2: #6E6E73;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-fg2: #3C3C43;
  --stroke: rgba(0, 0, 0, 0.08);
  --stroke-strong: rgba(0, 0, 0, 0.14);
  --accent: #C8281E;
  --btn: #1D1D1F;
  --btn-fg: #F5F5F7;
  --chip: rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
  /* scena: zawsze ciemna, bo zdjęcia z epoki */
  --ink: #0A0A0B;
  --on-ink: #F2F2F5;
  --on-ink2: rgba(235, 235, 245, 0.74);
  --ink-glass: rgba(30, 30, 32, 0.62);
  --ink-stroke: rgba(255, 255, 255, 0.16);
  --accent-ink: #FF5A48;

  --serif: "Source Serif 4", "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B; --surface: #1C1C1E; --fg: #EBEBF0; --fg2: rgba(235, 235, 245, 0.64);
    --glass: rgba(30, 30, 32, 0.68); --glass-fg2: rgba(235, 235, 245, 0.74);
    --stroke: rgba(255, 255, 255, 0.10); --stroke-strong: rgba(255, 255, 255, 0.18);
    --accent: #FF5A48; --btn: #F5F5F7; --btn-fg: #0A0A0B; --chip: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0B; --surface: #1C1C1E; --fg: #EBEBF0; --fg2: rgba(235, 235, 245, 0.64);
  --glass: rgba(30, 30, 32, 0.68); --glass-fg2: rgba(235, 235, 245, 0.74);
  --stroke: rgba(255, 255, 255, 0.10); --stroke-strong: rgba(255, 255, 255, 0.18);
  --accent: #FF5A48; --btn: #F5F5F7; --btn-fg: #0A0A0B; --chip: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* przejście do treści dla klawiatury */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn); color: var(--btn-fg); font: 600 15px/1 var(--sans); text-decoration: none; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
/* strona tagu na .com: chwila ukrycia, zanim tag.js wstawi język przeglądarki (najwyżej 1,5 s) */
html.swap body { visibility: hidden; animation: vreveal 0s 1.5s forwards; }
@keyframes vreveal { to { visibility: visible; } }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* —— typografia —— */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; margin: 0; }
.display { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.025em; }
.h2 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; text-wrap: pretty; max-width: 34em; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--fg2); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* —— logo: znak i napis z web/brand (build.py) —— */
.logo { display: inline-flex; align-items: baseline; gap: .17em; text-decoration: none; color: inherit; line-height: 1; font-size: 24px; }
.logo .sig { height: .98em; width: auto; flex: none; overflow: visible; }
.logo .word { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.015em; }
.sygnet-dot { fill: var(--dot, var(--accent)); }
.sygnet-stem { fill: currentColor; }
/* ikona aplikacji: ten sam obraz co w aplikacji (blok VER / NiS / SIO) */
.appicon-img { display: block; width: 100%; height: auto; border-radius: 22.4%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* —— sklepy: aplikacja w przygotowaniu —— */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-grid; gap: 1px; align-content: center; min-width: 156px; min-height: 54px; padding: 0 20px; border-radius: 14px;
  background: var(--btn); color: var(--btn-fg); cursor: default; }
.store small { font: 500 11.5px/1.1 var(--sans); opacity: .72; letter-spacing: .01em; }
.store b { font: 600 19px/1.1 var(--sans); letter-spacing: -.01em; }
.stage .store, .pitch .store { background: #F5F5F7; color: #0A0A0B; }
/* W hero główną akcją jest „Posłuchaj”; sklepy „wkrótce” tylko obrysem, żeby nie udawały przycisku. */
.hero .store { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* —— przyciski —— */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--btn); color: var(--btn-fg);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.light { background: #F5F5F7; color: #0A0A0B; }
.btn.glass { background: var(--ink-glass); color: var(--on-ink); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--ink-stroke); }
.btn.quiet { background: var(--chip); color: var(--fg); }
.btn.sm { --h: 36px; padding: 0 16px; font-size: 15px; }
.btn.lg { --h: 58px; padding: 0 30px; font-size: 18px; }
.store-btn { gap: 12px; padding: 0 26px 0 20px; }
.store-btn .two { display: grid; text-align: left; line-height: 1.05; }
.store-btn .two small { font: 500 11px/1.1 var(--sans); opacity: .8; letter-spacing: .01em; }
.store-btn .two span { font: 600 18px/1.1 var(--sans); }
.free { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .02em; }
.free::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--accent)); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--sans); background: var(--chip); color: var(--fg); white-space: nowrap; }
.chip.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--stroke-strong); }
.chip.ink { background: var(--ink-glass); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink-stroke); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* —— podpis zdjęcia jak etykieta muzealna —— */
.credit { font: 500 12px/1.35 var(--sans); color: var(--on-ink2); letter-spacing: .01em; }
.credit b { font-weight: 600; color: var(--on-ink); }

/* —— szkło —— */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 0 0 1px var(--stroke); }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn.glass, .chip.ink { background: #1C1C1E; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* —— fale dźwięku z kropki (kropka nad i jako „na antenie”) —— */
.rings { position: absolute; inset: 0; pointer-events: none; }
.rings i { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--dot, var(--accent)); transform: translate(-50%, -50%) scale(.6); opacity: 0;
  animation: ring 2.4s var(--ease) infinite; }
.rings i:nth-child(2) { animation-delay: .8s; }
.rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }

/* —— fala głosu w odtwarzaczu —— */
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .35; height: calc(var(--h, .4) * 100%); transition: opacity .2s; }
.playing .wave i { animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); opacity: .9; }
@keyframes bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

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

/* przejścia między stronami (View Transitions, gdzie przeglądarka umie) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
