/* --------------------------------------------------------------- buttons - */

.subsection-title {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  font-size: var(--step-2);
}

.resource-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.resource-theme {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.resource-theme h2 {
  margin: 0;
  font-size: var(--step-1);
}

.resource-theme p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.resource-theme__guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-theme__guides a {
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Gold carries ink rather than white text: white on gold-600 is 3.7:1. */
.btn--primary {
  background: var(--gold-500);
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.btn--ink {
  background: var(--ink-900);
  color: var(--paper-50);
}

.btn--ink:hover {
  background: var(--ink-800);
}

.btn--ghost {
  border-color: currentcolor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 12%);
}

.btn--outline {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--ink-700);
}

.btn--block {
  width: 100%;
}

.header-cta {
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--maple-700);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------- cards - */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  color: var(--gold-800);
}

.card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card__icon--maple {
  background: var(--maple-100);
  color: var(--maple-800);
}

.card__icon--leaf {
  background: var(--leaf-100);
  color: var(--leaf-700);
}

.card__title {
  font-size: var(--step-1);
}

.card__text {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------- president note */

.president {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  align-items: start;
}

.president__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.president__portrait img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.president__quote {
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 4px solid var(--gold-500);
}

.president__quote p + p {
  margin-top: 0.9rem;
}

.president__sign {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.president__sign span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- board - */

/* Narrow enough that the six board members land on a single row at desktop
   width instead of leaving one stranded underneath. */
.board {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.board__member {
	flex: 0 1 9.5rem;
	text-align: center;
}

.board__avatar {
  display: grid;
  place-content: center;
  width: clamp(5rem, 12vw, 6.5rem);
  height: clamp(5rem, 12vw, 6.5rem);
  margin: 0 auto 0.85rem;
  border: 2px solid var(--paper-300);
  border-radius: 50%;
  background: var(--paper-100);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-800);
}

.board__name {
  font-size: 1.02rem;
}

.board__role {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ news - */

.news {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.news__item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding-top: 1.1rem;
  border-top: 3px solid var(--paper-300);
}

.news__item:hover {
  border-top-color: var(--maple-600);
}

.news__date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.news__title {
  font-size: var(--step-1);
}

.news__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- events - */

.events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.event__date {
  display: grid;
  place-content: center;
  width: 4.5rem;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--paper-50);
  text-align: center;
  line-height: 1.15;
}

.event__day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.event__month {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.event__year {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-300);
}

.event__title {
  font-size: var(--step-1);
  margin-bottom: 0.3rem;
}

.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.event__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.event__meta svg {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.7;
}

.event__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.event__tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 30rem) {
  .event {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- gallery - */

.gallery {
  display: grid;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

/* A wide tile covers two columns plus the gap between them, so 8/3 lands on
   exactly the height a 4/3 tile reaches in one column and the rows stay
   flush — without it the short tiles leave their caption floating in a gap. */
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-200);
  box-shadow: var(--shadow-sm);
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.gallery__item picture {
  display: block;
  height: 100%;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 40rem) {
  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

.gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgb(11 18 25 / 82%));
  color: #fff;
  font-size: 0.88rem;
}

.gallery__caption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.gallery__caption span {
  color: var(--paper-200);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------ membership - */

.plans {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border-color: var(--gold-500);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.plan__badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--ink-950);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan__name {
  font-size: var(--step-2);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
}

.plan__price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan__note {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.94rem;
}

.plan__list li {
  display: flex;
  gap: 0.55rem;
}

.plan__list svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  color: var(--leaf-700);
}

.plan__cta {
  margin-top: auto;
}

.membership-fee {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.membership-fee__amount {
  max-width: 44rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
}

.membership-fee__monthly {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.content-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  transition: opacity 0.15s var(--ease);
}

.content-filters.is-loading { opacity: 0.65; }

.content-filters input,
.content-filters select {
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.content-filters label {
  flex: 1 1 18rem;
}

.content-filters input {
  width: 100%;
}

.news--archive {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.pagination:empty { display: none; }

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--paper-50);
}

/* ------------------------------------------------------------- resources - */

.resources {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.resource {
  display: flex;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.resource:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.resource__icon {
  display: grid;
  place-content: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--paper-100);
  color: var(--gold-800);
}

.resource__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.resource h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.resource p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------- faq - */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ----------------------------------------------------------------- forms - */

.form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  font-size: 0.95rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: var(--ink-500);
  cursor: not-allowed;
}

/* The forms are a mock-up until a backend exists; the notice says so rather
   than letting a visitor type into a field that goes nowhere. */
.form__notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--gold-600);
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.9rem;
}

.form__notice svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
}

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------- contact - */

.contact {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  align-items: start;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.contact__row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact__row svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--accent);
}

.contact__row b {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__row a,
.contact__row p {
  font-size: 1rem;
  text-decoration: none;
}

/* ------------------------------------------------------------- page hero - */

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(80rem 30rem at 15% -10%, rgb(224 138 20 / 16%), transparent 60%),
    radial-gradient(60rem 26rem at 90% 0%, rgb(224 0 16 / 10%), transparent 62%),
    var(--paper-100);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  font-size: var(--step-4);
  margin-block: 0.5rem 0.9rem;
}

.page-hero__lead {
  max-width: 42rem;
  font-size: var(--step-1);
  color: var(--text-soft);
}

.breadcrumb {
  display: flex;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* The blur AVIF is a few hundred bytes stretched to fill the slot; the real
   image paints on top once lazy loading fires. */
.picture-wrap {
  display: block;
  background-size: cover;
  background-position: center;
}

.picture-wrap picture {
  display: block;
}

.picture-wrap img {
  width: 100%;
  height: auto;
}


.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--ink-950);
  color: var(--paper-50);
  text-align: center;
  overflow: hidden;
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__media picture {
  display: block;
  height: 100%;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

/* The skyline is atmosphere, not subject: it stays under a heavy wash so the
   headline keeps a comfortable contrast at every viewport width. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 18 25 / 80%), rgb(11 18 25 / 70%)),
    radial-gradient(40rem 20rem at 20% 0%, rgb(224 138 20 / 26%), transparent 65%),
    radial-gradient(36rem 18rem at 85% 100%, rgb(96 176 64 / 18%), transparent 65%);
}

.cta-band__title {
  font-size: var(--step-3);
  margin-bottom: 0.75rem;
}

.cta-band__lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--paper-200);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------------------------------------------------------------- values - */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose p + p {
  margin-top: 0.9rem;
}

.prose {
  color: var(--text-soft);
}

.stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  margin-top: 1.75rem;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface-sunk);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold-800);
}

.stat span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------- back to top - */

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: grid;
  place-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s,
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--ink-900);
  color: var(--paper-50);
}

/* The drawer backdrop would otherwise leave it dimmed but still clickable. */
body.nav-open .to-top {
  opacity: 0;
  visibility: hidden;
}

.to-top__caret {
  width: 1.15rem;
  height: 1.15rem;
  transform: rotate(180deg);
}
