/* ==========================================================================
   Project Lugger — draft home page styles
   Palette taken from the birds themselves: desert sand, dry grass, slate
   plumage, and the ochre of a lugger's cere and feet.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  /* palette taken from the Project Lugger roundel: the chocolate ring, the
     tawny and buff of the painted falcon, the cream it sits on */
  --ink:        #412716;   /* the roundel's ring: text and dark bands */
  --ink-deep:   #22170f;   /* deepest feather shadow: top strip and footer */
  --ink-soft:   #4e3321;
  --ink-70:     rgba(65, 39, 22, .82);
  --ink-55:     rgba(65, 39, 22, .68);

  --bone:       #f6f0e8;
  --bone-warm:  #ebe1d3;
  --sand:       #d8bf9f;   /* light tawny, for type on the dark bands */

  --ochre:      #8a5a3b;   /* the falcon's tawny: buttons, links, accents */
  --ochre-dark: #6b432a;

  --rule:       rgba(65, 39, 22, .14);
  --rule-dark:  rgba(246, 240, 232, .18);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell:  1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --shadow-sm: 0 1px 2px rgba(42, 26, 16, .06), 0 8px 24px rgba(42, 26, 16, .06);
  --shadow-md: 0 2px 4px rgba(42, 26, 16, .07), 0 18px 48px rgba(42, 26, 16, .13);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: .85rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* --- layout helpers ------------------------------------------------------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 1480px; }
.shell--narrow { --shell: 760px; }

section { position: relative; }

.section-pad { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.85rem; height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-70);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ochre);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { --btn-bg: var(--ochre-dark); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink-55);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bone); border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }

.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); }

.btn--sm { padding: .6rem 1.1rem; font-size: .75rem; }
/* an address set in capitals reads wrongly, so this button keeps its case */
.btn--email { text-transform: none; letter-spacing: .01em; font-size: .9375rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ochre);
  padding-bottom: .25rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover { border-color: currentColor; }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link--light { color: var(--sand); }

/* --- top strip ------------------------------------------------------------ */
.topbar {
  background: var(--ink-deep);
  color: rgba(246, 240, 232, .8);
  font-size: .75rem;
  letter-spacing: .045em;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 2.5rem;
  padding-block: .4rem;
}
.topbar__status { display: flex; align-items: baseline; gap: .55rem; margin: 0; }
.topbar__dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: #e4a11b; flex: none;
}
.topbar__status em { font-style: italic; color: var(--sand); }
.topbar__links { display: flex; align-items: center; gap: 1.4rem; }
.topbar__social { display: inline-flex; opacity: .85; }
.topbar__social svg { width: 14px; height: 14px; }
.topbar__social:hover { opacity: 1; color: #fff; }
.topbar__links a { text-decoration: none; opacity: .85; }
.topbar__links a:hover { opacity: 1; color: #fff; }
@media (max-width: 640px) { .topbar__links { display: none; } }

/* --- masthead ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 240, 232, .93);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 1px 24px rgba(42, 26, 16, .10); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 3.15rem;
  height: 3.15rem;
  flex: none;
}
.brand__mark img { width: 100%; height: 100%; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a.nav__donate { display: none; }
.nav a {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover { color: var(--ochre); border-bottom-color: var(--ochre); }

.masthead__actions { display: flex; align-items: center; gap: .75rem; flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .55rem .8rem;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .nav a.nav__donate { display: block; }

  /* the panel hangs off the sticky masthead, so it can never drift out of
     alignment with the bar that opens it */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 100%);
    background: var(--bone);
    border-top: 1px solid var(--rule);
    box-shadow: 0 18px 32px rgba(42, 26, 16, .12);
    padding: .5rem var(--gutter) 1.5rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: .9375rem;
  }
  .nav-toggle { display: inline-block; }
  .masthead__actions .btn { display: none; }
  .nav a.nav__donate {
    margin-top: 1.25rem;
    padding: .95rem 1.6rem;
    background: var(--ochre);
    color: #fff;
    border-bottom: 0;
    text-align: center;
  }
  .nav a.nav__donate:hover { background: var(--ochre-dark); color: #fff; }
}

