/* The Dolmen Foundation: mobile-first, responsive stylesheet */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #13261F;
  --green: #1F5A43;
  --yellow: #FFCB06;
  --stone: #EEF1EC;
  --line: #C9D0C8;
  --body: #26352D;
  --muted: #3E4A43;
  --soft: #DCE3DB;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 9vw, 120px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
h2 { font-weight: 800; font-size: clamp(1.875rem, 3.6vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }

a { color: var(--green); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: var(--white); }

/* Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; }
.brand img { height: clamp(38px, 5vw, 50px); width: auto; }

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
  font-family: var(--display); font-weight: 500;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 700 1rem var(--display); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Collapsible menu on small screens, only when JavaScript is running.
   Without JS the menu simply stays visible. */
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 14px; border-top: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--stone); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, #FFF8DC 100%); }
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end;
  padding-top: clamp(36px, 6vw, 80px);
}
.eyebrow { font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-weight: 800; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
.highlight {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { margin-top: 24px; max-width: 48ch; font-size: 1.125rem; color: var(--body); }
.hero-text { padding-bottom: 8px; }
.hero-media { justify-self: center; width: 100%; max-width: 560px; }
.hero-media img { width: 100%; border-radius: 24px 24px 0 0; }

.vision-band { background: var(--yellow); }
.vision-band p {
  max-width: 1000px; padding-top: clamp(20px, 3vw, 34px); padding-bottom: clamp(20px, 3vw, 34px);
  text-align: center; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.125rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--ink);
}

/* Generic sections */
.section { padding: var(--section) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.prose p { max-width: 68ch; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* Activity tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.tile {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 28px);
  border-radius: 18px; border: 1px solid var(--line);
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; border-radius: 12px; }
.tile h3 { font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.tile p { font-size: 1rem; line-height: 1.65; margin-top: -8px; }
.tile-green { background: var(--green); color: var(--white); }
.tile-yellow { background: var(--yellow); color: var(--ink); }
.tile-dark { background: var(--ink); color: var(--white); }
.tile-light { background: var(--white); color: var(--ink); }

/* Vision, mission, objectives */
.section-dark { background: var(--ink); color: var(--stone); }
.section-dark h2 { color: var(--white); }
.vm-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
.label { font-weight: 700; font-size: 1.25rem; color: var(--yellow); }
.label-spaced { margin-top: 64px; }
.statement { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 24ch; }
.objectives { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: obj; }
.objectives li {
  counter-increment: obj; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 24px 0; border-top: 1px solid rgba(238, 241, 236, 0.25);
}
.objectives li:last-child { border-bottom: 1px solid rgba(238, 241, 236, 0.25); }
.objectives li::before {
  content: counter(obj); font-family: var(--display); font-weight: 800; font-size: 2rem;
  line-height: 1.1; color: var(--yellow); min-width: 1.4ch;
}

/* Leadership */
.people { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.people li { display: flex; align-items: center; gap: 16px; }
.avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--ink); font: 700 1.375rem var(--display);
}
.avatar-primary { background: var(--green); color: var(--white); }
.person { display: flex; flex-direction: column; }
.person strong { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.person span { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 40px; }
.contact-grid h3 { font-weight: 700; font-size: 1.125rem; }
.contact-grid address, .contact-grid p { margin-top: 10px; font-style: normal; color: var(--body); }
.contact-grid a { overflow-wrap: anywhere; }

/* Closing */
.closing { background: var(--white); }
.closing img { width: 100%; }
.closing-text { max-width: 1000px; text-align: center; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 104px); }
.closing h2 { font-size: clamp(1.875rem, 4.4vw, 3.5rem); line-height: 1.08; }
.rule { width: 140px; height: 5px; background: var(--yellow); margin: 28px auto; }
.closing-text p { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: #5F6366; }

/* Footer */
.site-footer { background: var(--ink); color: var(--line); font-size: 0.9375rem; }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; }

/* Tablet */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .vm-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 6vw, 96px); }
}

/* Desktop */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-text { padding-bottom: clamp(32px, 5vw, 72px); }
  .hero-media { justify-self: end; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); }
}

/* Large desktop */
@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .skip-link, .actions { display: none !important; }
  body { background: #FFFFFF; }
  .section-dark, .tile-green, .tile-dark { color: #000000; background: #FFFFFF; }
}
