/* ACCESS Lab website
   Layout: one readable column (about 65 characters) inside a wide frame; pathway cards and the
   multicoloured "community quilt" carry the identity. Colours follow the ACCESS Lab brochures.
   Every text colour below passes WCAG 2.2 AA (4.5:1) on every background it is used on, in both themes. */

:root {
  /* surfaces */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --tint: #F1ECE3;
  --line: #D9D1C4;
  /* text */
  --ink: #23232E;
  --muted: #4A4A55;
  /* text-safe accents, one per ACCESS colour */
  --blue: #1F6A93;
  --pink: #A8344F;
  --gold: #7A5604;
  --green: #1C6B4B;
  /* decorative fills (shapes only, never text) */
  --c-blue: #3A97C2;
  --c-pink: #C84866;
  --c-gold: #B0800E;
  --c-green: #289868;
  --c-ink: #2A2A36;
  /* interaction */
  --link: #1F6A93;
  --link-hover: #154C6B;
  --focus: #1F6A93;
  --btn-bg: #1F6A93;
  --btn-ink: #FFFFFF;
  /* footer stays dark in both themes */
  --footer-bg: #23232E;
  --footer-ink: #F2EFEA;
  --footer-muted: #C4C1CB;
  --footer-link: #9AD0EA;

  --font-display: "Lexend", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.375rem, 1.6rem + 3.2vw, 3.5rem);

  --radius: 12px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --measure: 40rem;
  --frame: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16161D; --surface: #20202A; --tint: #282833; --line: #3D3D4A;
    --ink: #F2EFEA; --muted: #C4C1CB;
    --blue: #7FC3E3; --pink: #F28EA5; --gold: #E6B95A; --green: #74D3A6;
    --c-blue: #3A97C2; --c-pink: #D9607D; --c-gold: #C9951C; --c-green: #2FA874; --c-ink: #D9D6E0;
    --link: #7FC3E3; --link-hover: #B5DEF0; --focus: #7FC3E3;
    --btn-bg: #7FC3E3; --btn-ink: #16161D;
    --footer-bg: #0F0F14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16161D; --surface: #20202A; --tint: #282833; --line: #3D3D4A;
  --ink: #F2EFEA; --muted: #C4C1CB;
  --blue: #7FC3E3; --pink: #F28EA5; --gold: #E6B95A; --green: #74D3A6;
  --c-blue: #3A97C2; --c-pink: #D9607D; --c-gold: #C9951C; --c-green: #2FA874; --c-ink: #D9D6E0;
  --link: #7FC3E3; --link-hover: #B5DEF0; --focus: #7FC3E3;
  --btn-bg: #7FC3E3; --btn-ink: #16161D;
  --footer-bg: #0F0F14;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 0.14em; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.frame { max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .frame {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand {
  display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink);
  padding: 0.25rem 0;
}
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: 0.01em; }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.42em; margin-top: 0.3rem; }
.l-a { color: var(--blue); } .l-c1 { color: var(--pink); } .l-c2 { color: var(--gold); }
.l-e { color: var(--green); } .l-s1 { color: var(--ink); } .l-s2 { color: var(--gold); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.75rem;
  border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step--1);
}
.site-nav a:hover { background: var(--tint); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em;
  text-decoration-color: var(--blue);
}

/* ---------- page sections ---------- */
main { display: block; }
.section { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; max-width: var(--measure); }
.eyebrow {
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: var(--measure); }

