:root {
  --color-primary: #354a37;
  --color-primary-dark: #223526;
  --color-accent: #f8c611;
  --color-canvas: #fffdf8;
  --color-surface: #ffffff;
  --color-tint: #f4f6f1;
  --color-text: #1f2a21;
  --color-muted: #5d695f;
  --color-border: #d8ded7;
  --color-error: #a61b1b;
  --shadow-card: 0 14px 35px rgba(31, 42, 33, .08);
  --radius: 14px;
  --header-height: 88px;
}

html { scroll-padding-top: var(--header-height); }
body { background: var(--color-canvas); color: var(--color-text); line-height: 1.6; }
a, button, input, select, textarea { transition: box-shadow .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease; }
:focus-visible { outline: 3px solid var(--color-accent) !important; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999; padding: .75rem 1rem;
  background: var(--color-primary-dark); color: #fff; transform: translateY(-160%);
}
.skip-link:focus { color: #fff; transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-height); min-height: var(--header-height); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--color-border); box-shadow: 0 3px 18px rgba(31,42,33,.06); }
.site-header__inner { width: 100%; height: var(--header-height); min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0 1.5rem; }
.site-header .logo { display: block; width: auto; height: auto; max-width: 108px; max-height: 64px; margin: 0; object-fit: contain; }
.main-menu > ul { margin: 0; padding: 0; gap: .15rem; }
.main-menu > ul > li { margin: 0; }
.main-menu > ul > li > a { padding: .7rem .65rem; font-size: .88rem; line-height: 1.2; letter-spacing: .015em; white-space: nowrap; }
.main-menu > ul > li.active > a { border-width: 0 0 3px; }
.menu-right { min-width: max-content; align-items: center; gap: .75rem; margin: 0 0 0 auto !important; }
.menu-right .btn-primary, .hero-panel .btn-primary, .consent-banner .btn-primary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1.15rem;
  border: 2px solid var(--color-accent); border-radius: 999px; background: var(--color-accent) !important;
  color: var(--color-primary-dark); font-weight: 700; text-decoration: none;
}
.btn-primary::after { content: none; }

