:root {
  --ink: #17221e;
  --muted: #5c6b63;
  --paper: #f7f1e7;
  --paper-deep: #eee1cf;
  --green: #163f34;
  --green-soft: #dbe8dd;
  --gold: #b1782d;
  --brick: #a8462d;
  --white: #fffdf8;
  --line: rgba(23, 34, 30, 0.14);
  --shadow: 0 24px 80px rgba(22, 63, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 34, 30, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(23, 34, 30, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 70%);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 span {
  display: inline;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), 1180px);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 20px 70px rgba(23, 34, 30, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.button {
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.site-nav a {
  display: grid;
  place-items: center;
  padding: 0 16px;
  color: var(--green);
  font-size: 0.91rem;
}

.site-nav a:hover {
  background: var(--green-soft);
}

.site-nav a.is-active {
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.section-band,
.section-pad {
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
}

.section-pad {
  padding-top: 110px;
  padding-bottom: 110px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  align-items: end;
  padding-top: 132px;
  padding-bottom: 34px;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 45, 38, 0.96) 0%, rgba(17, 45, 38, 0.78) 44%, rgba(17, 45, 38, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 45, 38, 0.8), transparent 45%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  min-width: 0;
  padding-bottom: 150px;
}

.hero-intro {
  max-width: 650px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.button.primary {
  background: var(--gold);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 253, 248, 0.45);
  color: var(--white);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 2;
  display: grid;
  width: min(760px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.13);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 253, 248, 0.2);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-panel span {
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.91rem;
  overflow-wrap: anywhere;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: end;
}

.intro > *,
.meeting-card > *,
.join > *,
.contact-inner > * {
  min-width: 0;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.5rem);
}

.meeting-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  padding: 24px;
  background: var(--green);
}

.meeting-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: 38px;
  align-items: center;
  min-height: 480px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.meeting-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 6px;
}

.meeting-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.meeting-detail {
  display: grid;
  align-content: end;
  padding: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--white);
}

.meeting-detail span {
  margin-top: 28px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meeting-detail span:first-child {
  margin-top: 0;
}

.meeting-detail strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 760px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(225px, auto);
  gap: 18px;
}

.activity-card {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(23, 34, 30, 0.06);
  overflow: hidden;
}

.activity-card.large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
}

.activity-card.large img,
.activity-card.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card.large div {
  padding: 26px;
}

.activity-card.image {
  padding: 0;
}

.activity-card span {
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-card h3 {
  margin: 10px 0 12px;
}

.activity-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  background: var(--green-soft);
}

.page-hero {
  display: grid;
  min-height: 620px;
  align-items: end;
  padding-top: 170px;
  color: var(--white);
  background: var(--green);
  overflow: hidden;
}

.page-hero-news {
  background:
    linear-gradient(120deg, rgba(22, 63, 52, 0.96), rgba(22, 63, 52, 0.62)),
    url("assets/tatton.jpg") center / cover;
}

.page-hero-gallery {
  background:
    linear-gradient(120deg, rgba(22, 63, 52, 0.94), rgba(22, 63, 52, 0.48)),
    url("assets/gallery-06.jpeg") center / cover;
}

.page-hero-copy {
  max-width: 940px;
}

.page-hero-copy h1 {
  margin-bottom: 24px;
}

.page-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 253, 248, 0.8);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.news {
  background: var(--white);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.featured-post {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-content: end;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(22, 63, 52, 0.96), rgba(22, 63, 52, 0.78)),
    url("assets/tatton.jpg") center / cover;
  color: var(--white);
  overflow: hidden;
}

.featured-post::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 6px;
  pointer-events: none;
}

.post-date {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 8px;
  border-top: 3px solid var(--gold);
}

.post-date span,
.post-date strong {
  display: block;
}

