/* STUDENT+ — Duszpasterstwo Akademickie i Postakademickie
   Statyczna strona, bez frameworków. */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/pjs-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/pjs-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-600i.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600i.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  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 {
  --brand: #00b8e6;
  --brand-strong: #0089ad;
  --brand-soft: #e3f7fd;
  --ink: #0f1a22;
  --ink-2: #3c4a55;
  --muted: #6b7a86;
  --bg: #ffffff;
  --bg-2: #f4f7f9;
  --line: #e2e8ed;
  --night: #0b141b;
  --night-2: #13212c;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 26, 34, .25);
  --wrap: 1160px;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #22ccf5;
    --brand-strong: #5ad8f7;
    --brand-soft: #0f2a36;
    --ink: #e8eef2;
    --ink-2: #b8c4cc;
    --muted: #8a98a3;
    --bg: #0e171e;
    --bg-2: #142029;
    --line: #22313c;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--brand); letter-spacing: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.solid, .site-header.page {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .logo-light, .site-header.page .logo-light { display: none; }
.site-header.solid .logo-dark, .site-header.page .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  .site-header.solid .logo-light, .site-header.page .logo-light { display: block; }
  .site-header.solid .logo-dark, .site-header.page .logo-dark { display: none; }
}

.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header.solid .nav a, .site-header.page .nav a { color: var(--ink); }
.site-header.solid .nav a:hover, .site-header.page .nav a:hover,
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #fff;
}
.site-header.solid .nav-toggle, .site-header.page .nav-toggle { color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a, .site-header .nav a { color: var(--ink); padding: 12px 14px; font-size: 1.05rem; }
  .nav-open.site-header { background: var(--bg); }
  .nav-open .nav-toggle { color: var(--ink); }
  .nav-open .logo-light { display: none; }
  .nav-open .logo-dark { display: block; }
  @media (prefers-color-scheme: dark) {
    .nav-open .logo-light { display: block; }
    .nav-open .logo-dark { display: none; }
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 940px); display: grid; align-items: end;
  color: #fff; isolation: isolate; overflow: hidden;
  padding: 140px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 27, .55) 0%, rgba(11, 20, 27, .15) 35%, rgba(11, 20, 27, .85) 100%);
}
.hero .eyebrow { color: #bdefff; }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .35em; }
.hero h1 .accent { color: #5ad8f7; display: block; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; color: rgba(255, 255, 255, .88); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-card svg { flex: none; color: #5ad8f7; }
.hero-card strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.3; }
.hero-card small { color: rgba(255, 255, 255, .75); font-size: .88rem; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; color: rgba(255, 255, 255, .7);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #04212b; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { color: var(--brand-strong); }
.hero .btn-ghost { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sekcje ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }

.photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(11, 20, 27, .72); color: #fff; font-weight: 700; font-size: .9rem;
  backdrop-filter: blur(6px);
}

.pull {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; color: var(--ink);
  border-left: 4px solid var(--brand); padding: 4px 0 4px 22px; margin: 28px 0;
}
.pull cite { display: block; margin-top: 10px; font-family: var(--font); font-style: normal; font-size: .95rem; font-weight: 600; color: var(--muted); }

/* ---------- Spotkania ---------- */
.meet-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 100%);
  color: rgba(255, 255, 255, .85); margin-bottom: 40px; box-shadow: var(--shadow);
}
.meet-banner .big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: #5ad8f7; line-height: 1; letter-spacing: -.03em; }
.meet-banner h3 { color: #fff; margin-bottom: 4px; }
.meet-banner p { margin: 0; }
.meet-banner .btn-primary { white-space: nowrap; }
@media (max-width: 760px) { .meet-banner { grid-template-columns: 1fr; gap: 16px; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }
.note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* ---------- Patron ---------- */
.patron { background: var(--night); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.patron::before {
  content: ""; position: absolute; inset: auto -10% -30% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(0, 184, 230, .22), transparent 65%); pointer-events: none;
}
.patron h2, .patron h3 { color: #fff; }
.patron .eyebrow { color: #5ad8f7; }
.patron .pull { color: #fff; }
.patron .pull cite { color: rgba(255, 255, 255, .6); }
.patron .btn-ghost { color: #fff; }
.patron .dates { font-weight: 700; color: #5ad8f7; letter-spacing: .06em; margin-bottom: 20px; }
.patron .photo { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 4 / 5; }

/* ---------- Rozkręcamy wiarę ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feature .photo { border-radius: 0; box-shadow: none; min-height: 360px; }
.feature .body { padding: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .photo { min-height: 0; height: 240px; } }

/* ---------- Relacje ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover figure img { transform: scale(1.05); }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post time { font-size: .85rem; font-weight: 700; color: var(--brand-strong); text-transform: uppercase; letter-spacing: .06em; }
.post h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.post p { font-size: .96rem; color: var(--muted); margin: 0; }
.center-row { text-align: center; margin-top: 40px; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery a { border-radius: 14px; overflow: hidden; display: block; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: rgba(5, 10, 14, .92); padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; max-width: min(1200px, 100%); border-radius: 10px; }
.lightbox button {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; cursor: pointer;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.person { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.person small { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brand-strong); }
.person strong { font-size: 1.25rem; color: var(--ink); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 4px; color: var(--brand-strong); }
.contact-list a { font-weight: 600; }
.map-card {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; color: #fff; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; position: relative; padding: 32px; isolation: isolate;
}
.map-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/wspolnota.jpg") center / cover; transition: transform .6s; }
.map-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 20, 27, .1), rgba(11, 20, 27, .88)); }
.map-card:hover::before { transform: scale(1.05); }
.map-card:hover { color: #fff; }
.map-card h3 { color: #fff; margin-bottom: 4px; }
.map-card span { font-weight: 700; color: #5ad8f7; }

/* ---------- Podstrony ---------- */
.page-hero { padding: 150px 0 64px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.page-hero .lead { font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; font-weight: 600; }

.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose img, .prose .photo { margin: 32px 0; border-radius: var(--radius); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .author { font-weight: 700; color: var(--ink); margin-top: 2em; }
.article-cover { margin: -24px auto 0; }
.article-cover img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 560px; object-fit: cover; }

.prayer {
  background: var(--brand-soft); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.15rem; line-height: 1.75; color: var(--ink);
  margin: 40px 0;
}
.prayer h2, .prayer h3 { font-family: var(--font); font-style: normal; margin-top: 0; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav a { text-decoration: none; font-weight: 700; max-width: 45%; }
.post-nav small { display: block; color: var(--muted); font-weight: 600; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #5ad8f7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { height: 24px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: rgba(255, 255, 255, .5); }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
