/* =========================================================================
   Concept A — The Foundation
   Inspire Connections and Pathways
   Institutional, structured, calm. Plain CSS, no framework or build step.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --forest:      #1F3B2C;  /* primary, large flat fields                    */
  --forest-deep: #172C21;  /* forest at depth, footer                       */
  --stone:       #EDE7DD;  /* page background, replaces white               */
  --paper:       #FBF9F5;  /* panel surfaces                                */
  --ink:         #14181A;  /* body text                                     */
  --ink-60:      #4A5154;  /* secondary text, 6.6:1 on stone                */
  --brass:       #A9823F;  /* accent: rules and borders only, 2.9:1 on stone */
  --brass-ink:   #7A5C24;  /* accent for text and focus rings, 5.1:1 on stone */
  --rule:        rgba(20, 24, 26, 0.16);
  --rule-strong: rgba(20, 24, 26, 0.28);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --t-caption: 0.9375rem;                        /* 15px, captions only     */
  --t-small:   1rem;                             /* 16px, interface         */
  --t-body:    1.125rem;                         /* 18px                    */
  --t-lead:    1.3125rem;                        /* 21px                    */
  --t-h3:      1.375rem;                         /* 22px                    */
  --t-h2:      clamp(1.875rem, 3.2vw, 2.5rem);   /* 30 → 40px               */
  --t-h1:      clamp(2.25rem, 5vw, 3.5rem);      /* 36 → 56px               */

  --wrap: 1200px;
  --gutter: 32px;
  --measure: 70ch;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-synthesis-weight: none;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.012em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-ink); }

/* Visible keyboard focus everywhere, including on dark fields */
:focus-visible {
  outline: 3px solid var(--brass-ink);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: var(--stone);
  padding: 12px 20px; z-index: 20; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Grid ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}
/* Standard section layout: heading in cols 1–3, content in cols 5–11. */
.col-head { grid-column: 1 / span 3; }
.col-body { grid-column: 5 / span 7; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.wordmark {
  display: inline-block;
  text-decoration: none; color: var(--ink);
}
.wordmark__text { display: block; font-family: var(--serif); line-height: 1.1; }
.wordmark__l1 { display: block; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }
.wordmark__l2 { display: block; font-size: 1rem; font-weight: 400;
  color: var(--ink-60); letter-spacing: 0.01em; }

.site-nav ul { list-style: none; display: flex; gap: 28px; }
.site-nav a { font-size: var(--t-small); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); color: var(--ink); }

/* ---------- Buttons: squared, 1px border, fill on hover ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; max-width: none; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: var(--t-small); font-weight: 600;
  line-height: 1.2;
  padding: 15px 26px;
  border: 1px solid var(--forest);
  background: transparent; color: var(--forest);
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear;
}
.btn:hover { background: var(--forest); color: var(--stone); }
.btn:active { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--solid { background: var(--forest); color: var(--stone); }
.btn--solid:hover { background: transparent; color: var(--forest); }

/* ---------- Sections ---------- */
.section { padding-block: 92px; border-top: 1px solid var(--rule); }
.section--panel { background: var(--paper); }
.section > .wrap > .grid + .grid,
.section > .wrap > .grid + .programs,
.section > .wrap > .grid + .diagram,
.section > .wrap > * + * { margin-top: 56px; }
h2 { padding-top: 0.1em; }
.h-sub { font-size: var(--t-h3); }

.lead { font-size: var(--t-lead); line-height: 1.5; }
.statement {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3; letter-spacing: -0.012em;
  padding-left: 22px; border-left: 3px solid var(--brass);
  margin-bottom: 1.4em;
}

/* ---------- Hero ---------- */
.hero { padding-block: 84px 96px; }
.hero__grid { row-gap: 56px; align-items: end; }
.hero__text { grid-column: 1 / span 7; }
.hero__entity {
  font-size: var(--t-small); color: var(--brass-ink); font-weight: 600;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--brass);
  max-width: 30ch;
}
.hero h1 { max-width: 20ch; margin-bottom: 28px; }
.hero__lede { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch;
  color: var(--ink-60); margin-bottom: 34px; }
.hero .ph--hero { grid-column: 8 / span 5; }

/* Hero fades up once on load. Disabled under reduced motion. */
.hero__text > * { animation: settle 620ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: 70ms; }
.hero__text > :nth-child(3) { animation-delay: 140ms; }
.hero__text > :nth-child(4) { animation-delay: 210ms; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Image placeholders ---------- */
/* Contained frames, not full bleed. */
.ph {
  margin: 0;
  background: var(--stone);
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  padding: 28px;
}
.section--panel .ph { background: var(--paper); }
.ph--hero  { aspect-ratio: 16 / 9; }
.ph--wide  { aspect-ratio: 3 / 1; }
.ph--tall  { aspect-ratio: 4 / 5; }
.ph__body { max-width: 42ch; }
.ph__label {
  font-size: var(--t-caption); font-weight: 600; color: var(--brass-ink);
  margin-bottom: 10px;
}
.ph__subject {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.25;
  margin-bottom: 12px;
}
.ph__spec { list-style: none; font-size: var(--t-caption); color: var(--ink-60);
  line-height: 1.5; }
.ph__spec li { padding-left: 16px; position: relative; }
.ph__spec li::before { content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--rule-strong); }

