/* saralearnlabs.com. Token values come from the Tokens table in brand/colours.md. */

:root {
  color-scheme: only light;
  --brand: #1e5b4a;
  --brand-dark: #143f34;
  --accent: #8a3f72;
  --surface: #fafaf7;
  --surface-alt: #eef2ee;
  --text: #18211e;
  --text-muted: #4a5752;
  --on-brand: #ffffff;
  --border: #cdd6d1;
}

/* Layout for saralearnlabs.com. Colours come only from the tokens above (brand/colours.md). */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

svg { max-width: 100%; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

@media (min-width: 48rem) {
  .wrap { padding: 0 2rem; }
}

/* Links and focus */

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border: 2px solid var(--brand);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header and menu */

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--brand); text-decoration: none; }
.brand svg { flex: none; width: 2.25rem; height: 2.25rem; }
.brand-name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.brand:hover { color: var(--brand-dark); }
.brand:hover .brand-name { text-decoration: underline; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { border-bottom-color: var(--border); color: var(--brand-dark); }
.site-nav a[aria-current] { border-bottom-color: var(--accent); color: var(--brand-dark); }

/* Page content */

main { display: block; padding: 2rem 0 3.5rem; }

h1, h2, h3 { color: var(--brand-dark); line-height: 1.25; }
h1 { margin: 0 0 0.75rem; font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { margin: 2.5rem 0 0.75rem; font-size: 1.5rem; }
h3 { margin: 1.75rem 0 0.4rem; font-size: 1.2rem; }

@media (min-width: 48rem) {
  h1 { font-size: 2.6rem; }
}

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

.content > p,
.content > ul:not(.cards):not(.people),
.content > ol,
.content > h2,
.content > h3,
.page-head > * { max-width: 44rem; }

/* Home hero and inner page head */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-bottom: 2.5rem;
  padding: 2.25rem 2rem;
  border-top: 6px solid var(--brand);
  border-radius: 1rem;
  background: var(--surface-alt);
}
.hero-text > :last-child { margin-bottom: 0; }
.hero-text > p:first-of-type { font-size: 1.2rem; }
.hero-art svg { display: block; width: 9rem; height: 9rem; }

@media (max-width: 44rem) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
  .hero-art { order: -1; }
  .hero-art svg { width: 4rem; height: 4rem; }
}

.page-head { margin-bottom: 2rem; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 6px solid var(--accent); }
.page-head > :last-child { margin-bottom: 0; }
.page-head > p:first-of-type { font-size: 1.2rem; }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.actions li { margin: 0; }
.button {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--brand);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover { border-color: var(--brand-dark); color: var(--brand-dark); text-decoration: underline; }
.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--brand-dark); color: var(--on-brand); }

/* Cards (the three pillars) and people */

.cards,
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}
.card,
.person {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-alt);
}
.card > h2,
.person > h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.card > h2::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
}
.card > :last-child,
.person > :last-child { margin-bottom: 0; }
.person .role { color: var(--text-muted); font-weight: 600; }

/* Timeline (history) */

.timeline { position: relative; max-width: 44rem; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.45rem;
  border-left: 2px solid var(--border);
}
.timeline li { position: relative; margin: 0; padding: 0 0 1.5rem 2.25rem; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}
.timeline h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.timeline li > :last-child { margin-bottom: 0; }

/* Status tags and placeholders */

.tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Placeholder slots the owner still has to fill in. Prod refuses to deploy while any remain. */
.placeholder {
  padding: 0 0.2rem;
  border: 2px dashed var(--accent);
  border-radius: 0.25rem;
  background: var(--surface-alt);
  color: var(--text);
}

/* Footer */

.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); background: var(--surface-alt); color: var(--text-muted); font-size: 0.95rem; }
.site-footer p { margin: 0 0 0.75rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer .copyright { color: var(--text); font-weight: 600; }

/* The drawing: a sprout */

.d-bg { fill: var(--surface-alt); }
.d-brand { fill: var(--brand); }
.d-accent { fill: var(--accent); }
.d-line { fill: none; stroke: var(--brand-dark); stroke-width: 3; stroke-linecap: round; }
