:root {
  color-scheme: light;
  --cream: #f8f5ed;
  --cream-deep: #f0eadc;
  --white: #fffdf9;
  --ink: #25342d;
  --ink-soft: #627068;
  --green: #4f765f;
  --green-dark: #345443;
  --sage: #dce9de;
  --sage-light: #edf4ed;
  --peach: #efb491;
  --peach-light: #fae7d9;
  --sun: #f4d778;
  --line: #d9ded8;
  --focus: #245f90;
  --display: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --body: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --max-width: 1120px;
  --shadow: 0 18px 50px rgba(55, 76, 64, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::selection { background: var(--sun); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(79, 118, 95, 0.14);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark,
.footer-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}
.brand-name { display: grid; line-height: 1.15; }
.brand-name strong { font-size: 0.98rem; }
.brand-name small { margin-top: 4px; color: var(--ink-soft); font-size: 0.76rem; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--green-dark); }

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 112px) 0;
  background: linear-gradient(135deg, var(--sage-light), var(--cream) 58%, var(--peach-light));
}
.hero-decoration { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; display: block; }
.shape-sun {
  top: -90px;
  right: -54px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(244, 215, 120, 0.62);
}
.shape-leaf-one,
.shape-leaf-two {
  width: 130px;
  height: 230px;
  border-radius: 100% 0 100% 0;
  background: rgba(123, 158, 132, 0.18);
  transform: rotate(28deg);
}
.shape-leaf-one { bottom: -86px; left: 4%; }
.shape-leaf-two { right: 34%; bottom: -138px; transform: rotate(68deg) scale(0.82); }
.welcome-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.65fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.welcome-copy {
  max-width: 470px;
}
.eyebrow,
.panel-label,
.next-label { margin: 0; color: var(--green); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.025em; }
.welcome-copy h1 {
  max-width: 470px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
}
.verse-reference { margin: 0 0 22px; color: var(--green); font-size: 1rem; font-weight: 700; }
.welcome-text { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.65; }
.primary-button,
.action-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding: 11px 20px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.primary-button:hover,
.action-link:hover { background: var(--green); transform: translateY(-1px); }
.next-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 58px);
  border: 2px solid rgba(79, 118, 95, 0.18);
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 24px 65px rgba(55, 76, 64, 0.14);
}
.next-label { display: flex; align-items: center; gap: 9px; }
.next-label span { color: var(--peach); font-size: 0.7rem; }
.hero-meeting {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}
.next-date {
  min-height: 170px;
  display: grid;
  place-content: center;
  border-radius: 26px;
  background: var(--sage);
  color: var(--green-dark);
  text-align: center;
}
.next-date strong {
  font-family: var(--display);
  font-size: 5.2rem;
  line-height: 0.86;
}
.next-date span { margin-top: 5px; font-size: 0.9rem; font-weight: 700; text-transform: capitalize; }
.next-details h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; }
.next-full-date {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-meta { display: grid; gap: 8px; margin-top: 18px; color: var(--ink); font-size: 0.92rem; }
.meta-item { display: flex; gap: 9px; }
.meta-item::before { content: "•"; color: var(--peach); font-weight: 900; }

.agenda-section { padding: clamp(76px, 10vw, 124px) 0; }
.section-heading { max-width: 720px; }
.section-heading h2,
.events-heading h2 {
  margin: 12px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.section-heading > p:last-child,
.events-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  margin-top: clamp(42px, 6vw, 68px);
}
.meeting-list { display: grid; gap: 12px; }
.meeting-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.meeting-row:hover { border-color: rgba(79, 118, 95, 0.42); box-shadow: 0 10px 28px rgba(55, 76, 64, 0.07); transform: translateY(-1px); }
.meeting-date {
  display: grid;
  place-content: center;
  min-height: 68px;
  border-radius: 14px;
  background: var(--sage-light);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: capitalize;
}
.meeting-date strong { display: block; font-family: var(--display); font-size: 2.15rem; line-height: 0.95; }
.meeting-title { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.2; }
.meeting-subline { margin-top: 6px; color: var(--ink-soft); font-size: 0.9rem; }
.meeting-time { color: var(--green-dark); font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.meeting-row.is-convivencia .meeting-date { background: var(--peach-light); color: #845238; }
.location-panel { position: sticky; top: 112px; padding: 30px; border-radius: 24px; background: var(--sage); }
.location-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  font-size: 1.55rem;
}
.location-panel h2 { margin: 10px 0 12px; font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.location-panel > p:last-child { margin: 0; color: var(--ink-soft); }

.events-section { padding: clamp(76px, 10vw, 124px) 0; background: var(--white); border-top: 1px solid var(--line); }
.events-heading { max-width: 720px; margin-bottom: 42px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.event-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-content { padding: 24px; }
.event-date { margin: 0 0 10px; color: var(--green); font-size: 0.88rem; font-weight: 700; }
.event-card h3 { margin: 0; font-family: var(--display); font-size: 1.65rem; line-height: 1.15; }
.event-description { color: var(--ink-soft); }
.event-location { font-size: 0.92rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.event-actions .action-link { margin-top: 8px; }
.action-link:not(.primary) { background: transparent; color: var(--green-dark); }
.empty-state,
.error-state { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.empty-state { display: grid; gap: 4px; }
.empty-state span,
.error-state { font-size: 1.18rem; font-weight: 700; }
.empty-state small { color: var(--ink-soft); font-size: 0.94rem; }

.site-footer { padding: 54px 0; background: var(--green-dark); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.footer-inner > div { display: flex; align-items: center; gap: 15px; }
.footer-mark { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.14); }
.footer-inner p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.noscript { padding: 16px; text-align: center; background: var(--sun); color: var(--ink); }
.skeleton-card { animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.5; } to { opacity: 1; } }

@media (max-width: 880px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-copy { max-width: 720px; }
  .next-card { max-width: 640px; }
  .agenda-layout { grid-template-columns: 1fr; }
  .location-panel { position: static; order: -1; }
  .event-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name small { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.8rem; }
  .nav a:first-child { display: none; }
  .hero-section { padding: 58px 0 68px; }
  .shape-sun { width: 190px; height: 190px; }
  .welcome-copy h1 {
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  line-height: 1.18;
}
  .welcome-text { font-size: 1.03rem; }
  .primary-button { width: 100%; }
  .next-card {
  min-height: auto;
  padding: 28px 24px;
  border-radius: 22px;
}

.hero-meeting {
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 20px;
}

.next-date {
  min-height: 120px;
  border-radius: 18px;
}

.next-date strong {
  font-size: 3.7rem;
}

.next-details h2 {
  font-size: 1.7rem;
}
  .next-full-date { font-size: 0.9rem; }
  .hero-meta { font-size: 0.85rem; }
  .agenda-section,
  .events-section { padding: 68px 0; }
  .section-heading h2,
  .events-heading h2 { font-size: 2.55rem; }
  .meeting-row { grid-template-columns: 68px minmax(0, 1fr); gap: 15px; min-height: 94px; padding: 14px; border-radius: 15px; }
  .meeting-date { min-height: 62px; }
  .meeting-date strong { font-size: 1.9rem; }
  .meeting-time { grid-column: 2; }
  .location-panel { padding: 24px; }
  .event-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@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; }
}
