@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alfa-slab-one-latin-ext.woff2?v=3ac804c6") 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alfa-slab-one-latin.woff2?v=082188c3") 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: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-ext.woff2?v=6a3aecdb") 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin.woff2?v=8a514e99") 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 {
  --color-page: #FBF3E4;
  --color-paper: #FFFCF5;
  --color-ink: #121212;
  --color-muted: #5B5651;
  --color-kasparek: #C10204;
  --color-velvet: #8E0016;
  --color-velvet-dark: #62000F;
  --color-velvet-light: #B3001C;
  --color-secondary: #06629B;
  --color-cyan: #82DCE5;
  --color-gold: #DBA90B;
  --color-orange: #FA4601;
  --color-pink: #FE9A8A;
  --color-lime: #D6E912;
  --color-yellow: #FDFD3C;

  --font-display: "Alfa Slab One", Rockwell, Georgia, serif;
  --font-body: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;

  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --max-width: 72rem;
  --radius: 0.75rem;
  --radius-lg: 1.1rem;
  --border-soft: 0.0625rem solid rgb(18 18 18 / 12%);
  --shadow-soft: 0 0.05rem 0.15rem rgb(18 18 18 / 6%), 0 0.6rem 1.6rem rgb(18 18 18 / 8%);
  --shadow-lift: 0 0.4rem 0.8rem rgb(18 18 18 / 10%), 0 1.4rem 2.6rem rgb(18 18 18 / 14%);
  --focus-ring: 0.2rem solid var(--color-kasparek);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: white;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  width: fit-content;
  margin-bottom: var(--space-lg);
  padding-bottom: 0.12em;
  border-bottom: 0.16rem solid var(--color-kasparek);
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

a {
  color: #8D0B08;
  font-weight: 600;
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0.15rem;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-yellow);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: clamp(8rem, 24vw, 12rem);
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.3rem 0.15rem 0.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 0.18rem solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-kasparek);
  border-bottom-color: var(--color-kasparek);
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.site-footer {
  position: relative;
  margin-top: var(--space-xl);
  background: var(--color-velvet-dark);
  color: white;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.site-footer strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}

.site-footer a {
  color: var(--color-yellow);
}

.site-footer a:hover {
  color: white;
}

.site-footer address {
  font-style: normal;
}

.card {
  background: white;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.4rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  color: white;
  background: var(--color-kasparek);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 140ms ease;
}

.btn:hover {
  color: white;
  background: var(--color-velvet);
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home .site-main {
  max-width: none;
  padding: 0;
}

.home-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) 2.25rem;
}

.home-hero__media {
  position: relative;
  isolation: isolate;
}

.home-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-page);
  border-radius: var(--radius-lg);
}

.home-hero__image--logo {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: var(--space-lg);
}

.home-hero__panel {
  position: absolute;
  left: 0;
  bottom: -2.25rem;
  width: min(28rem, 72%);
  padding: var(--space-md) var(--space-lg);
  color: white;
  background: var(--color-kasparek);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.home-hero__tagline {
  width: fit-content;
  margin: 0 0 var(--space-sm);
  padding: 0.2rem 0 0.25rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.2vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-yellow);
  border-top: 0.1rem solid currentcolor;
  border-bottom: 0.1rem solid currentcolor;
}

.home-hero__blurb {
  max-width: 26rem;
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.9vw, 1.9rem);
  line-height: 1.2;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
}

.home-hero__panel .btn {
  color: var(--color-ink);
  background: var(--color-yellow);
}

.home-hero__panel .btn:hover {
  color: var(--color-ink);
  background: white;
}

.home-hero__panel .btn--ghost {
  color: white;
  background: rgb(255 255 255 / 18%);
}

.home-hero__panel .btn--ghost:hover {
  color: var(--color-kasparek);
  background: white;
}

.home-hero__panel .btn:focus-visible {
  outline: 0.2rem solid white;
}

.home-program {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) 0;
}

.home-program__list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-program__list > li {
  padding: var(--space-md);
  background: white;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.home-program__list h3 {
  margin: 0.15rem 0 0;
}

.home-program__date {
  margin: 0;
  font-weight: 800;
  color: var(--color-velvet);
}

.home-program__more,
.home-posts__more {
  margin: var(--space-md) 0 0;
  font-weight: 700;
}

.home-posts {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) calc(var(--space-xl) + 1rem);
}

.home-posts__list,
.posts-list,
.gallery-list,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-posts__list,
.posts-list {
  display: grid;
  gap: var(--space-md);
}

.home-posts__list,
.posts-list {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.home-posts__list > li,
.posts-list > li {
  display: flex;
}

.home-posts__list .card,
.posts-list .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.home-posts__list .card:hover,
.posts-list .card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-0.25rem);
}

.post-card__gallery {
  display: grid;
  gap: 0.25rem;
  margin-bottom: var(--space-sm);
}

.post-card__gallery--3,
.post-card__gallery--4 {
  grid-template-columns: 1fr 1fr;
}

.post-card__gallery--3 > :first-child {
  grid-column: 1 / -1;
}

.post-card__image {
  display: block;
}

.post-card__gallery--3 > :not(:first-child),
.post-card__gallery--4 .post-card__image {
  aspect-ratio: 1 / 1;
}

.post-card__label {
  color: var(--color-muted);
  font-style: italic;
}

.post-card__link {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.timeline {
  display: grid;
  gap: var(--space-lg);
}

.timeline h2 {
  margin-bottom: var(--space-xs);
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 20rem;
  border: 0.1rem solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  border-radius: var(--radius);
}

.gallery-list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.gallery-list figure {
  margin: 0;
}

.program-list {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-list > li,
.timeline > li,
.gallery-list figure,
body:not(.page-home) .site-main > section {
  padding: clamp(1.15rem, 3vw, 1.8rem);
  background: white;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.program-list h3,
.timeline h2,
body:not(.page-home) .site-main > section h2 {
  margin-top: 0;
  padding-bottom: 0.15em;
  border-bottom: 0.14rem solid;
  border-bottom-color: var(--color-kasparek);
}

body:not(.page-home) .site-main > section {
  margin: var(--space-lg) 0;
}

.program-empty {
  max-width: 44rem;
}

.program-empty__label {
  margin: 0 0 var(--space-xs);
  color: var(--color-velvet);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-empty__action {
  margin: var(--space-md) 0 0;
}

.gallery-album__images {
  display: grid;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-album__images--2,
.gallery-album__images--3,
.gallery-album__images--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-album__images--3 > :first-child {
  grid-column: 1 / -1;
}

.gallery-list img,
.post-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-list figcaption {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
}

.gallery-list figcaption time {
  color: var(--color-velvet);
  font-weight: 800;
}

address {
  font-style: normal;
}

@media (max-width: 48rem) {
  .site-header__inner {
    justify-content: center;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .site-logo img {
    width: clamp(8rem, 42vw, 11rem);
  }

  .site-nav ul {
    justify-content: center;
    gap: 0.25rem 0.4rem;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem 0.45rem;
  }

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

  .home-hero__image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .home-hero__panel {
    position: static;
    width: 100%;
    padding: var(--space-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .home-posts__list .card:hover,
  .posts-list .card:hover {
    transform: none;
  }
}