/* --- hero ----------------------------------------------------------------
   Headline sits over the photograph. The crop puts the bird in the right
   two-thirds, so the scrim and the type only ever fall on open ground.
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78vh, 46rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* weighted into the bottom-left corner, where the type sits, so the bird
     itself is barely touched */
  background:
    radial-gradient(105% 100% at 0% 100%, rgba(34, 23, 15, .9) 0%,
                    rgba(34, 23, 15, .62) 32%, rgba(34, 23, 15, 0) 62%),
    linear-gradient(to top, rgba(34, 23, 15, .55), rgba(34, 23, 15, 0) 34%);
}
.hero__media figcaption {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.hero__text {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero__body { max-width: 26rem; }
.hero .eyebrow { color: var(--sand); }
.hero h1 {
  font-size: clamp(2.15rem, 1.5rem + 1.9vw, 3.3rem);
  letter-spacing: -.025em;
  margin-bottom: .35em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: italic; color: var(--sand); }
/* the mission sits between headline and lede, in the display face */
.hero__mission {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}
.hero__mission span { color: var(--sand); font-weight: 600; }
.hero__lede {
  font-size: clamp(1rem, .94rem + .3vw, 1.12rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* a phone is too narrow to hold type and bird side by side: stack them */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  /* the widened canvas is for the desktop headline; on a phone crop back in on
     the bird so it is not a small shape in a letterbox */
  .hero__media { position: static; order: -1; aspect-ratio: 5 / 4; }
  .hero__media img { height: 100%; object-position: 72% 48%; }
  .hero__media::after { display: none; }
  .hero__media figcaption {
    position: static;
    display: block;
    padding: .7rem var(--gutter);
    text-align: right;
    color: rgba(255, 255, 255, .55);
  }
  .hero__text { padding-block: clamp(2rem, 7vw, 3rem) clamp(2.5rem, 8vw, 3.5rem); }
  .hero__body { max-width: none; }
  .hero h1, .hero__lede { text-shadow: none; }
}

/* --- statistics band ------------------------------------------------------ */
.stats { background: var(--ink); color: var(--bone); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border-block: 1px solid var(--rule-dark);
}
.stat { background: var(--ink); padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.2vw, 2rem); }
.stat__figure {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sand);
  margin-bottom: .5rem;
}
.stat__label {
  font-size: .8125rem;
  line-height: 1.45;
  color: rgba(246, 240, 232, .7);
}
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats__grid { grid-template-columns: 1fr; } }

/* --- split feature -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 2px; box-shadow: var(--shadow-md); }
.split__body { max-width: 34rem; }
.split__body h2 { font-size: clamp(1.9rem, 1.25rem + 2.2vw, 3rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.caption {
  margin-top: .85rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--ink-55);
  border-left: 2px solid var(--sand);
  padding-left: .8rem;
}

.factlist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.factlist li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
}
.factlist dt, .factlist .k {
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding-top: .28rem;
}
@media (max-width: 520px) { .factlist li { grid-template-columns: 1fr; gap: .2rem; } }

/* --- section heading ------------------------------------------------------ */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3.1rem); margin: 0; }
.section-head p { margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* --- cards ---------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bone-warm); }
/* portrait frames, for subjects that a landscape crop destroys */
.cards--tall .card__media { aspect-ratio: 3 / 4; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card__body p { font-size: .9375rem; color: var(--ink-70); }
.card__body .arrow-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.card__meta {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: .6rem;
}

/* threats variant — dark, editorial */
.section--dark { background: var(--ink-soft); color: var(--bone); }
.section--dark h2, .section--dark h3 { color: var(--bone); }
.section--dark .lede, .section--dark p { color: rgba(246, 240, 232, .74); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .card {
  background: rgba(255, 255, 255, .035);
  border-color: var(--rule-dark);
}
.section--dark .card__body p { color: rgba(246, 240, 232, .7); }
.section--dark .card__meta { color: var(--sand); }
.section--dark .arrow-link { color: var(--sand); }

/* --- context note --------------------------------------------------------- */
.note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--rule-dark);
  border-left: 3px solid var(--ochre);
  background: rgba(255, 255, 255, .035);
  max-width: 60rem;
}
.note__label {
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: .6rem;
}
.note p:last-child { font-size: .9375rem; margin: 0; }
.note strong { color: var(--bone); }

