@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Fondamento&family=Spectral:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --ink: #14241f;
  --muted: #5d665d;
  --paper: #efe1c4;
  --surface: #fff7e6;
  --surface-strong: #e7d0a8;
  --line: #c9ad7e;
  --bronze: #bf7437;
  --bronze-dark: #8b4a24;
  --green: #174841;
  --green-deep: #10362f;
  --green-soft: #dce7d5;
  --ember: #bf7437;
  --cream: #fff7e6;
  --shadow: 0 26px 90px rgba(16, 10, 8, 0.22);
  --body-font: "Spectral", Georgia, serif;
  --label-font: "Cinzel", Georgia, serif;
  --display-font: "Fondamento", Georgia, serif;
  --content-max: 1320px;
  --page-gutter: clamp(20px, 5vw, 72px);
  --centered-gutter: max(
    var(--page-gutter),
    calc((100vw - var(--content-max)) / 2)
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(191, 116, 55, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(23, 72, 65, 0.12), transparent 42%),
    var(--paper);
  font-family: var(--body-font);
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px var(--centered-gutter);
  border-bottom: 1px solid rgba(201, 173, 126, 0.78);
  background: rgba(239, 225, 196, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-social,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 210px;
  gap: 10px;
  color: var(--green);
  font-family: var(--label-font);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 250, 240, 0.68);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(35, 93, 84, 0.24);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-family: var(--label-font);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--bronze-dark);
}

.header-social {
  gap: 10px;
  color: var(--green);
}

.social-link {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: inherit;
  background: currentColor;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--bronze-dark);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 3px solid rgba(183, 111, 42, 0.28);
  outline-offset: 3px;
}

.social-link-instagram {
  -webkit-mask: url("../images/social/instagram.png") center / contain no-repeat;
  mask: url("../images/social/instagram.png") center / contain no-repeat;
}

.social-link-discord {
  -webkit-mask: url("../images/social/discord.png") center / contain no-repeat;
  mask: url("../images/social/discord.png") center / contain no-repeat;
}

.hero,
.page-hero,
.section,
.cta-band,
.site-footer {
  padding-right: var(--centered-gutter);
  padding-left: var(--centered-gutter);
}

.hero {
  display: grid;
  min-height: calc(100vh - 75px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding-top: clamp(52px, 8vw, 112px);
  padding-bottom: 58px;
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 80% 18%, rgba(191, 116, 55, 0.32), transparent 28%),
    linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 70%, #100b08));
}

body[data-page="home"] .site-header {
  border-bottom-color: rgba(255, 247, 230, 0.18);
  background: rgba(16, 54, 47, 0.82);
}

body[data-page="home"] .brand,
body[data-page="home"] .nav-links,
body[data-page="home"] .header-social {
  color: rgba(255, 247, 230, 0.86);
}

body[data-page="home"] .nav-links a:hover,
body[data-page="home"] .nav-links a:focus-visible,
body[data-page="home"] .nav-links a[aria-current="page"],
body[data-page="home"] .social-link:hover,
body[data-page="home"] .social-link:focus-visible {
  color: var(--bronze);
}

body[data-page="home"] .hero-home {
  color: var(--cream);
}

body[data-page="home"] .hero-home h1 {
  color: var(--cream);
}

body[data-page="home"] .hero-home .lede {
  color: rgba(255, 247, 230, 0.78);
}

.page-hero {
  padding-top: clamp(58px, 8vw, 112px);
  padding-bottom: clamp(42px, 6vw, 76px);
  border-bottom: 1px solid rgba(216, 195, 153, 0.78);
  background: rgba(255, 250, 240, 0.55);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.68fr);
  align-items: start;
  gap: clamp(34px, 6vw, 86px);
}

.about-hero .image-frame {
  width: min(100%, 460px);
  justify-self: end;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-family: var(--label-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: clamp(3.1rem, 8vw, 7.1rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--green);
  font-family: var(--label-font);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-family: var(--label-font);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 58ch;
  margin-bottom: 30px;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--label-font);
  font-weight: 900;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
.text-link:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(183, 111, 42, 0.28);
  outline-offset: 3px;
}

.button.primary {
  background: var(--green-deep);
  color: #fff8e8;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--bronze-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--bronze-dark);
  color: var(--bronze-dark);
}

body[data-page="home"] .button.secondary {
  border-color: rgba(255, 247, 230, 0.34);
  background: transparent;
  color: var(--cream);
}

body[data-page="home"] .button.secondary:hover,
body[data-page="home"] .button.secondary:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--bronze-dark);
  font-weight: 900;
  text-decoration-color: rgba(117, 64, 23, 0.34);
  text-underline-offset: 5px;
}

.hero-media,
.image-frame,
.gallery-card {
  margin: 0;
}

.hero-media,
.image-frame {
  position: relative;
}

.hero-media::before,
.image-frame::before {
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border-radius: 8px;
  background: var(--ember);
  content: "";
}

.hero-media::after,
.image-frame::after {
  position: absolute;
  inset: -16px 16px 16px -16px;
  z-index: -1;
  border: 2px solid rgba(255, 247, 230, 0.28);
  border-radius: 8px;
  content: "";
}

.hero-media img,
.image-frame img {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

figcaption:empty {
  display: none;
}

.testimonial-name,
.testimonial cite,
.testimonials cite,
blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-family: var(--label-font);
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 900;
}

