/* Dreamlift Foundation — one stylesheet, written mobile first.
   The palette is lifted from the supplied logo: red #ff2828, green #268000,
   black. The logo red is too light for text on a pale ground (3.8:1), so red
   text uses --red-deep and the logo red is kept for large shapes and rules. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #fbf8f3;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #4f4f4f;
  --line: #e2dccf;
  --red: #ff2828;
  --red-deep: #c4161c;
  --green: #268000;
  --green-deep: #1c6100;
  --dark: #141414;
  --on-dark: #f6f3ee;
  --on-dark-2: #bdb8ae;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --radius: 6px;
  --wrap: 72rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.band-dark :focus-visible { outline-color: var(--on-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: var(--s4); top: -5rem; z-index: 10; background: var(--ink); color: var(--on-dark); padding: var(--s3) var(--s4); text-decoration: none; }
.skip:focus { top: var(--s4); }

/* The three-colour rule: the three figures of the mark. */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); height: 6px; }
.tri span:nth-child(1) { background: var(--red); }
.tri span:nth-child(2) { background: var(--green); }
.tri span:nth-child(3) { background: var(--ink); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 4.5rem; }
.brand { flex-shrink: 1; min-width: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: none; }
.nav a { font-weight: 600; text-decoration: none; padding: var(--s3) var(--s2); }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--s5);
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-sm { min-height: 2.75rem; padding: 0 var(--s4); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--surface); padding-block: var(--s7); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--red-deep); margin-bottom: var(--s4); }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); max-width: 13ch; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 36rem; margin-block: var(--s5) var(--s6); }
.hero-mark { display: none; }

.pillars { background: var(--surface); }
.pillar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.pillar {
  display: block; padding-block: var(--s4) var(--s5);
  border-top: 6px solid; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 4.2vw, 2rem);
}
.pillar:hover { text-decoration: underline; text-underline-offset: 6px; }
.p-red { border-color: var(--red); }
.p-green { border-color: var(--green); }
.p-ink { border-color: var(--ink); }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--s8); }
.section-head { max-width: 40rem; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: var(--s4); }
.section-head p { font-size: 1.125rem; color: var(--ink-2); }

/* Programmes read as an editorial list, not a row of cards. */
.programmes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.prog {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s2) var(--s4);
  padding-block: var(--s6); border-top: 1px solid var(--line); scroll-margin-top: var(--s4);
}
.num { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.prog-red .num { color: var(--red-deep); }
.prog-green .num { color: var(--green); }
.prog-ink .num { color: var(--ink); }
.prog h3 { font-size: 1.75rem; }
.prog-body { color: var(--ink-2); max-width: 38rem; }
.prog-lede { color: var(--ink); font-weight: 600; margin-bottom: var(--s2); }

.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .section-head p { color: var(--on-dark-2); }
.support-grid { display: grid; gap: var(--s7); }
.support-item { border-top: 6px solid var(--red); padding-top: var(--s5); }
.support-item + .support-item { border-top-color: var(--green); }
.support-item h3 { font-size: 1.75rem; margin-bottom: var(--s3); }
.support-item p { color: var(--on-dark-2); max-width: 32rem; margin-bottom: var(--s5); }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.person-name { font-family: var(--display); font-weight: 800; font-size: 1.375rem; }
.person-tel {
  display: block; width: fit-content; padding-block: var(--s2); margin-bottom: var(--s3);
  font-size: 1.5rem; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.person-tel:hover { color: var(--green); }

.notfound { padding-block: var(--s9); }
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4rem); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s6); }
.foot img { height: 34px; width: auto; }
.foot p { font-size: .875rem; color: var(--ink-2); }

/* ------------------------------------------------------------ wider views */
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .brand img { height: 46px; }
  .section { padding-block: var(--s9); }
  .support-grid, .people { grid-template-columns: 1fr 1fr; }
  .support-grid { gap: var(--s6); }
  .prog { grid-template-columns: 6rem 14rem 1fr; align-items: baseline; }
  .num { grid-row: auto; font-size: 3.5rem; }
}
@media (min-width: 60rem) {
  .nav { display: flex; gap: var(--s4); }
  .hero { padding-block: var(--s9); }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-mark { display: block; }
  .hero-mark img { width: 100%; max-width: 26rem; margin-left: auto; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s7); align-items: start; }
}