/* page intro for inner pages */
.page-intro { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-intro .frame { display: flex; flex-direction: column; gap: 1rem; }
.shape-row { display: flex; gap: 6px; }
.shape-row span { width: 22px; height: 6px; border-radius: 3px; }
.shape-row .s1 { background: var(--c-blue); } .shape-row .s2 { background: var(--c-pink); }
.shape-row .s3 { background: var(--c-gold); } .shape-row .s4 { background: var(--c-green); }

/* ---------- home hero ---------- */
.hero .frame {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: 2rem 3rem; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.hero-text { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.quilt { width: 100%; max-width: 26rem; justify-self: end; }
.quilt .q-blue { fill: var(--c-blue); } .quilt .q-pink { fill: var(--c-pink); }
.quilt .q-gold { fill: var(--c-gold); } .quilt .q-green { fill: var(--c-green); }
.quilt .q-ink { fill: var(--c-ink); }
.quilt .q-ring-pink { fill: none; stroke: var(--c-pink); stroke-width: 10; }
.quilt .q-open { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; }
.quilt .q-plus { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 52rem) {
  .hero .frame { grid-template-columns: minmax(0, 1fr); }
  .quilt { justify-self: start; max-width: 18rem; order: -1; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.6rem 1.25rem; border-radius: 10px; border: 2px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-ink); font-family: var(--font-display);
  font-weight: 600; font-size: var(--step-0); text-decoration: none; line-height: 1.2;
}
.btn:hover { color: var(--btn-ink); text-decoration: underline; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { color: var(--ink); background: var(--tint); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; min-width: 0;
}
.card .who { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover { border-color: var(--ink); }
.card:hover h3 a { text-decoration-color: currentColor; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card .go { margin-top: auto; font-weight: 700; color: var(--link); }
.mark { width: 28px; height: 28px; flex: none; }
.mark-blue { background: var(--c-blue); border-radius: 6px; }
.mark-pink { background: var(--c-pink); border-radius: 999px; }
.mark-gold { background: var(--c-gold); border-radius: 28px 0 0 0; }
.mark-green { background: var(--c-green); border-radius: 0 0 28px 28px; }
.mark-ink { border: 6px solid var(--c-ink); border-radius: 999px; }

/* feature list: shape + heading + text */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.75rem 2rem; }
.features li { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.features .mark { width: 22px; height: 22px; }
.features .mark-gold { border-radius: 22px 0 0 0; }
.features .mark-green { border-radius: 0 0 22px 22px; }
.features .mark-ink { border-width: 5px; }

/* simple bullet list with coloured dots */
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.dots li { position: relative; padding-left: 1.5rem; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem;
  border-radius: 999px; background: var(--c-blue);
}
.dots li:nth-child(5n+2)::before { background: var(--c-pink); }
.dots li:nth-child(5n+3)::before { background: var(--c-gold); }
.dots li:nth-child(5n+4)::before { background: var(--c-green); }
.dots li:nth-child(5n+5)::before { background: var(--c-ink); }
.cols-2 { columns: 2 18rem; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; margin-bottom: 0.6rem; }

/* check list */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.35em; width: 0.55rem; height: 1rem;
  border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* numbered steps: a real sequence */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-width: var(--measure); }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; background: var(--surface); border: 3px solid var(--green); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: 1rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.5rem; bottom: 0.25rem; width: 2px; background: var(--line);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }

/* ACCESS acronym */
.acronym { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 0.75rem; }
.acronym li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
}
.acronym b { display: block; font-size: 2.25rem; line-height: 1; margin-bottom: 0.35rem; font-weight: 700; }

/* callout */
.callout {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1rem 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center;
}
.callout .stack { min-width: 0; }
@media (max-width: 52rem) { .callout { grid-template-columns: minmax(0, 1fr); } }
.pill {
  align-self: flex-start; display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--tint); color: var(--ink); font-weight: 700; font-size: var(--step--1);
  border: 1px solid var(--line);
}

/* at-a-glance definition list */
.glance { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.glance dt, .glance dd { padding: 0.8rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.glance dt { font-weight: 700; padding-right: 1.5rem; color: var(--ink); }
@media (max-width: 30rem) {
  .glance { grid-template-columns: minmax(0, 1fr); }
  .glance dt { border-bottom: 0; padding-bottom: 0; }
}

/* quote */
.quote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.3; max-width: 32rem; }
.quote p::before { content: "\201C"; color: var(--gold); }
.quote p::after { content: "\201D"; color: var(--gold); }

/* contact block */
.contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: var(--measure);
}
.email { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); overflow-wrap: anywhere; }
.note { font-size: var(--step--1); color: var(--muted); }
address { font-style: normal; }

/* on-this-page nav */
.toc { background: var(--tint); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: var(--measure); }
.toc h2 { font-size: var(--step-0); margin-bottom: 0.5rem; }
.toc ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }

/* two column section body */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* team */
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.person { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
.person .photo {
  width: 9rem; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: #FFFFFF; max-width: 100%;
}
.person .photo.p-blue { background: #1F6A93; } .person .photo.p-pink { background: #A8344F; } .person .photo.p-green { background: #1C6B4B; }
.person .role { font-weight: 700; color: var(--muted); }
@media (max-width: 36rem) { .person { grid-template-columns: minmax(0, 1fr); } .person .photo { width: 6.5rem; font-size: 1.75rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; }
.site-footer .frame { padding-block: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem 3rem; }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: var(--footer-link); }
.site-footer h2 { font-size: var(--step-0); color: var(--footer-ink); margin-bottom: 0.5rem; }
.site-footer p, .site-footer address { color: var(--footer-muted); font-size: var(--step--1); line-height: 1.6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--step--1); }
.footer-brand .brand-word { font-size: 1.5rem; }
.footer-brand .l-s1 { color: #F2EFEA; }
.footer-brand .l-a { color: #7FC3E3; } .footer-brand .l-c1 { color: #F28EA5; } .footer-brand .l-c2, .footer-brand .l-s2 { color: #E6B95A; } .footer-brand .l-e { color: #74D3A6; }
.footer-logo { width: 84px; height: auto; display: block; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid #3D3D4A; }
.footer-bottom .frame { padding-block: 1.25rem; display: block; }

/* ---------- user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .card, .callout, .contact-box, .acronym li, .btn { border: 2px solid CanvasText; }
  .mark, .shape-row, .quilt, .dots li::before { forced-color-adjust: auto; }
  .site-nav a[aria-current="page"] { text-decoration-color: CanvasText; }
}
@media print {
  .site-nav, .skip-link, .quilt, .actions { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* sections and main that receive focus from skip and in-page links show no ring */
[tabindex="-1"]:focus { outline: none; }
/* five-item lists sit 3 + 2 instead of leaving one alone on a row */
.features.five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

/* header: nav plus language switch */
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.9rem;
  border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: var(--step--1);
}
.lang-switch:hover { background: var(--tint); color: var(--ink); text-decoration: underline; }

/* Indigenous affirmation */
.affirmation { background: var(--tint); }
.affirmation h2 { font-size: var(--step-2); }

/* French quotation marks */
.quote:lang(fr) p::before { content: "\00AB\00A0"; }
.quote:lang(fr) p::after { content: "\00A0\00BB"; }
