:root {
  --paper: #f3eee2;
  --paper-deep: #e4dcc6;
  --ink: #1d1a17;
  --ink-soft: rgba(29, 26, 23, 0.72);
  --fungal-green: #2c4a3f;
  --fungal-green-soft: rgba(44, 74, 63, 0.12);
  --rust: #8a5b41;
  --rule: rgba(29, 26, 23, 0.16);
  --panel: rgba(255, 255, 255, 0.5);
  --panel-strong: rgba(255, 255, 255, 0.72);
  --shadow: rgba(29, 26, 23, 0.08);
  --max-width: 72rem;
  --radius: 0.375rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(243, 238, 226, 0.46);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--fungal-green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell,
.site-footer,
.site-header-inner {
  position: relative;
  z-index: 1;
}

.site-shell {
  width: min(var(--max-width), calc(100vw - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 20, 18, 0.9);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(var(--max-width), calc(100vw - 1.5rem));
  margin: 0 auto;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  display: block;
  border-radius: 0.2rem;
}

.msa-logo {
  width: 4.5rem;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

.brand-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.08rem;
}

.brand-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f4efe7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 0.2rem;
}

.site-nav a.current,
.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #f4efe7;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-panel {
  display: none;
}

.page {
  padding-top: 1.25rem;
}

.hero {
  padding: 1.3rem 0 0;
}

.hero-block {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0 1rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fungal-green);
}

.definition {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.98;
  margin: 0;
  max-width: 18ch;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.definition-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fungal-green);
  margin-bottom: 0.5rem;
}

.definition-word,
.definition-meta,
.definition-pronunciation,
.definition-plural {
  display: inline-block;
}

.definition-word {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

.definition-meta,
.definition-pronunciation,
.definition-plural {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fungal-green);
}

.definition-text {
  display: block;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.02;
  max-width: 17ch;
}

.definition-block {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(140px, 0.55fr);
  align-items: start;
  gap: 0.9rem;
}

.definition-copy {
  min-width: 0;
  padding-top: 0.15rem;
}

.definition-image-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.definition-image {
  width: min(100%, 12.5rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px var(--shadow);
}

.site-section,
.campaign-panel,
.donation-panel,
.document-panel,
.message-panel,
.photo-placeholder,
.quote-placeholder {
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--shadow);
}

.site-section {
  padding: 1.25rem 1rem 1.1rem;
  margin-top: 1rem;
}

.site-section h2,
.campaign-panel h2,
.document-panel h2,
.message-panel h2,
.donation-panel h2 {
  margin: 0 0 0.8rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  font-weight: 600;
}

.site-section p,
.site-section li,
.campaign-panel p,
.document-panel p,
.message-panel p,
.photo-placeholder,
.quote-placeholder,
.donation-panel p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.site-section p:last-child,
.site-section li:last-child,
.campaign-panel p:last-child,
.document-panel p:last-child,
.message-panel p:last-child,
.donation-panel p:last-child {
  margin-bottom: 0;
}

.site-section strong,
.campaign-panel strong,
.document-panel strong,
.message-panel strong,
.donation-panel strong {
  color: var(--ink);
  font-weight: 600;
}

.text-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.campaign-panel,
.document-panel,
.message-panel,
.donation-panel {
  padding: 1.2rem 1rem 1.1rem;
  margin-top: 1rem;
}

.campaign-panel {
  border-color: rgba(42, 74, 63, 0.28);
  background: rgba(255, 255, 255, 0.36);
}

.campaign-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.inline-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.quote-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.quote-placeholder,
.photo-placeholder {
  padding: 0.75rem 0.9rem;
  margin-top: 0;
  border-style: dashed;
  border-color: rgba(29, 26, 23, 0.28);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.photo-archive {
  padding: 0;
  border-style: solid;
  border-color: var(--rule);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  width: min(22rem, 100%);
  margin: 0;
}

.behind-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
}

.behind-copy {
  min-width: 0;
}

.behind-photo {
  width: min(100%, 17rem);
  justify-self: end;
}

.group-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.small-quote {
  font-size: 0.82rem;
  line-height: 1.5;
}

.quote-attribution {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fungal-green);
}

.site-footer {
  width: min(var(--max-width), calc(100vw - 1.5rem));
  margin: 0 auto 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--ink);
}

.givebutter-widget-wrap {
  width: min(100%, 28rem);
  margin: 0.8rem auto 0;
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    background: rgba(243, 238, 226, 0.98);
    border-bottom: 1px solid var(--rule);
    padding: 5.5rem 1rem 1.25rem;
  }

  .nav-panel.open {
    display: block;
  }

  .nav-panel nav {
    display: grid;
    gap: 1rem;
  }

  .nav-panel nav a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: transparent;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ink);
  }

  .campaign-row {
    display: block;
  }

  .definition-block {
    grid-template-columns: 1fr;
  }

  .definition-image {
    width: min(100%, 18rem);
  }

  .site-shell {
    width: min(var(--max-width), calc(100vw - 1rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
