/* Janice Lieber Staller Charity Fund — Global Grantmaking Press */
:root {
  --navy: #1b365d;
  --navy-deep: #10243f;
  --navy-soft: #2a4a73;
  --sage: #6f8f6a;
  --sage-light: #8aa584;
  --gold: #c5a059;
  --gold-soft: #d4b87a;
  --ink: #1a2332;
  --ink-muted: #4a5568;
  --paper: #f7f5f0;
  --paper-warm: #efeae2;
  --white: #ffffff;
  --line: rgba(27, 54, 93, 0.14);
  --shadow: 0 18px 50px rgba(16, 36, 63, 0.12);
  --radius: 2px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy-deep);
  margin: 0 0 0.65em;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(27, 54, 93, 0.22);
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy-deep);
  flex-shrink: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.55rem 1rem !important;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 36, 63, 0.35) 0%, rgba(16, 36, 63, 0.72) 55%, rgba(16, 36, 63, 0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(197, 160, 89, 0.18), transparent 45%);
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 42rem;
  animation: riseIn 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 3.5rem;
}

.page-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 36, 63, 0.25), rgba(16, 36, 63, 0.88));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin: 0;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-navy {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: rgba(255, 255, 255, 0.9);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-sage {
  background:
    linear-gradient(180deg, rgba(111, 143, 106, 0.08), rgba(111, 143, 106, 0.03)),
    var(--paper);
}

.section-warm {
  background: var(--paper-warm);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.split:hover .split-media img {
  transform: scale(1.04);
}

.broadsheet {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}

.broadsheet article h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.broadsheet article p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.broadsheet .lead-col {
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}

.broadsheet .lead-col h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.letter {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
}

.letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--sage));
}

.letter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.letter blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--navy);
}

.signature {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signature img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.signature strong {
  display: block;
  color: var(--navy-deep);
}

.signature span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.program-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-card .body {
  padding: 1.35rem 1.35rem 1.6rem;
}

.program-card h3 {
  font-size: 1.3rem;
}

.program-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin-bottom: 0.85rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.mosaic figure:hover img {
  transform: scale(1.06);
}

.mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(16, 36, 63, 0.82));
  color: var(--white);
  font-size: 0.85rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.35rem 1.1rem;
  border-top: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-soft);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leader-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.leader-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.leader-card .body {
  padding: 1.35rem 1.35rem 1.35rem 0;
}

.leader-card .role {
  color: var(--sage);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-card .body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.55rem;
}

.news-card h3 {
  font-size: 1.25rem;
}

.news-card p {
  color: var(--ink-muted);
  flex: 1;
}

.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.85rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(111, 143, 106, 0.12);
  border-left: 3px solid var(--sage);
  color: var(--navy-deep);
}

.form-success.is-visible {
  display: block;
  animation: riseIn 0.5s var(--ease);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amount-option {
  position: relative;
}

.amount-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-option span {
  display: grid;
  place-items: center;
  min-height: 3.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  transition: 0.2s var(--ease);
}

.amount-option input:checked + span,
.amount-option span:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.workflow {
  display: grid;
  gap: 1rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.step-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  border-left: 2px solid var(--line);
  padding-left: 1.5rem;
}

.timeline article {
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.privacy-block {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.15rem;
}

.privacy-block h2 {
  font-size: 1.45rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-panel {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.contact-panel h2,
.contact-panel h3 {
  color: var(--white);
}

.contact-panel a {
  color: var(--gold-soft);
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.site-footer h4 {
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.35rem;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-legal p {
  margin-bottom: 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 980px) {
  .broadsheet,
  .program-grid,
  .news-grid,
  .stats,
  .footer-grid,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .broadsheet .lead-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-card img {
    min-height: 280px;
  }

  .leader-card .body {
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}