/* ---------- Six points ---------- */
.points { row-gap: 0; }
.point {
  grid-column: span 4;
  padding: 30px 28px 34px 0;
  border-top: 1px solid var(--rule);
}
.point h3 { margin-bottom: 12px; max-width: 20ch; }
.point p { font-size: var(--t-small); max-width: 42ch; }
@media (min-width: 861px) {
  .point:nth-child(-n+3) { border-top-color: var(--rule-strong); }
}

/* ---------- Programs: two by two ---------- */
.programs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-strong);
}
.program {
  padding: 34px 36px 38px 0;
  border-bottom: 1px solid var(--rule);
}
.program:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 44px; }
.program:nth-child(even) { padding-left: 44px; }
.program h3 { margin-bottom: 14px; }
.program > p { font-size: var(--t-small); max-width: 44ch; margin-bottom: 22px; }

.meta { margin: 0; font-size: var(--t-caption); }
.meta dt {
  font-weight: 600; color: var(--brass-ink);
  padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--rule);
}
.meta dd { margin: 4px 0 0; color: var(--ink-60); max-width: 46ch; line-height: 1.5; }

/* ---------- Safety: three columns ---------- */
.safety { row-gap: 0; }
.safety__col {
  grid-column: span 4;
  padding: 28px 30px 0 0;
  border-top: 2px solid var(--forest);
}
.safety__col h3 { margin-bottom: 14px; }
.safety__col p { font-size: var(--t-small); max-width: 40ch; }

/* ---------- Governance diagram ---------- */
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  border: 1px solid var(--rule-strong);
  background: var(--stone);
}
.section--panel .diagram { background: var(--paper); }
.diagram__entity { padding: 30px 32px 34px; }
.diagram__kind {
  font-size: var(--t-caption); font-weight: 600; color: var(--brass-ink);
  margin-bottom: 8px;
}
.diagram__entity h3 { margin-bottom: 16px; }
.diagram__entity ul { list-style: none; font-size: var(--t-small); color: var(--ink-60); }
.diagram__entity li { padding-left: 18px; position: relative; margin-bottom: 6px;
  line-height: 1.45; }
.diagram__entity li::before { content: ""; position: absolute; left: 0; top: 0.66em;
  width: 9px; height: 1px; background: var(--forest); }
.diagram__link {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 22px; align-self: stretch; justify-content: center;
}
.diagram__link-line { width: 1px; flex: 1 1 auto; background: var(--forest); min-height: 26px; }
.diagram__link-label {
  font-size: var(--t-caption); font-weight: 600; color: var(--forest);
  writing-mode: vertical-rl; white-space: nowrap;
}

/* ---------- Scope stages ---------- */
.stages { row-gap: 0; }
.stage { grid-column: span 4; padding: 26px 28px 0 0; border-top: 1px solid var(--rule-strong); }
.stage h3 { font-family: var(--sans); font-size: var(--t-small); font-weight: 600;
  color: var(--brass-ink); margin-bottom: 10px; letter-spacing: 0; }
.stage p { font-size: var(--t-small); max-width: 40ch; }

/* ---------- Get involved ---------- */
.routes { row-gap: 0; }
.route { grid-column: span 3; padding: 24px 24px 0 0; border-top: 1px solid var(--rule-strong); }
.route h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.route p { font-size: var(--t-small); max-width: 32ch; color: var(--ink-60); }

