:root {
  --bg: #0d0b09;
  --bg-soft: #15110d;
  --panel: rgba(28, 22, 17, 0.82);
  --panel-strong: #211912;
  --text: #f6eddc;
  --muted: #c6b798;
  --gold: #c89b4f;
  --gold-soft: rgba(200, 155, 79, 0.18);
  --red: #8e2c24;
  --green: #263b30;
  --line: rgba(246, 237, 220, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(200, 155, 79, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(142, 44, 36, 0.16), transparent 28rem),
    linear-gradient(180deg, #100c09 0%, #080706 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(246, 237, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 7%, rgba(200, 155, 79, 0.16) 7% 7.18%, transparent 7.18% 100%);
  background-size: 100% 38px, 100% 152px;
  opacity: 0.28;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 11, 9, 0.88);
  backdrop-filter: blur(18px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 155, 79, 0.62);
  background: linear-gradient(135deg, var(--red), #4c1814);
  color: #fff7e6;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill,
.button.primary {
  border-color: rgba(200, 155, 79, 0.46);
  background: var(--gold);
  color: #120c07;
}

.button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.language-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.language-picker span:first-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.language-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-button img,
.language-option img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 72px) 42px;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "IV";
  position: absolute;
  left: -18px;
  top: -24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 247, 230, 0.28);
  background: var(--gold);
  color: #120c07;
  font-family: "Cinzel", serif;
  font-size: 2.1rem;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.brand,
.lead,
.prose,
.manuscript-copy p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(3rem, 7vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lead,
.page-hero p,
.prose,
.manuscript-copy p,
.leader p,
.media-section p {
  color: var(--muted);
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
}

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

.chant-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #17281f, var(--green));
  color: #fff7e6;
}

.chant-band span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-right: 1px solid rgba(255, 247, 230, 0.18);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.content-section,
.page-hero,
.gallery-preview,
.media-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.prose p {
  margin-top: 0;
}

.manuscript {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  padding-inline: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(200, 155, 79, 0.34);
  background:
    linear-gradient(90deg, rgba(142, 44, 36, 0.15) 0 52px, transparent 52px),
    var(--panel);
  box-shadow: var(--shadow);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.facts-grid article {
  min-height: 144px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.facts-grid strong {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.facts-grid span {
  color: var(--muted);
  font-weight: 600;
}

.leader,
.media-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.leader img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-section,
.contact-section {
  padding-inline: clamp(22px, 4vw, 48px);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.gallery-preview {
  display: grid;
  gap: 24px;
}

.preview-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.preview-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.page-hero {
  max-width: 920px;
  text-align: center;
}

.gallery-grid {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 80px;
}

.gallery-item {
  min-height: 250px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(9n + 4) {
  grid-column: span 2;
  min-height: 340px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.08);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(200, 155, 79, 0.34);
  color: var(--text);
  background: rgba(200, 155, 79, 0.09);
  font-weight: 700;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(8, 7, 6, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  width: min(1040px, 100%);
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--text);
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 232, 0.35);
  background: rgba(255, 248, 232, 0.12);
  color: #fff8e8;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 248, 232, 0.35);
  background: rgba(255, 248, 232, 0.12);
  color: #fff8e8;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-nav:hover {
  background: rgba(255, 248, 232, 0.22);
}

@media (max-width: 560px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding-inline: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .brand {
    order: 1;
  }

  .language-picker {
    order: 2;
    min-width: 0;
  }

  .language-picker span:first-child {
    display: none;
  }

  .language-button {
    width: auto;
    padding: 8px 10px;
  }

  .language-button #selectedLanguage {
    display: none;
  }

  .language-menu {
    width: auto;
    min-width: 64px;
  }

  .language-option span {
    display: none;
  }

  .language-option {
    justify-content: center;
    padding: 8px 10px;
  }

  .main-nav {
    order: 4;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 6px -12px -16px;
    display: none;
  }

  .site-header.nav-open .main-nav a {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 12px;
  }

  .hero,
  .two-column,
  .manuscript,
  .leader,
  .media-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-inline: 12px;
  }

  .hero-media img {
    min-height: 360px;
  }

  .content-section,
  .page-hero,
  .gallery-preview,
  .media-section,
  .contact-section,
  .manuscript,
  .gallery-grid {
    width: 100%;
    padding-inline: 12px;
  }

  .chant-band,
  .gallery-grid,
  .preview-strip {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(6n + 1),
  .gallery-item:nth-child(9n + 4) {
    grid-column: span 1;
    min-height: 260px;
  }

  .site-footer {
    padding-inline: 12px;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .hero,
  .content-section,
  .page-hero,
  .gallery-preview,
  .media-section,
  .contact-section {
    width: 100%;
  }

  .hero {
    padding-inline: 12px;
  }

  .hero-media::before {
    left: 0;
    top: -12px;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .manuscript,
  .media-section,
  .contact-section {
    padding-inline: 12px;
  }

  .chant-band,
  .facts-grid,
  .gallery-grid,
  .preview-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