/* --- shop promo ----------------------------------------------------------- */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--rule);
  background: #fff;
}
.promo__media img { width: 100%; border-radius: 2px; box-shadow: var(--shadow-sm); }
.promo__body { max-width: 38rem; }
.promo__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.promo__body p { font-size: .9375rem; color: var(--ink-70); }
@media (max-width: 720px) {
  .promo { grid-template-columns: 1fr; }
  .promo__media { max-width: 13rem; }
}

/* --- pillars (our work) --------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  background: var(--bone);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: background-color .3s var(--ease);
}
.pillar:hover { background: #fff; }
.pillar__num {
  font-family: var(--serif);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ochre);
  letter-spacing: .08em;
}
.pillar h3 { font-size: 1.22rem; margin: 0; }
.pillar p { font-size: .9rem; color: var(--ink-70); margin: 0; }
.pillar img {
  width: 100%;
  margin-top: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-top: .25rem;
}

/* --- quote band ----------------------------------------------------------
   The quote sits over the open sky on the left, in ink rather than white, so
   no scrim is needed and nothing dims the photograph.
   ------------------------------------------------------------------------- */
.band { position: relative; background: var(--ink); }
.band__media { margin: 0; }
.band__media img { width: 100%; height: auto; display: block; }

.band__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}
.band blockquote { margin: 0; max-width: 27rem; }
.band blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, .55rem + 1.55vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(.5rem, 1.2vw, 1.25rem);
}
.band cite {
  display: block;
  font-style: normal;
  font-size: clamp(.625rem, .5rem + .25vw, .8125rem);
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ochre-dark);
}

/* too narrow to hold the quote beside the bird: set it below instead */
@media (max-width: 760px) {
  .band__inner {
    position: static;
    padding-block: clamp(2rem, 7vw, 3rem);
  }
  .band blockquote { max-width: none; }
  .band blockquote p { color: #fff; font-size: clamp(1.25rem, 1rem + 2vw, 1.6rem); }
  .band cite { color: var(--sand); }
}

/* --- impact / seizure story ----------------------------------------------- */
.impact { background: var(--ink); color: var(--bone); overflow: hidden; }
.impact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.impact__media { display: grid; gap: .6rem; }
.impact__media img { border-radius: 2px; width: 100%; }
.impact__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.impact__media .caption { margin-top: .4rem; }
.impact h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); color: var(--bone); }
.impact p { color: rgba(246, 240, 232, .76); }
.impact .eyebrow { color: var(--sand); }
.impact .caption { color: rgba(246, 240, 232, .55); border-left-color: var(--ochre); }
@media (max-width: 900px) { .impact__grid { grid-template-columns: 1fr; } }

/* --- gallery -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.gallery button {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--bone-warm);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); filter: brightness(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox:not([open]) { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  /* a <dialog> is width/height: fit-content by default, which would leave the
     overlay floating inside its own backdrop */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(34, 23, 15, .94);
  border: 0;
}
.lightbox::backdrop { background: rgba(34, 23, 15, .94); }
.lightbox img { max-height: 82vh; width: auto; border-radius: 2px; }
.lightbox figcaption {
  color: rgba(255, 255, 255, .7);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-align: center;
  margin-top: 1rem;
}
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* --- support CTA ---------------------------------------------------------- */
.support { background: var(--ochre); color: #fff; }
.support__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.support h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); color: #fff; }
.support p { color: rgba(255, 255, 255, .9); }
.support .eyebrow { color: rgba(255, 255, 255, .85); }
.support__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.support__ways { display: grid; gap: 1px; background: rgba(255, 255, 255, .3); border: 1px solid rgba(255, 255, 255, .3); }
.support__way { background: var(--ochre); padding: 1.1rem 1.35rem; }
.support__way strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .3rem;
}
.support__way span { font-size: .8125rem; color: rgba(255, 255, 255, .88); }
@media (max-width: 860px) { .support__grid { grid-template-columns: 1fr; } }

