:root {
  --sidebar: 320px;
  --ink: #404040;
  --muted: #626262;
  --line: #d7d7d7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  text-decoration: none;
}

.brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: grayscale(1);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.25px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: #333;
}

.site-nav {
  margin: auto 0;
  width: 100%;
  padding: 0 28px;
  text-align: center;
}

.site-nav a {
  display: block;
  padding: 8px 4px;
  color: #5e5e5e;
  font-size: 16px;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a.active { color: #111; }
.site-nav a.active { font-weight: 700; }

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: .06em;
}

.language-switcher a { display: inline; padding: 2px; }
.language-switcher .current { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.language-switcher .pending { opacity: .45; cursor: default; }

.cookies {
  margin-bottom: 22px;
  color: #575757;
  font-size: 12px;
}

.page { margin-left: var(--sidebar); min-height: 100vh; }

.home-hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), url('./home-hero.jpg') center / cover no-repeat;
  display: grid;
  place-items: center;
  padding: 56px;
  color: #fff;
  text-align: center;
}

.home-copy { max-width: 980px; text-shadow: 0 2px 10px rgba(0,0,0,.42); }

.home-kicker {
  margin: 0 0 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.home-title {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px 0 38px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
}

.home-subtitle::before,
.home-subtitle::after { content: ''; width: 42px; height: 2px; background: currentColor; flex: 0 0 auto; }

.hero-button {
  display: inline-block;
  min-width: 310px;
  padding: 18px 28px;
  border-radius: 3px;
  background: rgba(255,255,255,.78);
  color: #3b3b3b;
  font-size: 18px;
  text-decoration: none;
  text-shadow: none;
  transition: background .2s ease;
}

.hero-button:hover { background: #fff; }

.inner-hero {
  height: 334px;
  background: url('./olympus-autumn-clean.jpg') center / cover no-repeat;
  display: grid;
  place-items: center;
  color: #fff;
}

.inner-hero h1,
.inner-hero .hero-heading { margin: 0; font-size: clamp(2.7rem, 4vw, 4.2rem); font-weight: 400; }

.content {
  width: min(980px, calc(100% - 72px));
  margin: 66px auto 100px;
  color: #626262;
}

.page-heading { margin: 0 0 38px; color: #3c3c3c; font-size: 2rem; text-align: center; }
.page-heading::after { content: ''; display: block; width: 64px; height: 2px; margin: 9px auto 0; background: #aaa; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: start;
}

.intro-grid img { width: 100%; display: block; }
.intro-grid p:first-child { margin-top: -5px; }
.content p { margin: 0 0 20px; }

.section-title { margin: 38px 0 12px; color: #3d3d3d; font-size: 2rem; font-weight: 400; }
.section-title::after { content: ''; display: block; width: 64px; height: 2px; margin-top: 9px; background: #aaa; }
.board { white-space: pre-line; }

.contact-hero { place-items: stretch; }

.contact-content {
  width: min(980px, calc(100% - 72px));
  margin: 66px auto 100px;
  color: #626262;
}

.contact-heading {
  margin: 0 0 18px;
  color: #3c3c3c;
  font-size: 2.25rem;
  font-weight: 400;
}

.contact-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 9px;
  background: #aaa;
}

.contact-content p { margin: 0 0 24px; }

.contact-details {
  margin: 0 0 24px;
  font-style: normal;
  line-height: 1.55;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover { text-decoration: underline; }

.detail-content {
  width: min(800px, calc(100% - 72px));
  margin: 64px auto 100px;
  color: #626262;
}

.detail-wide { width: min(900px, calc(100% - 72px)); }

.detail-intro {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: start;
}

.detail-intro img { width: 100%; display: block; }
.detail-intro p:first-child { margin-top: -5px; }

.detail-heading {
  margin: 0 0 34px;
  color: #3c3c3c;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
}

.detail-heading::after,
.subheading::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: #aaa;
}

.detail-heading::after { margin: 9px auto 0; }

.subheading {
  margin: 34px 0 12px;
  color: #3d3d3d;
  font-size: 1.85rem;
  font-weight: 400;
}

.subheading::after { margin-top: 9px; }

.minor-heading {
  margin: 28px 0 12px;
  color: #777;
  font-size: 1.25rem;
  font-weight: 400;
}

.detail-content p { margin: 0 0 20px; }

.detail-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 30px;
}

.detail-list li::before {
  content: '›';
  position: absolute;
  left: 12px;
}

.reference-gallery {
  display: block;
  width: min(100%, 805px);
  height: auto;
  margin: 24px auto 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 46px;
  margin-top: 34px;
}

.activity-card h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 12px;
  color: #4a4a4a;
  font-size: 1.15rem;
}

.activity-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 7px;
  border: 1px solid #d8d8d3;
  border-radius: 50%;
  background: #f7f7f4;
  fill: none;
  stroke: #555;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-card p,
.activity-card ul { margin-bottom: 0; }

.photo-strip {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 24px;
}

.project-content { width: min(760px, calc(100% - 72px)); }

.village-content { width: min(980px, calc(100% - 72px)); }

.village-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 38px;
  align-items: start;
}

.village-intro img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.history-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.history-list li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 28px;
}

