:root {
  color-scheme: light;
  --surface: #fafafa;
  --white: #fff;
  --ink: #262626;
  --muted: #5b5b5b;
  --line: #e8e8e8;
  --accent: #497324;
  --accent-dark: #355621;
  --green: #283c22;
  --nav: #333;
  --on-dark-muted: #e5e5e5;
  --leaf: #80b53f;
  --leaf-light: #d6e9b4;
  --leaf-tint: #f0f5e7;
  --leaf-line: #e2efd1;
  --button: var(--accent);
  --button-dark: var(--accent-dark);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: .23em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6.2vw, 5.25rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.45rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.22rem, 2.2vw, 1.65rem); letter-spacing: -.025em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; overflow-wrap: anywhere; }
input, button { font: inherit; }

.container { width: min(calc(100% - 2.5rem), 74rem); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 8vw, 7rem); }
.center { justify-content: center; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--white); }
.eyebrow { margin: 0 0 .9rem; color: var(--accent-dark); font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .64rem 1.16rem; border: 1px solid var(--button); border-radius: .2rem; background: var(--button); color: white; font-size: .9375rem; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--button-dark); background: var(--button-dark); color: white; }
.button.outline { border-color: #6e8856; background: transparent; color: var(--accent-dark); }
.button.outline:hover { border-color: var(--accent-dark); background: var(--leaf-tint); }
.button.light { border-color: var(--white); background: var(--white); color: var(--green); }
.button.light:hover { border-color: var(--leaf-tint); background: var(--leaf-tint); }
.button.small { min-height: 2.65rem; padding-inline: 1rem; }

.desktop-masthead { display: none; background: var(--white); }
.utility-bar { background: var(--nav); color: var(--white); }
.utility-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.3rem; }
.utility-links > a:not(.facebook-link) { color: inherit; font-size: .875rem; font-weight: 350; text-decoration: none; }
.utility-links > a:not(.facebook-link):hover { text-decoration: underline; }
.facebook-link { display: inline-grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; text-decoration: none; }
.facebook-link span { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; background: var(--white); color: var(--nav); font: 700 1.16rem/1 Arial, sans-serif; }
.facebook-link:hover span { background: var(--leaf); }
.utility-links .facebook-link { min-height: 2.125rem; margin-right: auto; justify-items: start; }
.masthead-row { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3.5rem); min-height: 5.1rem; }
.masthead-row .brand { margin-right: auto; }
.masthead-contact { display: grid; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.masthead-contact span { color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.masthead-contact a { color: var(--ink); text-decoration: none; }
.masthead-contact a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--nav); }
.header-row { width: 100%; }
.mobile-masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--accent); font: 800 1.4rem/1 'Century Gothic', Aptos, var(--sans); letter-spacing: .045em; text-decoration: none; text-transform: uppercase; }
.brand:hover { color: var(--accent-dark); }
.brand small { display: block; margin-top: .28rem; color: var(--muted); font: 600 .75rem/1.2 var(--sans); letter-spacing: normal; text-transform: none; }
.brand-mark { flex: none; width: 1.7rem; height: auto; filter: brightness(0); }
.masthead-row .brand-mark { width: 1.9rem; }
.masthead-row .brand, .mobile-masthead .brand { font-size: 24px; }
.menu-toggle { display: grid; width: 2.75rem; height: 2.75rem; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: .2rem; background: transparent; color: var(--green); cursor: pointer; }
.menu-toggle span { width: 1.15rem; height: 2px; background: currentColor; }
.site-nav { display: flex; flex-direction: column; align-items: stretch; padding: .3rem 1.25rem .8rem; }
.site-nav > a:not(.button) { display: flex; align-items: center; min-height: 2.8rem; padding: .6rem .85rem; color: var(--white); font-size: .875rem; font-weight: 500; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; }
.site-nav > a:not(.button):hover { background: #474747; }
.site-nav > a[aria-current="page"]:not(.button) { background: var(--leaf); color: var(--nav); }
.site-nav .button { align-self: start; margin: .65rem 0 0; font-weight: 550; }
.mobile-social { margin-top: .25rem; }
.site-nav .button, .hero-copy .button:not(.light) { border-color: var(--leaf); background: var(--leaf); color: var(--nav); }
.site-nav .button:hover, .hero-copy .button:not(.light):hover { border-color: var(--leaf-light); background: var(--leaf-light); }
.site-nav :focus-visible, .utility-links :focus-visible, .home-hero :focus-visible { outline-color: var(--white); outline-offset: -3px; }

.home-hero { position: relative; display: grid; align-items: center; isolation: isolate; padding-top: 2.65rem; background: var(--nav); color: var(--white); }
.hero-inner { position: relative; }
.hero-copy { max-width: 42rem; }
.hero-copy .eyebrow { color: var(--leaf-light); }
.hero-copy h1 { max-width: 15ch; font: 800 clamp(2.2rem, 5.3vw, 4.15rem)/1.04 var(--sans); letter-spacing: -.045em; text-wrap: initial; }
.hero-copy h1 em { display: block; color: var(--leaf); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 44ch; margin: 1rem 0 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-art { height: clamp(14rem, 75vw, 25rem); margin-top: 1.5rem; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

.mission { background: var(--leaf-tint); border-block: 1px solid var(--leaf-line); }
.mission-grid { display: grid; padding-block: 1rem; }
.mission-grid > div { padding: 1rem 0; }
.mission-grid > div + div { border-top: 1px solid var(--leaf-line); }
.mission h2 { margin-bottom: .45rem; font: 760 1.05rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.mission h2::before { display: block; width: 1.9rem; height: 3px; margin-bottom: .7rem; background: var(--leaf); content: ''; }
.mission p { color: var(--muted); }
.section-heading { max-width: 43rem; margin: 0 auto 2rem; text-align: center; }
.section-heading h2, .page-intro h1 { font-family: var(--sans); font-weight: 780; }
.section-heading > p:last-child { margin-top: .75rem; color: var(--muted); }
.books { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.book-card > a { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--leaf-line); background: var(--white); border-radius: .25rem; color: inherit; text-decoration: none; }
.book-card > a:hover { border-color: #6e8856; }
.book-card > a:hover h3 { color: var(--accent-dark); text-decoration: underline; }
.book-art { display: grid; min-width: 0; place-items: center; padding: 1.35rem .7rem; background: var(--surface); }
.book-art img { object-fit: contain; width: auto; height: 9rem; max-width: 96%; filter: drop-shadow(.22rem .4rem .4rem #0003); }
.featured .book-art img { height: clamp(10rem, 20vw, 13rem); }
.book-caption { padding: .85rem; overflow-wrap: anywhere; }
.book-caption p { margin-top: .43rem; color: var(--muted); font-size: .875rem; }
.featured .book-caption { padding: 1rem; }

.founder { background: var(--surface); }
.founder-grid, .projects-grid, .about-grid, .biography, .detail-grid { display: grid; gap: clamp(1.8rem, 5vw, 5rem); align-items: start; }
.founder-grid { align-items: center; }
.portrait { width: min(100%, 24rem); margin: 0 auto; padding: .45rem; border: 1px solid var(--leaf-line); background: var(--white); }
.portrait img { width: 100%; }
.founder .portrait { width: min(100%, 20rem); }
.founder .portrait img { height: clamp(18rem, 35vw, 24rem); object-fit: cover; object-position: center 30%; }
.founder h2 { margin-bottom: .85rem; }
.founder p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.founder p.lead { color: var(--ink); font-size: 1.15rem; }
.project-list ul { margin: 0; padding-left: 1.1rem; }
.project-list li::marker { color: var(--accent); }
.project-list li { padding-bottom: .65rem; }

.support-strip { padding-block: clamp(2.7rem, 5.5vw, 4.65rem); border-top: 3px solid var(--leaf); background: var(--green); color: var(--white); }
.support-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.3rem; }
.support-strip .eyebrow { color: var(--leaf-light); }
.support-strip h2 { font-size: clamp(1.9rem, 4.3vw, 3rem); }
.support-strip h2 + p { margin-top: .65rem; color: var(--on-dark-muted); }
.support-strip :focus-visible { outline-color: var(--white); }
.site-footer { padding-top: 2.6rem; border-top: 1px solid #505050; background: var(--nav); color: var(--white); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--leaf); }
.site-footer :focus-visible { outline-color: var(--leaf); }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: var(--on-dark-muted); }
.site-footer .brand-mark { filter: brightness(0) invert(1); }
.footer-grid { display: grid; gap: 1.5rem 2.5rem; }
.footer-grid p { margin-top: .85rem; max-width: 29ch; color: var(--on-dark-muted); }
.footer-grid h2 { margin-bottom: .6rem; font: 700 1rem/1.25 var(--sans); letter-spacing: 0; }
.footer-grid nav { display: grid; justify-items: start; gap: .28rem; }
.footer-base { margin-top: 2.25rem; padding-block: 1rem; border-top: 1px solid #505050; color: var(--on-dark-muted); font-size: .875rem; }

.page-intro { background: var(--leaf-tint); border-bottom: 1px solid var(--leaf-line); padding-block: clamp(2.5rem, 6.2vw, 5.1rem); }
.page-intro h1 { max-width: 22ch; }
.page-intro p:last-child { max-width: 58ch; margin-top: .85rem; color: var(--muted); font-size: 1.1rem; }
.catalog { padding-top: clamp(2rem, 5vw, 4rem); }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.4rem; margin-bottom: 1.65rem; }
.catalog-tools > div { width: min(100%, 23rem); }
.catalog-tools label { display: block; margin-bottom: .25rem; font-weight: 600; }
.catalog-tools input[type="search"] { width: 100%; min-height: 2.9rem; padding: .5rem .65rem; border: 1px solid #828282; border-radius: .2rem; color: var(--ink); background: var(--white); }
.catalog-tools .check { display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; margin: 0; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.catalog-status { width: 100%; color: var(--muted); font-size: .9375rem; }
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading { max-width: 68ch; }
.rich { overflow-wrap: anywhere; }
.rich h2 { margin-bottom: .8rem; }
.biography h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.biography p + h2 { margin-top: 1.6rem; }
.rich li + li { margin-top: .45rem; }
.detail-grid h1 { margin-bottom: 1.3rem; font-size: clamp(2.4rem, 5.1vw, 4.15rem); }
.detail-cover { min-height: 17rem; border: 1px solid var(--leaf-line); border-radius: .25rem; padding-block: 2rem; }
.detail-cover img { width: auto; height: auto; max-width: min(72%, 16rem); max-height: 26rem; }
.crumb { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .9375rem; }
.download-panel, .info-box { margin-top: 1.4rem; padding: clamp(1.15rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: .25rem; background: var(--white); }
.download-panel h2, .info-box h2 { margin-bottom: .75rem; font-size: clamp(1.65rem, 3vw, 2.1rem); }
.download-panel ul { margin-block: .7rem 0; padding-left: 1.15rem; }
.download-panel li { margin-block: .4rem; }
.about-side > :first-child { margin-top: 0; }
.contacts { grid-column: 1 / -1; margin-top: 0; }
.contacts-grid { display: grid; gap: 1.25rem; }
.contacts-grid h3 { margin-bottom: .6rem; }
.contacts-grid dl { margin: 0; }
.contacts-grid dd:last-child { margin-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0 0 .55rem; }

@media (min-width: 35rem) {
  .container { width: min(calc(100% - 4rem), 74rem); }
  .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .books { gap: 1.15rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 52rem) {
  .home-hero { min-height: clamp(23rem, 40vw, 32rem); padding-block: clamp(2.65rem, 5.3vw, 4.25rem); }
  .hero-art { position: absolute; z-index: -1; inset: 0; height: 100%; margin: 0; }
  .hero-art img { object-position: center 37%; }
  .hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, #1717179e, #17171794 38%, #1717173d 57%, transparent 72%); content: ''; }
  .mission-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.8rem; }
  .mission-grid > div { padding: .25rem 1.5rem; }
  .mission-grid > div:first-child { padding-left: 0; }
  .mission-grid > div + div { border-top: 0; border-left: 1px solid var(--leaf-line); }
  .founder-grid { grid-template-columns: .85fr 1.15fr; }
  .projects-grid { grid-template-columns: .75fr 1.25fr; }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .contacts-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.8rem, 5vw, 5rem); }
  .biography, .detail-grid { grid-template-columns: .85fr 1.45fr; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-art { padding-block: 1.7rem; }
  .book-art img { height: 11rem; }
  .detail-cover img { height: auto; }
  .featured .book-caption { padding: 1.15rem 1.3rem; }
}

@media (min-width: 61rem) {
  .desktop-masthead { display: block; }
  .mobile-masthead { display: none; }
  .mobile-social { display: none; }
  .header-row { width: min(calc(100% - 4rem), 74rem); }
  .site-nav { flex-direction: row; align-items: stretch; padding: 0; }
  .site-nav > a:not(.button) { min-height: 3.6rem; padding-inline: clamp(.65rem, 1.6vw, 1.5rem); }
  .site-nav .button { align-self: center; margin: 0 0 0 auto; }
}

@media (max-width: 60.999rem) {
  .site-nav { max-height: calc(100dvh - 5rem); overflow-y: auto; }
}