/* --- newsletter ----------------------------------------------------------- */
.signup { background: var(--bone-warm); }
.signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.signup h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: .35em; }
.signup p { font-size: .9375rem; color: var(--ink-70); margin: 0; }
.form-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.form-row input {
  flex: 1 1 14rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--ink-55);
  border-radius: 2px;
  background: var(--bone);
  font: inherit;
  font-size: .9375rem;
}
.form-row input::placeholder { color: var(--ink-55); }
.form-note { font-size: .75rem; color: var(--ink-55); margin-top: .75rem; }
@media (max-width: 800px) { .signup__grid { grid-template-columns: 1fr; } }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--ink-deep); color: rgba(246, 240, 232, .72); font-size: .875rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__logo { width: clamp(5.5rem, 9vw, 7.5rem); height: auto; margin-bottom: 1.25rem; }
.footer__brand .brand__name { color: var(--bone); }
.footer__brand p { margin-top: 1rem; max-width: 24rem; font-size: .875rem; }
.footer h4 {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__social { display: inline-flex; align-items: center; gap: .6rem; }
.footer__social svg { width: 15px; height: 15px; flex: none; color: var(--sand); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer__credits {
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.75rem;
  font-size: .75rem;
  line-height: 1.7;
  color: rgba(246, 240, 232, .55);
}
.footer__credits strong { color: var(--sand); font-weight: 600; }

.footer__base {
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: .75rem;
  color: rgba(246, 240, 232, .5);
}
.footer__base ul { display: flex; gap: 1.25rem; }

/* --- draft notice --------------------------------------------------------- */
.draft-note {
  background: #f1e8dc;
  border-bottom: 1px solid rgba(138, 90, 59, .3);
  color: #6b432a;
  font-size: .8125rem;
}
.draft-note__inner { padding-block: .7rem; display: flex; gap: .6rem; align-items: baseline; }
.draft-note strong { font-weight: 650; }

/* --- scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
  .card__media img, .gallery img { transition: none; }
}


/* --- disclosure ----------------------------------------------------------- */
.disclose {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.disclose > summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 0;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ochre);
  cursor: pointer;
  list-style: none;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after {
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.disclose[open] > summary::after { content: "\2212"; }
.disclose > summary:hover { color: var(--ochre-dark); }

.disclose__body { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.disclose__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.disclose__body h4 {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 1.75rem 0 .6rem;
}
.disclose__body h4:first-child { margin-top: 0; }
.disclose__body p { font-size: .9375rem; max-width: 42rem; }
.disclose__lede { font-size: 1rem !important; color: var(--ink-70); }
.disclose__source {
  font-size: .75rem !important;
  font-style: italic;
  color: var(--ink-55);
  margin-top: 1.5rem;
}
.disclose__figure { margin: 0; }
.disclose__figure img { width: 100%; border-radius: 2px; border: 1px solid var(--rule); }
.disclose__figure figcaption {
  margin-top: .8rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--ink-55);
}
@media (max-width: 860px) { .disclose__grid { grid-template-columns: 1fr; } }

.threat-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem) clamp(1.5rem, 3vw, 3rem);
}
.threat-list h4 {
  font-size: 1.05rem;
  margin: 0 0 .3rem;
  padding-top: .9rem;
  border-top: 2px solid var(--sand);
}
.threat-list p { font-size: .9rem; color: var(--ink-70); margin: 0; }

/* the Lugger-specific threats run to two paragraphs each */
.threat-list--long { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.threat-list--long h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.threat-list--long p + p { margin-top: .7rem; }

/* --- how you can help ----------------------------------------------------- */
.help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  background: var(--bone-warm);
  border-left: 3px solid var(--ochre);
}
.help .eyebrow { margin-bottom: .5rem; }
.help__action { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.help__address { font-size: .8125rem; color: var(--ink-55); margin: 0; }
.help__address a { color: var(--ochre-dark); }
.help__text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  line-height: 1.4;
  max-width: 40rem;
  margin: 0;
}

/* --- partner logos -------------------------------------------------------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.partners__label {
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0;
}
.partners img { height: clamp(3rem, 5vw, 4.25rem); width: auto; }

/* --- meet the team -------------------------------------------------------- */
.page-head {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-head h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem);
  color: var(--bone);
  margin-bottom: .3em;
}
.page-head p { color: rgba(246, 240, 232, .78); max-width: 42rem; }
.page-head .eyebrow { color: var(--sand); }

.group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.group:first-of-type { margin-top: 0; }
.group__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.group__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: .2em; }
.group__head p { font-size: .9375rem; color: var(--ink-55); margin: 0; }