.history-list li::before {
  content: '›';
  position: absolute;
  left: 8px;
  color: #777;
}

.gallery-title {
  margin: 50px 0 22px;
  color: #3d3d3d;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
}

.gallery-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 9px auto 0;
  background: #aaa;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: #eee;
  cursor: zoom-in;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s ease;
}

.gallery-item:hover::after { background: rgba(0,0,0,.16); }

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 36px 72px;
  border: 0;
  background: rgba(10,10,10,.94);
  color: #fff;
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
}

.lightbox::backdrop { background: rgba(0,0,0,.72); }

.lightbox figure {
  margin: 0;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox figure img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox figcaption { margin-top: 10px; color: #ddd; font-size: 14px; }

.lightbox-counter {
  position: fixed;
  top: 14px;
  left: 18px;
  font-size: 14px;
}

.lightbox-close {
  position: fixed;
  top: 8px;
  right: 12px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  width: 44px;
  height: 60px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar {
    width: 100%;
    height: 78px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #eee;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 18px;
  }
  .brand { flex-direction: row; gap: 10px; margin: 0; }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 14px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    display: none;
    margin: 0;
    padding: 18px 24px 26px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .site-nav.open { display: block; }
  .cookies { display: none; }
  .page { padding-top: 78px; }
  .home-hero { min-height: calc(100vh - 78px); padding: 36px 22px; }
  .home-kicker { font-size: clamp(1.55rem, 7vw, 2.35rem); }
  .home-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .home-subtitle { gap: 10px; }
  .home-subtitle::before, .home-subtitle::after { width: 24px; }
  .hero-button { min-width: 0; width: min(100%, 310px); }
  .inner-hero { height: 240px; }
  .content { width: min(100% - 38px, 720px); margin-top: 42px; }
  .contact-content { width: min(100% - 38px, 720px); margin-top: 42px; }
  .detail-content, .project-content { width: min(100% - 38px, 720px); margin-top: 42px; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .village-intro { grid-template-columns: 1fr; gap: 28px; }
  .detail-intro { grid-template-columns: 1fr; gap: 28px; }
  .activities-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .lightbox { padding: 52px 10px 20px; }
  .lightbox[open] { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .lightbox figure { height: calc(100vh - 72px); }
  .lightbox-nav { width: 36px; }
}

@media (max-width: 480px) {
  .brand-name { max-width: 155px; }
  .home-subtitle { font-size: 1.05rem; }
  .inner-hero h1, .inner-hero .hero-heading { font-size: 2.2rem; }
  .page-heading, .section-title { font-size: 1.75rem; }
  .contact-heading { font-size: 1.75rem; }
  .detail-heading, .subheading { font-size: 1.75rem; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: min(620px, calc(100vw - 48px));
  padding: 22px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
  box-shadow: 0 12px 38px rgba(0,0,0,.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-copy { flex: 1; }
.cookie-banner strong { display: block; margin-bottom: 7px; font-size: 1.05rem; color: #333; }
.cookie-banner p { margin: 0 0 8px; font-size: .92rem; line-height: 1.55; }
.cookie-banner a, .cookie-settings a { color: #444; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-button { min-height: 42px; padding: 9px 15px; border: 1px solid #555; font: inherit; cursor: pointer; }
.cookie-button-primary { background: #3e3e3e; color: #fff; }
.cookie-button-secondary { background: #fff; color: #3e3e3e; }
.cookie-button:focus-visible, .cookie-settings-close:focus-visible { outline: 3px solid #777; outline-offset: 2px; }
.cookie-settings { width: min(570px, calc(100vw - 32px)); padding: 0; border: 0; color: #444; box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.cookie-settings::backdrop { background: rgba(0,0,0,.58); }
.cookie-settings form { position: relative; padding: 30px; }
.cookie-settings h2 { margin: 0 40px 10px 0; font-size: 1.7rem; font-weight: 400; color: #333; }
.cookie-settings p { margin: 0 0 22px; line-height: 1.6; }
.cookie-settings-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid #e3e3e3; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option small { margin-top: 5px; line-height: 1.45; color: #686868; }
.cookie-option input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: #444; }
.cookie-settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid #e3e3e3; }
.cookie-policy h2 { margin-top: 32px; }
.cookie-policy table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; }
.cookie-policy th, .cookie-policy td { padding: 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.cookie-policy th { background: #f5f5f5; font-weight: 600; }

@media (max-width: 680px) {
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px; align-items: stretch; flex-direction: column; gap: 16px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .cookie-button { flex: 1 1 140px; }
  .cookie-settings form { padding: 24px 20px; }
  .cookie-settings-actions { align-items: stretch; flex-direction: column; }
  .cookie-policy { overflow-wrap: anywhere; }
  .cookie-policy table { font-size: .9rem; }
}