.hero { margin-top: 0; }
.hero-panel { position: relative; min-height: clamp(500px, 68vh, 700px); display: flex; align-items: center; overflow: hidden; background: var(--color-primary-dark); }
.hero-panel__media, .hero-panel__overlay { position: absolute; inset: 0; }
.hero-panel__media img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.hero-panel__overlay { background: linear-gradient(90deg, rgba(21,39,25,.9) 0%, rgba(21,39,25,.67) 48%, rgba(21,39,25,.12) 100%); }
.hero-panel__content { position: relative; z-index: 1; color: #fff; padding-top: 5rem; padding-bottom: 5rem; }
.hero-panel h1 { max-width: 760px; margin: .4rem 0 1.1rem; color: #fff; font-family: "myfont_bold"; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .98; }
.hero-panel__eyebrow, .section-kicker { color: var(--color-accent); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-panel__lead { max-width: 620px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-panel .btn-outline-light { display: inline-flex; align-items: center; border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; }

.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section--tinted { background: var(--color-tint); }
.page-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--color-primary); color: #fff; }
.page-hero h1 { margin: .25rem 0 0; color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); }
.page-hero__lead { max-width: 720px; margin: 1rem 0 0; font-size: 1.15rem; }
.page-hero--image { position: relative; min-height: clamp(360px, 52vw, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__media, .page-hero__overlay { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { background: linear-gradient(0deg, rgba(22,42,27,.9), rgba(22,42,27,.12) 75%); }
.page-hero__content { position: relative; z-index: 1; }
.page-hero-artwork { position: relative; height: clamp(280px, 24vw, 340px); overflow: hidden; background: var(--color-primary); }
.page-hero-artwork picture, .page-hero-artwork img { display: block; width: 100%; height: 100%; }
.page-hero-artwork img { object-fit: cover; object-position: center 52%; }
.gallery-page { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  height: auto !important;
  margin: 0 !important;
}
.photo-grid .photo-grid__item {
  position: static !important;
  display: block;
  width: auto !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-tint);
  box-shadow: var(--shadow-card);
}
.photo-grid .photo-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.photo-grid .photo-grid__item:hover img { transform: scale(1.025); filter: brightness(.94); }
.photo-grid .photo-grid__item:focus-visible { outline-offset: 4px; }
.photo-dialog { width: min(94vw, 1200px); max-width: none; height: min(92vh, 900px); max-height: none; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #111; color: #fff; }
.photo-dialog::backdrop { background: rgba(7, 15, 9, .88); }
.photo-dialog figure { width: 100%; height: 100%; margin: 0; display: grid; place-items: center; }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(100% - 3rem); width: auto; height: auto; object-fit: contain; }
.photo-dialog figcaption { position: absolute; inset: auto 4rem .75rem; text-align: center; }
.photo-dialog button { position: absolute; z-index: 2; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.photo-dialog__close { top: .75rem; right: .75rem; }
.photo-dialog__previous { left: .75rem; top: 50%; transform: translateY(-50%); }
.photo-dialog__next { right: .75rem; top: 50%; transform: translateY(-50%); }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.feature-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.card-cover-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.card-cover-link:hover { color: inherit; text-decoration: none; }
.feature-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-tint); }
.feature-card__media img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; opacity: 1; transform: none; transition: transform .25s ease; }
.feature-card:hover .feature-card__media img { opacity: 1; transform: scale(1.025); }
.feature-card__content { position: static; padding: 1.25rem 1.25rem .5rem; color: var(--color-text); }
.feature-card__content h2 { margin: 0; color: var(--color-primary); font-size: clamp(1.35rem, 2vw, 1.8rem); border: 0; }
.feature-card__content p { margin: .6rem 0 0; color: var(--color-muted); opacity: 1; }
.feature-card__action { margin: auto 1.25rem 1.25rem; padding-top: .75rem; color: var(--color-primary); font-weight: 800; }
.person-role { margin: .25rem 0 0 !important; color: inherit; opacity: 1 !important; }
.people-card { height: 100%; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); text-align: left; }
.people-card__media { aspect-ratio: 4 / 4.5; overflow: hidden; background: var(--color-tint); }
.people-card__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; filter: none !important; opacity: 1; }
.people-card__content { padding: 1.25rem; }
.people-card__content h3 { margin: 0; color: var(--color-primary); font-size: 1.4rem; }
.people-card__content .person-role { color: var(--color-muted); font-weight: 700; line-height: 1.4; }
.people-card__description { margin: 1rem 0 0 !important; color: var(--color-text); line-height: 1.55; opacity: 1 !important; }
.image-card-grid > ul { align-items: stretch; }
.image-card-grid > ul > li { height: 100%; }
.faq-item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #fff; color: var(--color-text); }
.faq-item summary { position: relative; padding: 1.1rem 3.25rem 1.1rem 1.25rem; cursor: pointer; font-size: 1.08rem; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--color-primary); font-size: 1.6rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 1.25rem 1.25rem; }
.faq-item__answer p { margin: 0; opacity: 1; }
.error-page { min-height: 60vh; display: grid; place-items: center; padding: 4rem 0; text-align: center; }
.error-page h1 { color: var(--color-primary); font-size: clamp(2.5rem, 6vw, 5rem); }
.error-page p:not(.section-kicker) { max-width: 620px; margin: 1rem auto 2rem; }
.story-list { overflow: hidden; }
.guest-story {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--color-border);
}
.guest-story:nth-child(even) .guest-story__media { order: 2; }
.guest-story__media { min-width: 0; overflow: hidden; border-radius: 12px; background: var(--color-tint); }
.guest-story__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}
.guest-story__content { min-width: 0; overflow-wrap: anywhere; }
.guest-story__content .title { margin: 0 0 1.25rem; color: var(--color-primary); font-size: clamp(1.8rem, 3.5vw, 3.5rem); line-height: 1.08; }
.guest-story__content .rich-text, .guest-story__content p { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.intro .title { margin-bottom: 1.5rem; color: var(--color-primary); font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; }
.intro p { margin-bottom: 1rem; }
.benefits h2 { margin-bottom: 2rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit-card { padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-card); }
.benefit-card > span { color: var(--color-accent); font-size: 1.6rem; font-weight: 900; }
.benefit-card h3 { margin: .65rem 0; color: var(--color-primary); }
.footer-brand { font-family: "myfont_bold"; font-size: 1.5rem; font-weight: 800; }

.consent-banner { position: fixed; inset: auto 0 0; z-index: 100; padding: 1rem; background: rgba(25,38,28,.98); color: #fff; }
.consent-banner__inner { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.consent-banner h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.consent-banner p { margin: .25rem 0 0; }
.consent-banner a { color: #fff; text-decoration: underline; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; flex-shrink: 0; }

.registration-page { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.registration-header { max-width: 760px; margin-bottom: 2.5rem; }
.registration-section { margin-bottom: 1.5rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.registration-section h2 { margin-bottom: .4rem; }
.form-field { margin-bottom: 1rem; }
.form-field label, .form-field .help-text { display: block; margin-bottom: .35rem; color: var(--color-text); font-weight: 700; }
.form-field input:not([type=checkbox]), .form-field select, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid #879489; border-radius: 8px; padding: .7rem .8rem; background: #fff; }
.form-field textarea { min-height: 130px !important; }
.form-field .errorlist { margin: .35rem 0; padding: 0; color: var(--color-error); font-weight: 700; list-style: none; }
.participant-form { border: 1px solid var(--color-border) !important; border-radius: 10px !important; background: var(--color-tint) !important; }

@media (max-width: 767.98px) {
  :root { --header-height: 72px; }
  .site-header, .site-header__inner { min-height: var(--header-height); }
  .hero-panel { min-height: 620px; align-items: flex-end; }
  .hero-panel__overlay { background: linear-gradient(0deg, rgba(21,39,25,.94), rgba(21,39,25,.3)); }
  .hero-panel__content { padding-bottom: 3.5rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .consent-banner__inner { align-items: stretch; flex-direction: column; gap: 1rem; }
  .consent-banner__actions, .consent-banner__actions .btn { width: 100%; }
  .guest-story { grid-template-columns: 1fr; gap: 1.5rem; }
  .guest-story:nth-child(even) .guest-story__media { order: 0; }
  .feature-card-grid { grid-template-columns: 1fr; }
  .page-hero-artwork { height: clamp(300px, 78vw, 430px); }
  .page-hero-artwork img { object-position: center; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1279.98px) {
  .site-header .main-menu { display: none; }
  .site-header .logo-mobile { display: block; margin: 0 !important; }
  .site-header .hamburger { display: inline-flex; align-items: center; justify-content: center; }
}

@media (min-width: 1280px) {
  .site-header .main-menu { display: block; min-width: 0; }
  .site-header .logo-mobile, .site-header .hamburger { display: none !important; }
  .site-header__inner { max-width: 1540px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
