/* Stoke Poges Charities — styles */

:root {
  --green: #1d4d38;
  --green-dark: #143826;
  --green-soft: #3a6b52;
  --paper: #faf7f0;
  --paper-shade: #f0ebdf;
  --accent: #b3552e;
  --accent-dark: #8f4223;
  --line: #ddd4c2;
  --ink: #20302a;
  --ink-soft: #4d5f56;
  --font-head: "Lora", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--green-dark);
}

h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 40px; height: 40px;
  color: #d9a441;
  flex-shrink: 0;
}

.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}
.brand-text small {
  color: #b9cec2;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #e6efe9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid #d9a441; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #4a6b5a;
  border-radius: 4px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* Hero */

.hero {
  position: relative;
  background: var(--green-dark);
  color: #fff;
}

.hero-img {
  width: 100%;
  height: clamp(340px, 62vh, 560px);
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(20, 56, 38, 0.88) 20%, rgba(20, 56, 38, 0.25));
}

.hero-inner { width: 100%; }

.hero-kicker {
  color: #d9a441;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 0.4em;
}

.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #dce8e0;
  max-width: 44ch;
  margin-bottom: 1.6rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  border: 1.5px solid #fff;
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Page hero (interior pages) */

.page-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 4rem 0;
  border-bottom: 3px solid var(--accent);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 0.3em;
}

.page-hero-lede {
  color: #dce8e0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 54ch;
  margin: 0;
}

.page-hero-no {
  color: #9fb8aa;
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
}

/* Sections */

.section { padding: 4rem 0; }
.section-shade { background: var(--paper-shade); }

.section-kicker {
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.section-title { margin-bottom: 0.5em; }

.section-intro {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.two-col-even { grid-template-columns: 1fr 1fr; }

.prose p { color: var(--ink-soft); }
.prose li { color: var(--ink-soft); }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card .card-more {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 600;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.6rem;
}

/* Tick list */

.tick-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.55rem; height: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
}

/* Figure & band */

.figure { margin: 0; }

.figure img {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(20, 56, 38, 0.2);
}

.figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.band {
  background: var(--green-dark);
  line-height: 0;
}
.band img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  opacity: 0.9;
}

/* Fact list */

.fact-list {
  margin: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt { font-weight: 600; color: var(--ink); }
.fact-list dd { margin: 0; color: var(--ink-soft); text-align: right; }

/* Finance table */

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.fin-table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
}

.fin-table th,
.fin-table td {
  text-align: right;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.fin-table th:first-child,
.fin-table td:first-child { text-align: left; }

.fin-table thead th {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--green);
}

.fin-table td { color: var(--ink-soft); }

/* Timeline */

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.8rem 2.2rem;
  border-left: 2px solid var(--line);
  margin-left: 0.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.25rem;
  width: 0.85rem; height: 0.85rem;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.timeline .tl-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.1rem;
}

.timeline p { margin: 0.3rem 0 0; color: var(--ink-soft); }

/* Contact */

.contact-block {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: var(--ink-soft);
}
.contact-block strong { color: var(--ink); }

.contact-lines { color: var(--ink-soft); }

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
}

/* Trustee chips */

.trustee-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trustee-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trustee-list li.chair {
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--green-dark);
  color: #c3d4c9;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #c3d4c9;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

.footer-base {
  border-top: 1px solid #2e5240;
  padding-top: 1.4rem;
}

.credits {
  font-size: 0.72rem;
  opacity: 0.55;
  margin-top: 0.4rem;
}
.credits a { color: inherit; }

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */

@media (max-width: 860px) {
  .two-col,
  .two-col-even {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-toggle { display: block; }

  .site-nav ul {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--green-dark);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
    border-bottom: 3px solid var(--accent);
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav li a {
    display: block;
    padding: 0.65rem 0;
  }
  .nav-cta { margin-top: 0.4rem; }

  .section { padding: 3rem 0; }

  .hero-img { height: 420px; }

  .footer-inner { flex-direction: column; }
}