.post-date span {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.post-date strong {
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  line-height: 1;
}

.featured-post > div:last-child {
  position: relative;
  z-index: 1;
}

.post-meta {
  margin-bottom: 14px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-post h3 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.featured-post p:not(.post-meta) {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.08rem;
}

.featured-post a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-list article,
.archive-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.post-list span {
  color: var(--brick);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-list h3,
.archive-panel h3 {
  margin: 9px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.post-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-section {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.25fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.article-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 34, 30, 0.07);
}

.article-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 900;
}

.article-date span {
  color: var(--brick);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-article .post-meta {
  color: var(--brick);
}

.news-article h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.news-article p:not(.post-meta) {
  color: var(--muted);
}

.news-article a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  width: max-content;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.archive-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.archive-panel h3 {
  margin: 0;
}

.archive-years,
.archive-months {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-years a,
.archive-months a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.archive-years a {
  background: var(--green);
  color: var(--white);
}

.gallery-page {
  background: var(--white);
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.gallery-filters span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.photo-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 210px;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photo-card {
  position: relative;
  min-height: 210px;
  margin: 0;
  border-radius: 8px;
  background: var(--green);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(23, 34, 30, 0.13);
}

.photo-card.wide {
  grid-column: span 2;
}

.photo-card.tall {
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.photo-card:hover img {
  transform: scale(1.045);
}

.photo-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 6px;
  background: rgba(23, 34, 30, 0.66);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 60px;
  background: var(--paper-deep);
}

.join-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.13rem;
}

.join-steps {
  display: grid;
  gap: 14px;
}

.join-steps div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0 22px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.join-steps span {
  grid-row: span 2;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.join-steps strong {
  font-size: 1.25rem;
}

.join-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 54px;
  align-items: end;
}

.contact-inner > p {
  color: rgba(255, 253, 248, 0.72);
  font-size: 1.15rem;
}

.contact-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-card span,
.contact-card strong,
.contact-card a {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card strong {
  margin: 8px 0 14px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.contact-card a {
  overflow-wrap: anywhere;
  color: var(--brick);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  background: #0f1714;
  color: rgba(255, 253, 248, 0.68);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 960px) {
  .site-header {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    transform: none !important;
  }

  .brand img {
    width: 190px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, 100%);
    padding: 10px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: start;
  }

  .hero {
    min-height: 900px;
  }

  .hero-copy {
    padding-bottom: 310px;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 253, 248, 0.2);
    border-left: 0;
  }

  .intro,
  .meeting-strip,
  .meeting-card,
  .join,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .meeting-card img {
    min-height: 280px;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-layout,
  .featured-post,
  .archive-panel,
  .gallery-intro,
  .article-heading {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-post {
    min-height: 0;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-pad,
  .contact {
    padding-top: 82px;
    padding-bottom: 82px;
  }
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
  }

  .menu-toggle span:not(.sr-only) {
    margin: 2px auto;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.15rem;
    text-wrap: wrap;
  }

  h1 span {
    display: block;
  }

  .site-header {
    min-height: 68px;
    padding: 10px;
  }

  .menu-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 40;
    border: 1px solid rgba(255, 253, 248, 0.78);
    background: var(--green);
    box-shadow: 0 8px 24px rgba(23, 34, 30, 0.24);
  }

  .brand img {
    width: 156px;
  }

  .hero {
    min-height: 880px;
    padding-top: 110px;
  }

  .hero-copy {
    max-width: calc(100vw - 48px);
    padding-bottom: 350px;
  }

  .hero-intro {
    max-width: 31ch;
    font-size: 1rem;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
  }

  .hero-panel strong,
  .hero-panel span {
    max-width: 28ch;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-card.large {
    grid-column: auto;
    grid-row: auto;
  }

  .text-link {
    margin-top: 18px;
    white-space: normal;
  }

  .featured-post {
    padding: 26px;
  }

  .featured-post h3 {
    font-size: 2.2rem;
  }

  .article-section {
    padding: 20px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .news-article {
    min-height: 0;
  }

  .page-hero {
    min-height: 560px;
    padding-top: 130px;
  }

  .photo-grid {
    grid-auto-rows: 240px;
    grid-template-columns: 1fr;
  }

  .photo-card.wide,
  .photo-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .join-steps div {
    grid-template-columns: 1fr;
  }

  .join-steps span {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 16px;
  }
}

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