:root {
  color-scheme: light;
  --blue: #2878c0;
  --blue-dark: #123f6f;
  --blue-deep: #092c4f;
  --green: #b8d030;
  --green-dark: #79950f;
  --green-soft: #f0f6cf;
  --ink: #12212d;
  --muted: #5d6d78;
  --line: #dfe7df;
  --paper: #ffffff;
  --bg: #f7f8f2;
  --mist: #eaf2f5;
  --warm: #f3eee5;
  --shadow: 0 22px 60px rgba(9, 44, 79, .13);
  --shadow-soft: 0 12px 32px rgba(9, 44, 79, .08);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,248,242,.96) 520px),
    var(--bg);
  line-height: 1.58;
}

a { color: var(--blue-dark); text-underline-offset: 4px; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(18, 33, 45, .08);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(9, 44, 79, .04);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand img {
  width: min(238px, 54vw);
  display: block;
}

.mainnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}
.mainnav a:hover,
.mainnav a.is-active {
  background: var(--mist);
  color: var(--blue-dark);
}
.mainnav a.is-active {
  box-shadow: inset 0 -2px 0 var(--green);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 800;
}

main { overflow: hidden; }

.home-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 78px));
  display: grid;
  align-items: end;
  padding: 72px max(20px, calc((100vw - var(--max)) / 2)) 82px;
  background: var(--blue-deep);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.08);
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, rgba(6, 30, 53, .88) 0%, rgba(6, 30, 53, .68) 44%, rgba(6, 30, 53, .24) 100%),
    linear-gradient(180deg, rgba(6, 30, 53, .14), rgba(6, 30, 53, .5));
  z-index: -1;
}
.hero-content {
  max-width: 820px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}
.home-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 2vw, 23px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #101d26;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(91, 113, 17, .18);
}
.button:hover {
  color: #101d26;
  background: #c5dc43;
}
.button.ghost {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .46);
  color: #fff;
  box-shadow: none;
}
.button.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.button.secondary {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--blue-dark);
  box-shadow: none;
}
.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #fafdff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 740px;
  margin-top: 32px;
}
.hero-stats div {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}
.hero-stats span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.section,
.section-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}
.section-band {
  width: 100%;
  background: rgba(255,255,255,.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-band > * {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article,
.quiet-card,
.overview-list article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 63, 111, .11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}
.feature-grid article {
  padding: 26px;
}
.feature-grid article::before,
.quiet-card::before,
.overview-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--blue-dark);
  font-weight: 950;
}
.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}
.feature-grid p { margin: 0; color: var(--muted); }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.topic-grid article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(18, 63, 111, .11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.76)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}
.topic-grid h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 22px;
}
.topic-grid p {
  margin: 0;
  color: var(--muted);
}

.image-story {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: center;
}
.image-story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-copy { padding: 18px 0; }
.story-copy h2 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}
.story-copy p {
  color: var(--muted);
  font-size: 18px;
}
.story-copy .button { margin-top: 10px; }

.social-feature {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(18, 63, 111, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(234,242,245,.86)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}
.social-feature h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}
.social-feature p:not(.eyebrow) {
  max-width: 690px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}
.social-highlights {
  display: grid;
  gap: 10px;
}
.social-highlights article {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(18, 63, 111, .1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
}
.social-highlights strong {
  color: var(--blue-dark);
  font-size: 18px;
}
.social-highlights span {
  color: var(--muted);
  font-size: 15px;
}
.social-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.social-qr-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 254px;
  padding: 24px;
  border: 1px solid rgba(18, 63, 111, .12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  color: var(--blue-dark);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.social-qr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 120, 192, .32);
  box-shadow: 0 16px 34px rgba(9, 44, 79, .1);
}
.social-qr-card img {
  width: min(168px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(18, 63, 111, .14);
  border-radius: var(--radius);
  background: #fff;
}
.social-qr-card span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.local-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  margin-bottom: 18px;
}
.local-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  gap: 34px;
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  color: var(--blue-dark);
}
.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}
.page-hero img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border-left: 16px solid var(--green);
  box-shadow: var(--shadow);
}