/* --- team cards ------------------------------------------------------------
   Round colour portraits on compact white cards, four to a row. A card with a
   CV turns over to show it (click, never hover, so touch and keyboard work);
   the back is allowed to be taller than the front, and main.js grows the card
   to fit it rather than squeezing a long CV into a scrolling box.
   ------------------------------------------------------------------------- */
.tcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: clamp(1.1rem, 2vw, 1.5rem);
  align-items: start;
}

.tcard { perspective: 1600px; }
.tcard__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease), height .45s var(--ease);
}
.tcard.is-flipped .tcard__inner { transform: rotateY(180deg); }
.tcard__face {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(42, 26, 16, .05), 0 10px 26px rgba(42, 26, 16, .08);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.tcard__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.25rem 1.45rem;
}
.tcard__photo {
  width: 9.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bone-warm);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 4px var(--bone-warm);
}
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard__front h3 { font-size: 1.2rem; margin: 0; }
.tcard__role {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ochre);
  margin: .3rem 0 0;
}

.tcard__back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: rotateY(180deg);
  padding: 1.35rem 1.3rem 1.2rem;
  border-top: 3px solid var(--ochre);
}
.tcard__back-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 .35rem;
}
.tcard__creds {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--ink-55);
  margin: 0 0 .85rem;
}
.tcard__cv p { font-size: .86rem; line-height: 1.55; color: var(--ink-70); margin: 0; }
.tcard__cv p + p { margin-top: .6rem; }
.tcard__cv ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ink-70);
  display: grid;
  gap: .2rem;
}

.tcard__flip {
  margin-top: 1rem;
  padding: .55rem 1.05rem;
  border: 0;
  border-radius: 7px;
  background: var(--ochre);
  color: #fff;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.tcard__flip:hover { background: var(--ochre-dark); }
.tcard__flip--back {
  background: transparent;
  color: var(--ochre-dark);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.tcard__flip--back:hover { background: var(--bone-warm); }

@media (prefers-reduced-motion: reduce) {
  .tcard__inner { transition: none; }
}

/* --- brand sign-off ------------------------------------------------------
   The roundel is hand-painted and detailed; it only reads at size, and only
   on a light ground. This is the one place it gets both.
   ------------------------------------------------------------------------- */
.signoff {
  background: var(--bone-warm);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.signoff__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.signoff img { width: clamp(8rem, 14vw, 11.5rem); height: auto; }
.signoff p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 32rem;
  margin: 0;
}
.signoff small {
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-55);
}


/* --- two-column running prose (history) ----------------------------------- */
.prose-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.prose-cols p { margin: 0; }


/* --- follow band: the three accounts, set like the giving tiles they replace ---- */
.follow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(255, 255, 255, .3);
}
.follow__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: var(--ochre);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.follow__link:hover { background: var(--ochre-dark); }
.follow__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  flex: none;
}
.follow__icon svg { width: 18px; height: 18px; }
.follow__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
  display: grid;
}
.follow__name small {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}

/* Patrons: one wide feature card, photo larger than the team portraits */
.patron {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border-radius: 16px;
  border-top: 3px solid var(--ochre);
  box-shadow: 0 1px 2px rgba(42, 26, 16, .05), 0 10px 26px rgba(42, 26, 16, .08);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.patron__photo {
  width: clamp(12rem, 22vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bone-warm);
  box-shadow: 0 0 0 6px var(--bone-warm);
}
.patron__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.patron__text h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 0 0 .9rem; }
.patron__text p { color: var(--ink-70); line-height: 1.65; margin: 0; max-width: 38rem; }
.patron__text p + p { margin-top: .8rem; }
@media (max-width: 640px) {
  .patron { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* News post pages */
.post { font-size: 1.06rem; line-height: 1.75; color: var(--ink-70); }
.post > p, .post > ul, .post > ol { max-width: 42rem; }
.post h2, .post h3 { color: var(--ink); margin: 2rem 0 .6rem; }
.post img { max-width: 100%; height: auto; border-radius: 6px; }
.post__image { margin: 0 0 2rem; }
.post__image img { width: 100%; }

/* Photos resized at build time arrive wrapped in <picture>; let the frame size them */
.card__media picture, .tcard__photo picture, .patron__photo picture, .gallery picture {
  display: block; width: 100%; height: 100%;
}
/* News: one or two posts keep card width rather than stretching across the page */
.cards--news { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
