:root {
  --night: #0b2a2f;
  --lagoon: #0f4a50;
  --teal: #1b7f83;
  --sand: #f6ecd9;
  --paper: #fffaf0;
  --gold: #d9a441;
  --gold-soft: #f1d08a;
  --coral: #ef6f5e;
  --rr: #c4578a;
  --leaf: #3f9d6b;
  --ink: #1d2b2c;
  --muted: #6b7a78;
  --line: rgba(29, 43, 44, .12);
  --hero: linear-gradient(180deg, #0b2a2f 0%, #12565c 45%, #d9647a 80%, #f6a560 100%);
  --chip: color-mix(in srgb, var(--teal) 14%, var(--paper));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; margin: 0; }
a { color: var(--teal); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- pasek nawigacji ---------- */
.topbar { background: var(--night); color: var(--paper); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: "Playfair Display", serif; font-weight: 800; font-size: 18px; color: var(--paper); text-decoration: none; }
.unofficial { margin-right: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.brand em { color: var(--gold-soft); font-weight: 600; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.topbar nav span { color: var(--gold-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; margin-right: 6px; }
.topbar nav a { color: var(--paper); text-decoration: none; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 250, 240, .25); }
.topbar nav a:hover { border-color: var(--gold-soft); }
.topbar nav a[aria-current] { background: var(--gold-soft); color: var(--night); border-color: var(--gold-soft); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  text-align: center;
  padding: 56px 16px 120px;
  background: var(--hero);
}
.hero::after { /* fale */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background:
    radial-gradient(60px 30px at 30px 60px, var(--sand) 98%, transparent) 0 0 / 120px 60px repeat-x,
    radial-gradient(60px 30px at 90px 75px, var(--sand) 98%, transparent) 0 0 / 120px 60px repeat-x;
}
.palm { position: absolute; bottom: 20px; width: 190px; opacity: .9; }
.palm g { fill: var(--night); }
.palm.l { left: -30px; }
.palm.r { right: -30px; transform: scaleX(-1); }
.stars { letter-spacing: .5em; color: var(--gold-soft); font-size: 14px; }
.plaque {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--gold-soft) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--gold-soft) 25%, transparent);
  outline-offset: 6px;
  padding: 22px 34px 26px;
  margin-top: 14px;
  background: color-mix(in srgb, var(--night) 35%, transparent);
  backdrop-filter: blur(2px);
}
.hero h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.hero h1 em { color: var(--gold-soft); font-weight: 600; }
.sub { text-transform: uppercase; letter-spacing: .32em; font-size: 12px; color: var(--gold-soft); margin-top: 12px; }
.slogan { font-family: "Playfair Display", serif; font-style: italic; font-size: clamp(18px, 3vw, 24px); margin: 22px auto 0; max-width: 640px; position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; position: relative; z-index: 1; }
.fact { background: rgba(255, 250, 240, .14); border: 1px solid rgba(255, 250, 240, .3); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.fact b { color: var(--gold-soft); font-weight: 500; }

/* ---------- sekcje ---------- */
section { padding: 44px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: 11px; color: var(--teal); font-weight: 600; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 6px; }
.lead { color: var(--muted); max-width: 720px; margin: 0 0 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px color-mix(in srgb, var(--night) 6%, transparent); }

/* ---------- motyw edycji ---------- */
.motif { padding: 24px 26px; border-left: 5px solid var(--gold); display: grid; gap: 8px; }
.motif h3 { font-size: 26px; }
.motif p { margin: 0; max-width: 760px; }
.motif .look { color: var(--muted); font-size: 14px; }
.swatches { display: flex; gap: 6px; margin-top: 6px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }

/* ---------- finał ---------- */
.final-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.final-grid.solo { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.couple { padding: 22px; text-align: center; border-top: 4px solid var(--gold); }
.couple.other { border-top-color: var(--teal); }
.couple h3 { font-size: 26px; }
.couple p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.couple .faces { justify-content: center; }
.vs { align-self: center; font-family: "Playfair Display", serif; font-style: italic; font-size: 26px; color: var(--coral); }
.countdown { text-align: center; margin-top: 14px; font-size: 15px; color: var(--lagoon); }
.countdown b { font-family: "Playfair Display", serif; font-size: 20px; }

/* ---------- księga gości (gantt) ---------- */
.scrub { padding: 16px 18px; display: grid; gap: 10px; margin-bottom: 14px; }
.scrub-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.scrub-top strong { font-family: "Playfair Display", serif; font-size: 22px; }
.scrub-top span { color: var(--muted); font-size: 14px; }
input[type=range] { width: 100%; accent-color: var(--coral); }
.residents { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--lagoon); }
.chip.new { background: #dff3e4; color: #1f6b43; font-weight: 500; }
.chip.out { background: #fde3df; color: #a2382a; text-decoration: line-through; }
.now { font-size: 14px; color: var(--ink); }
.now div + div { margin-top: 4px; }

.gantt-scroll { overflow-x: auto; padding: 14px 14px 10px; }
.gantt { min-width: 820px; position: relative; --namew: 220px; }
.face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; border: 2px solid var(--gold-soft); background: var(--chip); }
img.face { cursor: zoom-in; transition: transform .15s; }
img.face:hover, img.face:focus-visible { transform: scale(1.12); outline: none; border-color: var(--coral); }
.face.noimg { display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--lagoon); letter-spacing: .02em; }
.face.sm { width: 22px; height: 22px; border-width: 1px; margin: -1px 6px -1px -6px; vertical-align: middle; font-size: 9px; }
.faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.faces .face { width: 44px; height: 44px; font-size: 14px; }
.faces:empty { display: none; }
.rr-axis { height: 22px; align-items: center; }
.rr-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--rr); font-weight: 600; }
.rr-pin { color: var(--rr); font-size: 15px; top: 0; cursor: help; }
.rr-line { position: absolute; top: 44px; bottom: 0; width: 0; border-left: 2px dashed color-mix(in srgb, var(--rr) 55%, transparent); pointer-events: none; z-index: 1; }
.rr-note { color: var(--rr); font-weight: 600; }
.g-row { display: grid; grid-template-columns: var(--namew) 1fr; align-items: center; height: 42px; }
.g-row:nth-child(even) .g-track { background: color-mix(in srgb, var(--teal) 5%, transparent); }
.g-name { font-size: 13.5px; display: flex; align-items: center; gap: 8px; padding-right: 8px; min-width: 0; }
.g-name span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 100%; }
.bar { position: absolute; top: 13px; height: 16px; border-radius: 8px; background: var(--teal); }
.bar.finalist { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.bar.back { background: repeating-linear-gradient(135deg, var(--teal) 0 6px, color-mix(in srgb, var(--teal) 70%, white) 6px 12px); }
.bar .end { position: absolute; right: -4px; top: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid var(--paper); }
.bar.finalist .end { background: var(--gold); }
.axis { display: grid; grid-template-columns: var(--namew) 1fr; font-size: 11px; color: var(--muted); height: 22px; }
.axis .ticks { position: relative; }
.axis .ticks span { position: absolute; transform: translateX(-50%); }
.cursor { position: absolute; top: 44px; bottom: 0; width: 2px; background: var(--coral); pointer-events: none; z-index: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); padding: 0 16px 14px; }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 5px; vertical-align: middle; margin-right: 6px; }