.prose-panel {
  width: min(900px, calc(100% - 32px));
  margin: 34px auto 72px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.prose-panel h2 {
  margin-top: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 4vw, 42px);
}
.prose-panel h3,
.prose-panel h4 { color: var(--blue-dark); }
.prose-panel table { width: 100% !important; border-collapse: collapse; }
.prose-panel td { display: block; width: auto !important; padding: 7px 0 !important; }
.prose-panel img { border-radius: var(--radius); }

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.quiet-card { padding: 26px; }
.quiet-card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 24px;
}
.quiet-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}
.compact-people {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.person-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(18, 63, 111, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)),
    var(--paper);
  box-shadow: 0 12px 28px rgba(9, 44, 79, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.person-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 127, 80, .26);
  box-shadow: 0 16px 34px rgba(9, 44, 79, .1);
}
.person-card > img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
  border: 3px solid #fff;
  box-shadow: 0 7px 18px rgba(9,44,79,.14);
}
.person-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--blue-dark);
}
.person-card p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}
.person-card > div {
  min-width: 0;
}
.person-card .mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(39, 120, 192, .08);
  border: 1px solid rgba(39, 120, 192, .18);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.person-card .mail-button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #101d26;
}
.instagram-qr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.instagram-qr {
  display: grid;
  gap: 5px;
  width: 82px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.instagram-qr img {
  display: block;
  width: 82px;
  height: 82px;
  padding: 5px;
  border: 1px solid rgba(18, 63, 111, .14);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(9,44,79,.1);
}
.instagram-qr:hover {
  color: var(--blue);
}
.instagram-qr:hover img {
  border-color: rgba(39, 120, 192, .34);
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(9,44,79,.94), rgba(40,120,192,.92)),
    var(--blue-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}
.cta p {
  max-width: 720px;
  color: rgba(255,255,255,.86);
}
.cta .button { margin-top: 8px; }
.split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.split-cta p { margin-bottom: 0; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: min(330px, 100%);
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}
.overview-list article { padding: 22px; }
.overview-list h3 { margin: 0 0 8px; }
.overview-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img { width: 112px; }
.footer-brand p {
  margin: 0;
  font-weight: 850;
  color: var(--ink);
}
.footer-brand span {
  font-weight: 500;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
}
.site-footer nav a:hover { border-color: var(--blue); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: block; margin-top: 8px; }
  .mainnav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 12px;
    background: rgba(255,255,255,.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .mainnav.open { display: grid; }
  .mainnav a { justify-content: flex-start; border-radius: var(--radius); }
  .home-hero { min-height: 82svh; padding-bottom: 46px; }
  .section,
  .section-band { padding: 52px 0; }
  .section-head,
  .page-hero,
  .image-story,
  .social-feature,
  .two-column,
  .topic-grid,
  .compact-people { grid-template-columns: 1fr; }
  .feature-grid,
  .hero-stats,
  .social-qr-grid { grid-template-columns: 1fr; }
  .page-hero img { aspect-ratio: 16 / 9; }
  .split-cta { display: block; }
  .cta-actions { justify-content: flex-start; margin-top: 18px; }
  .site-footer { display: block; }
  .footer-brand { align-items: flex-start; }
  .site-footer nav { justify-content: flex-start; margin-top: 18px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; padding-inline: 16px; }
  .brand img { width: min(210px, 58vw); }
  .home-hero h1 { font-size: 42px; }
  .home-hero { padding-inline: 16px; }
  .person-card { grid-template-columns: 70px minmax(0, 1fr); }
  .person-card > img { width: 70px; height: 70px; }
  .instagram-qr,
  .instagram-qr img { width: 76px; }
  .instagram-qr img { height: 76px; }
}
