:root {
  --ink: #17251f;
  --muted: #5b6861;
  --cream: #f7f3e8;
  --paper: #fffdf7;
  --green: #1c5a43;
  --lime: #d7ec75;
  --orange: #e76f42;
  --line: rgba(23, 37, 31, 0.14);
  --shadow: 0 24px 70px rgba(29, 55, 42, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

p { margin: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--orange);
  font: 700 0.75rem/1 'Manrope', sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.eyebrow-dash {
  width: 42px;
  height: 3px;
  background: var(--lime);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }

.btn-accent { background: var(--lime); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--white, #fff); }

.btn-whatsapp { background: #25d366; color: #06301b; }

.btn-discord { background: #5865f2; color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* Header */
.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 1rem/1 'Manrope', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a:hover { color: var(--lime); }

/* Hero */
.hero {
  min-height: 790px;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #fff;
  background: #17382c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.01);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 30, 22, 0.82) 0%, rgba(9, 30, 22, 0.46) 38%, rgba(9, 30, 22, 0.04) 76%),
    linear-gradient(180deg, rgba(9, 30, 22, 0.55), transparent 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 90%);
  padding: 155px 0 70px;
}

.hero h1 {
  max-width: 10ch;
  margin-top: 24px;
  font-size: clamp(3.4rem, 7.2vw, 6.35rem);
}

.hero-sub {
  max-width: 570px;
  margin: 28px 0 38px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.hero-vertical-label {
  position: absolute;
  z-index: 1;
  top: 49%;
  right: -56px;
  transform: rotate(90deg);
  font: 700 0.73rem/1 'Manrope', sans-serif;
  letter-spacing: 0.24em;
  opacity: 0.7;
  white-space: nowrap;
}

/* Sections */
.section { padding: 110px 0; }

.section-about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 100px;
  align-items: start;
  margin-bottom: 64px;
}

.about-grid h2, .events-head h2 {
  max-width: 10ch;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.about-copy p:first-child {
  margin: 4px 0 26px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.about-copy p:last-child {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 30px 28px 0 0;
}

.feature + .feature {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.feature h3 {
  margin-bottom: 10px;
  font: 700 1.05rem/1.2 'Manrope', sans-serif;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-events { background: var(--paper); }

.events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.events-sub {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.65;
}

.event-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.event-card {
  min-height: 430px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  padding: 38px;
}

.event-card-dark { color: #fff; background: var(--green); }

.event-card-light { background: var(--lime); color: var(--ink); }

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.event-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 1.6rem;
}

.event-card-light .event-icon { background: rgba(23, 37, 31, 0.09); }

.event-index {
  font: 700 0.8rem/1 'Manrope', sans-serif;
  opacity: 0.55;
}

.event-card h3 {
  max-width: 7ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.event-card p {
  max-width: 400px;
  opacity: 0.8;
  line-height: 1.6;
}

.event-listing {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr auto;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(29, 55, 42, 0.08);
}

.event-date {
  display: flex;
  flex-direction: column;
  color: var(--orange);
  font: 800 1.15rem/1.2 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-details h4 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.event-location {
  margin-bottom: 10px;
  color: var(--green);
  font: 700 0.78rem/1.3 'Manrope', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-description {
  color: var(--muted);
  line-height: 1.6;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-status {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.calendar-status.is-error {
  color: var(--orange);
}

.calendar-subscribe {
  margin-top: 24px;
  text-align: center;
}

/* Banner */
.banner {
  padding: 100px 0;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.banner h2 {
  max-width: 950px;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4.3rem);
}

.accent-text { color: var(--lime); }

/* Community */
.section-community { background: var(--cream); }

.community-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-radius: 34px;
  padding: 70px;
  color: #fff;
  background: var(--orange);
  box-shadow: var(--shadow);
}

.community-left h2 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.community-left .eyebrow { color: #fff3d1; }

.community-right p {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.community-links {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.community-links-secondary { margin-top: 13px; }

.community-links .btn-outline-light { border-color: rgba(255, 255, 255, 0.5); }

/* Footer */
.site-footer {
  padding: 38px 0;
  color: var(--muted);
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.9rem;
}

.footer-brand { color: var(--ink); }

.back-to-top:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 1180px); }

  .header-inner { height: 74px; }

  .main-nav { display: none; }

  .header-cta { display: none; }

  .hero { min-height: 710px; }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 30, 22, 0.82), rgba(9, 30, 22, 0.13)),
      linear-gradient(180deg, rgba(9, 30, 22, 0.62), transparent 62%);
  }

  .hero-bg { object-position: 38% center; }

  .hero-vertical-label { display: none; }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-bottom: 60px;
  }

  .section { padding: 78px 0; }

  .about-grid, .event-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid { grid-template-columns: 1fr; }

  .feature, .feature + .feature {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .events-head { display: block; }

  .events-sub { margin-top: 22px; }

  .event-card { min-height: 360px; padding: 30px; }

  .event-listing { grid-template-columns: 1fr; gap: 18px; }

  .community-card { display: block; padding: 42px 28px; }

  .footer-inner { display: block; }
  .footer-inner > * + * { margin-top: 10px; }
}