.contact { row-gap: 48px; align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__direct { grid-column: 9 / span 4; }
.contact h3 { margin-bottom: 22px; }
.field { margin: 0 0 20px; max-width: none; }
.field label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--ink-60); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: var(--t-body); color: var(--ink);
  background: var(--stone); border: 1px solid var(--rule-strong);
  padding: 12px 14px; border-radius: 0;
}
.section--panel .field input,
.section--panel .field select,
.section--panel .field textarea { background: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--forest); }
.field textarea { resize: vertical; }
.contact__direct .meta dt { border-top: 1px solid var(--rule); }
.note { font-size: var(--t-caption); color: var(--ink-60); margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- Placeholders awaiting client input ---------- */
.tbc {
  font-size: var(--t-small); color: var(--ink-60);
  border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; margin-top: 26px;
}
.tbc strong { color: var(--brass-ink); }
.tbc-inline {
  font-size: var(--t-caption); color: var(--brass-ink); white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--forest-deep); color: var(--stone);
  padding-block: 72px 40px; margin-top: 0;
}
.site-foot a { color: var(--stone); }
.site-foot a:hover { color: #E3C88B; }
.site-foot :focus-visible { outline-color: #E3C88B; }
.site-foot__grid { row-gap: 44px; }
.site-foot__brand  { grid-column: 1 / span 5; }
.site-foot__entity { grid-column: 6 / span 4; }
.site-foot__nav    { grid-column: 10 / span 3; }
.wordmark--foot .wordmark__l1 { color: var(--stone); }
.wordmark--foot .wordmark__l2 { color: rgba(237, 231, 221, 0.72); margin-top: 3px; }
.acknowledgement {
  font-size: var(--t-caption); line-height: 1.6; margin-top: 22px;
  color: rgba(237, 231, 221, 0.82); max-width: 42ch;
}
.h-foot {
  font-family: var(--sans); font-size: var(--t-small); font-weight: 600;
  color: #C8A868; margin-bottom: 14px; letter-spacing: 0;
}
.site-foot p, .site-foot li { font-size: var(--t-caption); line-height: 1.65; }
.site-foot__nav ul { list-style: none; }
.site-foot__nav li { margin-bottom: 7px; }
.site-foot .tbc-inline { color: #C8A868; }
.site-foot__legal {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(237, 231, 221, 0.22);
  color: rgba(237, 231, 221, 0.7); max-width: none;
}

/* Photography. Toned to 85% saturation so photos from different shoots sit together. */
.ph.is-photo { position: relative; padding: 0; border: 0; background: none; overflow: hidden; }
.ph.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85); }

/* On wide screens the hero photo takes half the grid and matches the height of the text. */
@media (min-width: 1041px) {
  .hero__text { grid-column: 1 / span 6; }
  .hero .ph--hero.is-photo { grid-column: 7 / span 6; align-self: stretch;
    aspect-ratio: auto; min-height: 440px; }
}

/* ---------- Link back to the concept overview (presentation only, not part of the site) ---------- */
.concept-back {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600; line-height: 1;
  padding: 11px 16px; border-radius: 999px;
  background: #1B1E20; color: #FFFFFF; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.concept-back:hover { background: #000000; color: #FFFFFF; }
.concept-back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 0; box-shadow: 0 0 0 6px #1B1E20; }
@media print { .concept-back { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero__text { grid-column: 1 / span 12; }
  .hero .ph--hero { grid-column: 1 / span 12; }
  .contact__form { grid-column: 1 / span 12; }
  .contact__direct { grid-column: 1 / span 12; }
  .site-foot__brand { grid-column: 1 / span 12; }
  .site-foot__entity { grid-column: 1 / span 6; }
  .site-foot__nav { grid-column: 8 / span 5; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .site-nav { display: none; } /* anchored nav collapses; footer carries the section list */
  .col-head, .col-body { grid-column: 1 / span 12; }
  .col-head { margin-bottom: 20px; }
  .point { grid-column: span 6; }
  .safety__col { grid-column: span 12; padding-right: 0; margin-bottom: 28px; }
  .safety__col:last-child { margin-bottom: 0; }
  .stage { grid-column: span 12; padding-right: 0; margin-bottom: 26px; }
  .route { grid-column: span 6; }
  .diagram { grid-template-columns: 1fr; }
  .diagram__link { flex-direction: row; padding: 0 30px 0;
    border-block: 1px solid var(--rule); min-height: 58px; }
  .diagram__link-line { width: auto; height: 1px; min-height: 0; flex: 1 1 auto; }
  .diagram__link-label { writing-mode: horizontal-tb; }
}
@media (max-width: 620px) {
  :root { --t-body: 1.0625rem; --t-lead: 1.1875rem; }
  .section { padding-block: 60px; }
  .hero { padding-block: 48px 64px; }
  .site-head__inner { min-height: 66px; }
  .wordmark__l1 { font-size: 1.125rem; }
  .point { grid-column: span 12; padding-right: 0; }
  .route { grid-column: span 12; padding-right: 0; }
  .programs { grid-template-columns: 1fr; }
  .program:nth-child(odd) { border-right: 0; padding-right: 0; }
  .program:nth-child(even) { padding-left: 0; }
  .ph--wide { aspect-ratio: 3 / 2; }
  .ph--hero { aspect-ratio: 4 / 3; }
  .ph { padding: 20px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .site-foot__entity, .site-foot__nav { grid-column: 1 / span 12; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > * { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-head, .skip, .contact__form { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section, .hero { padding-block: 24pt; break-inside: auto; }
  .site-foot { background: #fff; color: #000; }
  .site-foot a, .wordmark--foot .wordmark__l1 { color: #000; }
  .diagram { break-inside: avoid; }
}