.section {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.testimonials-section {
  display: flex;
  justify-content: center;
}

.testimonials-copy {
  width: min(100%, 860px);
  text-align: center;
}

body[data-page="home"] .section {
  background: var(--paper);
}

.intro {
  border-top: 1px solid rgba(201, 173, 126, 0.78);
  border-bottom: 1px solid rgba(201, 173, 126, 0.78);
  background: rgba(255, 250, 240, 0.72);
}

.intro > p {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  line-height: 1.25;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 72px);
  margin-bottom: 34px;
}

.feature-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.event-card,
.contact-form,
.embed-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 16px 46px rgba(26, 20, 16, 0.07);
}

.feature,
.event-card {
  min-height: 245px;
  padding: 26px;
}

.feature-number,
.event-date {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--bronze-dark);
  font-family: var(--label-font);
  font-weight: 900;
}

.split-section,
.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 82px);
}

.events-layout-full {
  grid-template-columns: 1fr;
}

.form-section {
  display: grid;
  gap: 28px;
}

.form-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 86px);
}

.form-section > .contact-form {
  max-width: 880px;
  width: 100%;
}

.embed-panel {
  min-height: 460px;
  overflow: hidden;
}

.embed-panel iframe {
  width: 100%;
  min-height: 640px;
  border: 0;
}

.humanitix-panel {
  min-height: 720px;
  background: var(--surface);
}

.humanitix-widget-frame {
  display: block;
  min-height: 720px;
}

.embed-placeholder {
  display: grid;
  min-height: 460px;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.embed-placeholder p {
  max-width: 42ch;
}

.event-list {
  display: grid;
  gap: 18px;
}

.upcoming-feature-section {
  display: grid;
  gap: clamp(30px, 5vw, 68px);
}

.upcoming-events-copy {
  max-width: 760px;
}

.featured-event-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 0.72fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 52px);
}

.featured-event-card img {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.featured-event-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 46px rgba(26, 20, 16, 0.07);
}

.event-meta {
  margin-bottom: 8px;
  color: var(--bronze-dark);
  font-family: var(--label-font);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.events-single-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 86px);
}

.events-single-copy {
  max-width: 760px;
}

.event-offerings {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 42px);
}

.event-offerings article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 46px rgba(26, 20, 16, 0.07);
}

.event-offerings h2 {
  margin-bottom: 10px;
  font-size: clamp(1.32rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.event-offerings p:last-of-type {
  margin-bottom: 0;
}

.event-offerings .button {
  margin-top: 18px;
}

.events-single-image {
  margin: 0;
}

.events-single-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.upcoming-poster-section {
  padding-top: clamp(72px, 9vw, 116px);
  padding-bottom: clamp(72px, 9vw, 116px);
}

.events-poster-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
}

.events-poster-layout > img {
  aspect-ratio: 3 / 4;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.poster-events {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.poster-events article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 46px rgba(26, 20, 16, 0.07);
}

.poster-events h3,
.poster-events p {
  margin-bottom: 0;
}

.poster-events .button {
  margin-top: 18px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(26, 20, 16, 0.07);
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  margin: 0;
  padding: 22px;
}

.gallery-card p {
  margin-bottom: 0;
}

.miniatures-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 86px);
}

.miniatures-copy {
  max-width: 760px;
}

.miniature-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 14px;
}

.miniature-feature {
  color: inherit;
  text-decoration: none;
}

.miniature-feature {
  display: block;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.miniature-feature.lead {
  grid-row: span 2;
  min-height: 620px;
}

.miniature-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.miniature-feature:hover img,
.miniature-feature:focus-visible img {
  transform: scale(1.025);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 52px);
  background: rgba(10, 14, 12, 0.86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 86vh;
  border: 1px solid rgba(255, 247, 230, 0.42);
  border-radius: 8px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 247, 230, 0.42);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.92);
  color: var(--green);
  cursor: pointer;
  font-family: var(--label-font);
  font-weight: 900;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 230, 0.42);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.92);
  color: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--green);
  border-left: 3px solid var(--green);
  content: "";
}

.lightbox-arrow-previous {
  left: clamp(14px, 3vw, 34px);
}

.lightbox-arrow-previous::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.lightbox-arrow-next {
  right: clamp(14px, 3vw, 34px);
}

.lightbox-arrow-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.7fr) auto;
  align-items: end;
  gap: 28px;
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(56px, 7vw, 86px);
  background: var(--green);
}

.cta-band h2,
.cta-band .eyebrow {
  color: #fff8e8;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 248, 232, 0.74);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 26px;
}

label {
  color: var(--green);
  font-family: var(--label-font);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.form-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(216, 195, 153, 0.78);
  background: rgba(255, 250, 240, 0.88);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .header-social {
    margin-top: -4px;
  }
}

@media (max-width: 900px) {
  .hero,
  .about-hero,
  .form-hero,
  .miniatures-hero,
  .events-single-section,
  .section-heading,
  .split-section,
  .events-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .image-frame,
  .about-hero .image-frame {
    max-width: 560px;
    justify-self: start;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .featured-event-card {
    grid-template-columns: 1fr;
  }

  .events-poster-layout {
    grid-template-columns: 1fr;
  }

  .miniature-feature.lead {
    min-height: 440px;
  }

  .cta-band {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .nav-links {
    width: 100%;
    gap: 6px 14px;
  }

  .nav-links a {
    padding: 6px 0;
  }

  .hero,
  .page-hero {
    padding-top: 36px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .miniature-feature-grid {
    grid-template-columns: 1fr;
  }

  .miniature-feature,
  .miniature-feature.lead {
    min-height: 380px;
  }

  .featured-event-card img {
    height: auto;
  }
}
