:root {
  --toasty: #d9a883;
  --espresso-foam: #a98b62;
  --mocha-latte: #956643;
  --cold-brew: #623528;
  --espresso-noir: #2a2018;
  --canvas: #f7f2ed;
  --panel: #ffffff;
  --panel-soft: #f0e6da;
  --text: #2a2018;
  --text-muted: rgba(42, 32, 24, 0.68);
  --edge: rgba(42, 32, 24, 0.1);
  --radius-xl: 44px;
  --radius-lg: 28px;
  --radius: 16px;
  --shadow-soft: 0 40px 80px rgba(29, 17, 9, 0.12);
}

[data-theme="dark"] {
  --espresso-noir: #1b140f;
  --canvas: #120b08;
  --panel: #20120d;
  --panel-soft: #2c1911;
  --text: #f9f0e6;
  --text-muted: rgba(249, 240, 230, 0.7);
  --edge: rgba(249, 240, 230, 0.08);
  --shadow-soft: 0 40px 80px rgba(6, 3, 2, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(149, 102, 67, 0.15), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(98, 53, 40, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(247, 242, 237, 1), rgba(242, 234, 225, 1));
  line-height: 1.7;
}

[data-theme="dark"] body {
  background: radial-gradient(circle at 10% 20%, rgba(149, 102, 67, 0.15), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(98, 53, 40, 0.18), transparent 35%),
    linear-gradient(135deg, #0c0704, #1b120c 55%, #120905);
}

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

a {
  color: var(--toasty);
}

a:hover,
a:focus-visible {
  color: #fff;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 15%, rgba(149, 102, 67, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(217, 168, 131, 0.08), transparent 40%);
  z-index: -1;
}

.page {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem) 4rem;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 1rem;
  z-index: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  border: 1px solid var(--edge);
  background: var(--panel-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  cursor: pointer;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 168, 131, 0.4), rgba(98, 53, 40, 0.45));
  display: grid;
  place-items: center;
  color: var(--canvas);
}

.toggle-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--edge);
}

.brand p {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-muted);
}

.cta {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.cta.ghost {
  border-color: var(--toasty);
  color: var(--toasty);
}

.cta.filled {
  background: var(--cold-brew);
  color: #fff;
  border-color: var(--cold-brew);
}

.cta.link {
  color: var(--toasty);
  border-color: transparent;
  padding-left: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.hero-copy {
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-soft);
}

.badge {
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(217, 168, 131, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--toasty);
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 1rem 0 0.5rem;
}

.hero-copy > p {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stats article {
  flex: 1 1 120px;
  min-width: 120px;
}

.stat {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--toasty);
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.hero-card,
.hero-image {
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-card {
  padding: 2rem;
  box-shadow: none;
  background-size: 100% 30%;
  background-position: bottom;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.hero-card small {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--edge);
}

.hero-image {
  min-height: 320px;
  background: linear-gradient(120deg, rgba(149, 102, 67, 0.3), rgba(98, 53, 40, 0.65)),
    url("public/nico-smit-NFoerQuvzrs-unsplash.jpg") center/cover;
}

.hero-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  box-shadow: var(--shadow-soft);
}

.section {
  margin: 4rem 0;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-heading h2 {
  margin-bottom: 0.6rem;
}

.section-heading p {
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--toasty);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.about-grid article {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--panel-soft);
  min-height: 180px;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.committee-grid article {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--panel-soft);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  position: relative;
}

.committee-grid img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
}

.committee-grid h3 {
  margin: 1rem 0 0.3rem;
}

.committee-grid p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.view-pill {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(247, 242, 237, 0.85);
  color: var(--espresso-noir);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid button {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid button::after {
  content: "View";
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(247, 242, 237, 0.85);
  color: var(--espresso-noir);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.gallery-grid button:hover img,
.gallery-grid button:focus-visible img {
  transform: scale(1.05);
}

.program-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.program-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  padding: 1.5rem;
  background: var(--panel-soft);
}

.program-card img {
  width: 100%;
  border-radius: var(--radius);
  height: 260px;
  object-fit: cover;
}

.contact-shell {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-grid article {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  padding: 1rem;
  background: var(--panel-soft);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(217, 168, 131, 0.18);
  display: grid;
  place-items: center;
  color: var(--toasty);
  font-size: 1.1rem;
}

.icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-grid article p {
  margin: 0;
  color: var(--text-muted);
}

.contact-grid article a {
  margin: 0;
  color: var(--text-muted);
  display: inline-block;
  white-space: nowrap;
}

.contact-cta {
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  padding: 1.5rem;
  background: var(--panel-soft);
}

.site-footer {
  margin: 3rem 0 1rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer img {
  height: 110px;
  width: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 6, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 5;
}

.lightbox.active {
  display: flex;
}

.lightbox-frame {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-frame img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 4px solid rgba(249, 240, 230, 0.6);
}

.lightbox-caption {
  color: var(--text);
}

.nav-btn,
.lightbox-close {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}
