:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #20201d;
  --muted: #6c6a61;
  --line: #dedbd2;
  --sage: #5f7158;
  --clay: #b46f56;
  --mist: #e9efec;
  --hero-text-muted: rgba(255, 255, 255, 0.78);
  --hero-text-soft: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 50px rgba(32, 32, 29, 0.1);
  --max: 1160px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-root: 17px;
  --text-root-mobile: 16px;
  --text-label: 0.78rem;
  --text-small: 0.9rem;
  --text-body: 1rem;
  --text-lead: 1.08rem;
  --text-card-title: 1.1rem;
  --text-event-title: 1.7rem;
  --text-section-title: 2.3rem;
  --text-page-title: 3.4rem;
  --text-hero-title: 4.6rem;
  --text-page-title-mobile: 2.55rem;
  --text-section-title-mobile: 1.85rem;
  --leading-tight: 1.14;
  --leading-body: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-root);
  line-height: var(--leading-body);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 219, 210, 0.72);
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: var(--text-small);
  text-decoration: none;
  letter-spacing: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: var(--text-small);
}

.nav a {
  text-decoration: none;
}

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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  font-size: var(--text-small);
  line-height: 1;
}

.language-switcher a {
  min-width: 38px;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.language-switcher a:hover {
  color: var(--ink);
}

.language-switcher a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  min-height: 78svh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(rgba(16, 18, 15, 0.2), rgba(16, 18, 15, 0.58)),
    var(--hero-image) center / cover no-repeat;
  color: var(--white);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px 24px 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--hero-text-muted);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: var(--text-hero-title);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--hero-text-soft);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: 700;
  text-decoration: none;
}

.button--light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.section {
  padding: 84px 24px;
}

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

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-label {
  margin: 0;
  color: var(--sage);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.page-body h2 {
  margin: 0 0 18px;
  font-size: var(--text-section-title);
  line-height: var(--leading-tight);
  letter-spacing: 0;
}

.page-body h2:not(:first-child) {
  margin-top: 56px;
}

.page-body p,
.page-body li {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.page-body ul {
  padding-left: 1.2em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-card,
.event-card,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: var(--text-card-title);
  line-height: var(--leading-tight);
}

.feature-card p,
.feature-card li {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.feature-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.feature-card li + li {
  margin-top: 0.35rem;
}

.event-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  box-shadow: var(--shadow);
}

.event-card__media {
  min-height: 330px;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  padding: 38px;
}

.meta {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 14px;
  font-size: var(--text-event-title);
  line-height: 1.18;
}

.event-card p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.read-link {
  color: var(--sage);
  font-weight: 700;
}

.page-hero {
  background: var(--paper);
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  font-size: var(--text-page-title);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--text-lead);
}

.page-hero__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-body {
  max-width: 820px;
  margin: 0 auto;
}

.events-list {
  display: grid;
  gap: 24px;
}

.events-list .event-card {
  box-shadow: none;
}

.events-list .event-card__media {
  min-height: 260px;
}

.events-list .event-card__body {
  padding: 32px;
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article__image {
  margin: 0 0 44px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.article__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 48px;
}

.event-gallery__item {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.event-gallery--portrait .event-gallery__item {
  aspect-ratio: 3 / 4;
}

.event-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-panel {
  padding: 26px;
  background: var(--mist);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  color: var(--muted);
  font-size: var(--text-small);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: var(--text-page-title);
  }

  .intro-grid,
  .event-card,
  .page-hero__inner {
    grid-template-columns: 1fr;
  }

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

  .page-hero__inner {
    padding-top: 62px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: var(--text-root-mobile);
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
    gap: 10px;
  }

  .site-header__actions {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .language-switcher {
    flex: none;
  }

  .hero {
    min-height: 76svh;
  }

  .hero__inner {
    padding: 86px 18px 52px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: var(--text-page-title-mobile);
  }

  .hero__lead {
    font-size: var(--text-body);
  }

  .section {
    padding: 58px 18px;
  }

  .section h2,
  .page-body h2 {
    font-size: var(--text-section-title-mobile);
  }

  .page-hero__inner {
    padding: 50px 18px 40px;
    gap: 30px;
  }

  .event-card__body,
  .events-list .event-card__body {
    padding: 24px;
  }

  .event-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 38px;
  }

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