:root {
  --ink: #111412;
  --muted: #687069;
  --paper: #f6f1e8;
  --panel: #fffdf8;
  --gold: #b78a3c;
  --gold-dark: #8a672d;
  --forest: #143b34;
  --wine: #7a293b;
  --line: rgba(16, 19, 19, .12);
  --shadow: 0 28px 90px rgba(14, 24, 22, .18);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --body-size: 17px;
  --body-line: 1.72;
  --content-size: 18px;
  --content-line: 1.78;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(246, 241, 232, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--forest);
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-nav ul,
.side-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a,
.side-nav a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: #27302c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav .is-active,
.side-nav a:hover,
.side-nav .is-active {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 28px rgba(30, 26, 18, .08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 80px));
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 86px);
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #080a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 1.2s ease, transform 4.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(16, 19, 19, .9), rgba(16, 19, 19, .18), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding-bottom: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  max-width: 900px;
  font-size: 86px;
  font-weight: 500;
}

h2 {
  font-size: 46px;
  font-weight: 500;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 21px;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.button--primary {
  background: var(--gold);
  color: #17130c;
}

.button--ghost {
  border: 1px solid rgba(255,255,255,.36);
  color: #fff;
}

.mass-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(18px, 5vw, 72px);
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  background: rgba(255, 253, 247, .94);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mass-card span,
.mass-card small {
  display: block;
  color: var(--muted);
}

.mass-card strong {
  display: block;
  margin: 7px 0;
  font-size: 22px;
}

.scrolly-section {
  position: relative;
  height: 280svh;
  background: #080a09;
  display: grid;
  justify-items: center;
}

.scrolly-video {
  position: sticky;
  top: 0;
  width: min(100%, 1360px);
  height: 100svh;
  min-height: 100svh;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(184,138,53,.42), transparent 38%), url('/assets/images/wnetrze_kosciola.jpg') center / cover;
  box-shadow: none;
  overflow: hidden;
}

.scrolly-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  background: #111413;
}

.scrolly-video__fallback {
  position: absolute;
  inset: auto 22px 22px;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 44px);
  padding: 9px 13px;
  background: rgba(255, 253, 247, .86);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scrolly-video.is-ready .scrolly-video__fallback {
  display: none;
}

.scrolly-video.has-error .scrolly-video__media {
  display: none;
}

.scrolly-video.is-mobile-playback .scrolly-video__media {
  will-change: transform;
}

.scrolly-video.is-mobile-playback.needs-interaction .scrolly-video__fallback {
  display: inline-flex;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  padding: 86px clamp(22px, 6vw, 92px);
}

.panel,
.content-card,
.side-nav {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 30, 28, .09);
}

.panel {
  padding: 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head a {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.announcements {
  display: grid;
  gap: 22px;
}

.announcements--compact {
  /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
  max-height: 780px;
  overflow: auto;
  padding-right: 8px;
}

.announcement-sheet,
.announcement-text {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(22, 30, 26, .12);
}

.announcement-sheet img {
  width: 100%;
  height: auto;
}

.announcement-text {
  padding: 42px;
}

.announcement-text p {
  margin: 0 0 12px;
}

.quick-links {
  display: grid;
  gap: 16px;
}

.quick-links a {
  min-height: 210px;
  display: flex;
  align-items: end;
  padding: 22px;
  color: #fff;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(20, 30, 28, .16);
}

.quick-links span {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
}

.page-hero {
  padding: clamp(54px, 8vw, 120px) clamp(18px, 7vw, 110px) clamp(36px, 5vw, 70px);
  background: linear-gradient(120deg, var(--forest), #111413 58%, #2b1c20);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 76px);
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 6vw, 78px);
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 20px;
}

.side-nav h2 {
  margin: 8px 0 10px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.side-nav ul {
  display: grid;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 20px;
}

.side-nav a {
  border-radius: 8px;
}

.content-card {
  min-width: 0;
  padding: 58px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--content-size);
  line-height: var(--content-line);
}

.content-card .blog-featured,
.content-card .item-page,
.content-card .items-leading {
  display: contents;
}

.content-card :where(p, li, span, div, td, th, a, strong, em, u) {
  font-family: var(--sans) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.content-card :where(h1, h2, h3, h4, h5, h6),
.content-card :where(h1, h2, h3, h4, h5, h6) * {
  font-family: var(--serif) !important;
  line-height: 1.12 !important;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 18px;
}

.content-card h2 {
  font-size: 34px;
  font-weight: 600;
}

.content-card h3 {
  font-size: 26px;
  font-weight: 600;
}

.content-card h2 a {
  color: inherit;
  text-decoration: none;
}

.content-card p {
  margin: 0 0 16px;
}

.content-card sup,
.content-card sup * {
  font-size: .72em !important;
  line-height: 0 !important;
}

.content-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(15, 18, 17, .14);
}

.map-frame {
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(15, 18, 17, .14);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: min(58svh, 480px);
  min-height: 320px;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 90px);
  background: #0f1211;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration-color: rgba(255,255,255,.36);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .top-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .top-nav.is-open {
    display: block;
  }

  .top-nav ul,
  .site-footer,
  .scrolly-section,
  .home-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .top-nav ul {
    display: grid;
  }

  .mass-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }

  .hero {
    align-items: center;
    padding-top: 82px;
    min-height: calc(100svh - 74px);
  }

  .hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 19px;
  }

  .panel,
  .content-card {
    padding: 30px;
  }

  .scrolly-section {
    height: 150svh;
  }

  .scrolly-video {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  .scrolly-video__media {
    object-fit: cover;
  }

  .announcements--compact {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --body-size: 16px;
    --content-size: 17px;
    --content-line: 1.74;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .panel,
  .content-card {
    padding: 22px;
  }

  .home-grid {
    padding: 42px 18px;
  }

  .scrolly-section {
    height: 125svh;
  }

  .section-head {
    display: block;
  }

  .site-footer {
    display: grid;
  }
}
