:root {
  color-scheme: light;
  --ink: #292c26;
  --muted: #5f625a;
  --line: #e6e3da;
  --paper: #fcfbf8;
  --surface: #e9eee7;
  --link: #365b45;
  --subheading: #58694f;
  --button: #365b45;
  --radius: 7px;
  --shell: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 19px;
  color: var(--link);
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--subheading);
  font-size: 1.05rem;
  font-weight: 650;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: block;
  width: min(290px, 32vw);
  flex: 0 1 auto;
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 25px);
}

.site-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--link);
  text-decoration: underline;
}

.site-nav .nav-donate {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid #193f2e;
  border-radius: var(--radius);
  background: #193f2e;
  color: var(--paper);
  font-weight: 650;
}

.site-nav .nav-donate:hover {
  background: #294f3a;
  color: var(--paper);
  text-decoration: none;
}

.nav-donate svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #e0bd70;
}

.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}

.hero-art {
  container-type: size;
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 54%;
  height: 100%;
}

/* One continuous extended painting, with a single diagonal fade. */
.hero-painting {
  overflow: hidden;
  --fade-offset: max(
    clamp(0px, calc((1100px - 100vw) * 0.3), 110px),
    clamp(0px, calc((100vw - 1100px) * 0.32), 350px)
  );
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: calc(100cqw * 4 / 3);
  /* The transition follows a line leaning down and right, as in the markup. */
  -webkit-mask-image: linear-gradient(75deg, transparent calc(13% + var(--fade-offset)), rgba(0, 0, 0, 0.05) calc(17% + var(--fade-offset)), rgba(0, 0, 0, 0.22) calc(21% + var(--fade-offset)), rgba(0, 0, 0, 0.5) calc(26% + var(--fade-offset)), rgba(0, 0, 0, 0.8) calc(31% + var(--fade-offset)), #000 calc(37% + var(--fade-offset)));
  mask-image: linear-gradient(75deg, transparent calc(13% + var(--fade-offset)), rgba(0, 0, 0, 0.05) calc(17% + var(--fade-offset)), rgba(0, 0, 0, 0.22) calc(21% + var(--fade-offset)), rgba(0, 0, 0, 0.5) calc(26% + var(--fade-offset)), rgba(0, 0, 0, 0.8) calc(31% + var(--fade-offset)), #000 calc(37% + var(--fade-offset)));
}

.hero-image {
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 58%;
  /* Slightly enlarge from the right edge to shift the scene left without a gap. */
  transform: scale(1.04);
  transform-origin: right center;
}

.intro-inner {
  padding-block: clamp(44px, 5vw, 72px);
}

.intro-content {
  width: 51%;
  max-width: 550px;
}

.intro-eyebrow {
  margin-bottom: 19px;
  color: var(--link);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1 {
  margin-bottom: 24px;
  color: #193f2e;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.intro-copy,
.intro-location {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.intro-copy {
  margin-bottom: 16px;
}

.intro-location {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.intro .button {
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--button);
  border-radius: var(--radius);
  background: var(--button);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: #294936;
  color: #fff;
}

.content-section {
  padding-block: 34px 39px;
  border-top: 1px solid var(--line);
}

.intro + .content-section {
  border-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.info-block + .info-block {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.info-block h2 {
  margin-bottom: 17px;
}

.info-block h3 {
  margin-bottom: 9px;
}

.info-block p {
  max-width: 570px;
  margin-bottom: 13px;
  color: var(--ink);
}

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

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.text-links a {
  color: var(--link);
}

.contact-person + .contact-person {
  margin-top: 24px;
}

.contact-person h3 {
  margin-bottom: 0;
}

.contact-person h3 span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.contact-person .text-links {
  margin-top: 6px;
}

.donate-section {
  margin-top: 6px;
  padding-block: 32px;
  background: var(--surface);
}

.donate-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 38px;
}

.section-photo {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(1.12);
}

.history-photo {
  height: clamp(240px, 28vw, 320px);
  margin-top: 30px;
  object-position: center 70%;
}

.donate-visuals {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.donate-copy h2 {
  margin-bottom: 8px;
}

.donate-copy p {
  margin-bottom: 18px;
  color: var(--ink);
}

.qr-link {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: fit-content;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--link);
  font-size: 0.82rem;
  text-align: center;
}

.qr-link img {
  width: 174px;
  height: 174px;
  image-rendering: pixelated;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 740px) {
  .shell {
    width: min(var(--shell), calc(100% - 36px));
  }

  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 15px;
    padding-block: 12px;
  }

  .brand {
    width: min(218px, calc(100% - 86px));
  }

  .menu-toggle {
    display: inline-flex;
    min-width: 72px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .menu-toggle[hidden] {
    display: none;
  }

  .menu-toggle-icon {
    display: grid;
    gap: 4px;
  }

  .menu-toggle-icon span {
    display: block;
    width: 13px;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .js .site-nav[data-collapsible="true"]:not(.is-open) {
    display: none;
  }

  .site-nav a {
    padding: 10px 2px;
    border-top: 1px solid var(--line);
  }

  .site-nav .nav-donate {
    margin-top: 9px;
    padding: 8px 12px;
    border: 1px solid var(--link);
    text-align: center;
  }

  .intro {
    display: flex;
    flex-direction: column;
  }

  .intro-inner {
    padding-block: 34px 28px;
  }

  .intro-content {
    width: 100%;
    max-width: none;
  }

  .intro-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .intro h1 {
    font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  }

  .hero-art {
    position: static;
    order: 2;
    width: 100%;
    height: clamp(230px, 55vw, 360px);
  }

  .hero-painting {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    height: 100%;
    background: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-image {
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .content-section {
    padding-block: 28px 32px;
  }

  .text-links {
    gap: 4px 20px;
  }

  .text-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .info-block + .info-block {
    padding: 0;
    border-left: 0;
  }

  .donate-section {
    padding-block: 25px;
  }

  .donate-panel {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .qr-link {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
  }
}