/* ---------- oś czasu ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button {
  font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
}
.filters button[aria-pressed=true] { background: var(--lagoon); color: var(--paper); border-color: var(--lagoon); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--coral), var(--gold)); }
.ev { position: relative; padding: 14px 16px; margin-bottom: 12px; }
.ev[hidden] { display: none; }
.ev::before { content: ""; position: absolute; left: -25px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--c, var(--teal)); }
.ev-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.ep { font-family: "Playfair Display", serif; font-weight: 800; font-size: 17px; }
.date { color: var(--muted); font-size: 13px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--c); font-weight: 500; }
.ev h3 { font-family: "Outfit", sans-serif; font-size: 16.5px; font-weight: 600; }
.ev p { margin: 4px 0 0; font-size: 14.5px; color: #3c4b4a; }
.ev .unsure { color: var(--muted); font-style: italic; font-size: 13px; }
.t-in { --c: var(--leaf); } .t-out { --c: var(--coral); } .t-rr { --c: var(--rr); }
.t-card { --c: var(--gold); } .t-back { --c: var(--teal); } .t-final { --c: #7a5cc9; }
.empty-note[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--night) 88%, transparent); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; color: var(--paper); }
.lightbox img { max-width: min(92vw, 720px); max-height: 78vh; border-radius: 12px; border: 3px solid var(--gold-soft); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: default; display: block; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; display: grid; gap: 2px; }
.lightbox strong { font-family: "Playfair Display", serif; font-size: 24px; }
.lightbox span { color: var(--gold-soft); font-size: 14px; }
.lb-close { position: absolute; top: 12px; right: 16px; font-size: 34px; line-height: 1; background: none; border: 0; color: var(--paper); cursor: pointer; }

/* ---------- miejsca na reklamy ---------- */
.ad-slot { margin: 36px auto 0; max-width: 970px; min-height: 120px; display: grid; place-items: center; }
.ad-slot.placeholder { border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; }
.ad-slot.off { display: none; }

/* ---------- strona główna ---------- */
.home-hero { padding-bottom: 130px; }
.home-hero .tagline { font-size: clamp(16px, 2.4vw, 20px); margin: 20px auto 0; max-width: 620px; position: relative; z-index: 1; }
.cta { display: inline-block; margin-top: 22px; position: relative; z-index: 1; background: var(--gold-soft); color: var(--night); text-decoration: none; font-weight: 600; padding: 10px 22px; border-radius: 999px; }
.upcoming { padding: 22px 24px; border-top: 4px solid var(--coral); margin-bottom: 16px; }
.upcoming h3 { font-size: 24px; }
.upcoming p { margin: 6px 0 0; }
.upcoming .facts { flex-direction: column; align-items: flex-start; margin-top: 14px; }
.upcoming .fact { background: var(--chip); border-color: var(--line); border-radius: 12px; }
.upcoming .fact b { color: var(--lagoon); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.news { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.news h3 { font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.news p { margin: 0; font-size: 14.5px; color: #3c4b4a; }
.news .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.news .src { margin-top: auto; padding-top: 6px; font-size: 13px; }
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 500; }
.kind.plotka { background: var(--rr); } .kind.casting { background: var(--leaf); } .kind.kontekst { background: var(--muted); } .kind.potwierdzone { background: var(--lagoon); }
.ed-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ed-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; border-radius: 16px; padding: 22px; color: #fffaf0; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); transition: transform .18s, box-shadow .18s; }
.ed-card:hover, .ed-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .24); outline: none; }
.ed-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, .45)); }
.ed-card > * { position: relative; }
.ed-card .num { font-family: "Playfair Display", serif; font-weight: 800; font-size: 76px; line-height: .9; }
.ed-card .where { text-transform: uppercase; letter-spacing: .26em; font-size: 11px; margin-top: 8px; }
.ed-card .quote { font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; margin: 14px 0; }
.ed-card .meta { margin-top: auto; font-size: 13.5px; display: grid; gap: 2px; }
.ed-card .go { margin-top: 12px; font-weight: 600; font-size: 14px; }
.badge-live { position: absolute; top: 16px; right: 16px; background: var(--coral); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; }
.table-scroll { overflow-x: auto; }
table.history { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.history th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.history td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.history tr:last-child td { border-bottom: 0; }
.history td:first-child { font-family: "Playfair Display", serif; font-weight: 800; white-space: nowrap; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 13px; }
footer ul { padding-left: 18px; columns: 2; column-gap: 32px; }
footer li { break-inside: avoid; margin-bottom: 3px; }

@media (max-width: 640px) {
  .final-grid { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .palm { width: 120px; }
  .plaque { padding: 18px 18px 22px; }
  footer ul { columns: 1; }
}

/* ---------- stopka serwisu i strony tekstowe ---------- */
.site-footer { background: var(--night); color: color-mix(in srgb, var(--paper) 75%, transparent); font-size: 13px; padding: 22px 0 28px; margin-top: 24px; }
.site-footer p { margin: 0 0 6px; max-width: 820px; }
.site-footer a { color: var(--gold-soft); }
.prose { max-width: 780px; padding-bottom: 40px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); margin: 6px 0 8px; }
.prose h2 { font-size: 22px; margin: 28px 0 6px; }
.prose li { margin-bottom: 8px; }

/* ---------- uczestnicy ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.person { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; border-top: 3px solid transparent; }
.person.finalist { border-top-color: var(--teal); }
.person.winner { border-top-color: var(--gold); }
.person:target { outline: 2px solid var(--coral); }
.person-head { display: flex; gap: 12px; align-items: center; }
.person-head .face { width: 48px; height: 48px; font-size: 15px; }
.person h3 { font-size: 20px; line-height: 1.2; }
.person-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.person p { margin: 0; font-size: 14.5px; color: #3c4b4a; }
.person-stay { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.person-stay b { color: var(--lagoon); font-weight: 600; }
.ig { font-size: 13.5px; font-weight: 500; text-decoration: none; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--lagoon); }
.ig:hover { text-decoration: underline; }
.g-name a { color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name a:hover { text-decoration: underline; }
footer details { margin: 10px 0; }
footer summary { cursor: pointer; }

/* ---------- podstrona uczestnika ---------- */
.person-hero { padding: 40px 16px 96px; }
.person-hero h1 { font-size: clamp(32px, 6vw, 56px); }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.profile { padding: 24px 26px; display: grid; gap: 14px; }
.profile p { margin: 0; max-width: 780px; }
.profile .bio { font-size: 17px; }
.factlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; margin: 4px 0 0; }
.factlist dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.factlist dd { margin: 2px 0 0; font-weight: 500; }
.mini-track { position: relative; height: 16px; border-radius: 8px; background: color-mix(in srgb, var(--teal) 8%, transparent); margin-top: 6px; }
.mini-track .bar { top: 0; }
.mini-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.qa { padding: 16px 18px; }
.qa h3 { font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 600; }
.qa p { margin: 6px 0 0; font-size: 14.5px; color: #3c4b4a; }
a.chip { text-decoration: none; padding: 5px 12px; }
a.chip:hover { background: var(--lagoon); color: var(--paper); }
.person h3 a { color: inherit; text-decoration: none; }
.person h3 a:hover { text-decoration: underline; }
.person-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.person-links .more { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.person-links .more:hover { text-decoration: underline; }
