/* Nkeita Services: knowledge passed on. Indigo ink and baobab green, with a
   serif for headings so the page reads like advice, not a brochure. */
:root {
  --paper: #f4f6f9;
  --paper-deep: #e8ecf3;
  --ink: #1f2a5c;
  --ink-soft: #4a5378;
  --leaf: #3f7d5b;
  --leaf-light: #cfe3d6;
  --line: #d3d9e6;
  --on-ink: #f4f6f9;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4.6rem);

  --wrap: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); max-width: 14ch; }
h2 { font-size: var(--step-2); max-width: 24ch; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.25; }

p { max-width: 62ch; color: var(--ink-soft); }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.defs { position: absolute; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.6rem 1rem; background: var(--ink); color: var(--on-ink); }
.skip:focus { top: 1rem; }

/* The mark */
/* Colors come from custom properties, because they reach inside <use>, and
   ordinary selectors don't. */
.mark-trunk { fill: var(--mark-ink, var(--ink)); }
.mark-branches { fill: none; stroke: var(--mark-ink, var(--ink)); stroke-width: 3.5; stroke-linecap: round; }
.mark-leaves { fill: var(--mark-leaf, var(--leaf)); }
.mark-ground { stroke: var(--mark-leaf, var(--leaf)); stroke-width: 3; stroke-linecap: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 2rem; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.brand-sub { display: block; margin-top: 0.2rem; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--leaf); }
.brand-small .mark { width: 1.6rem; }
.brand-small .brand-name { font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.button) { text-decoration: none; font-weight: 500; }
.menu-toggle { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem;
  background: var(--ink); color: var(--on-ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.button:hover { background: var(--leaf); border-color: var(--leaf); color: var(--on-ink); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 2.5rem; padding: 0 1.1rem; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); border-color: var(--ink); }
.button-light { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.button-light:hover { background: var(--leaf-light); border-color: var(--leaf-light); color: var(--ink); }

/* Hero: the proverb is the one memorable thing on the page. */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.proverb { position: relative; padding: 2.5rem 2rem 2rem; background: var(--ink); color: var(--on-ink); border-radius: 4px 48px 4px 4px; }
.proverb-mark { width: 4.5rem; height: auto; margin-bottom: 1.5rem; }
.proverb { --mark-ink: var(--on-ink); --mark-leaf: #7fbf98; }
.proverb blockquote p { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.3; color: var(--on-ink); font-style: italic; }
.proverb figcaption { margin-top: 1.25rem; font-size: var(--step--1); color: #b9c1dc; }

/* Sections */
section:not(.hero) { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-intro { margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; }

.service-list { margin-top: 3.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2.5rem; }
.service-list li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.service-list p { margin-top: 0.6rem; }

/* The stages are a real sequence, so they are numbered. */
.method { background: var(--paper-deep); }
.stages { margin-top: 3.25rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: stage; }
.stages li { counter-increment: stage; }
.stages li::before {
  content: counter(stage);
  display: block; margin-bottom: 0.75rem;
  font-family: var(--serif); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--leaf);
}
.stages p { margin-top: 0.5rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
.about-name { margin-top: 0.75rem; font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.about-copy { display: grid; gap: 1.1rem; }
.about-copy p:first-child { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.about-copy a { font-weight: 600; }

.contact { background: var(--ink); color: var(--on-ink); border-top: 0; }
.contact h2 { color: var(--on-ink); }
.contact p { color: #c9cfe4; }
.contact-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }

.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { font-size: var(--step--1); }

.not-found { min-height: 70vh; display: grid; align-content: center; gap: 1.5rem; padding-block: var(--section); }

@media (max-width: 60rem) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 40rem) {
  .service-list, .stages { grid-template-columns: 1fr; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
    background: transparent; border: 2px solid var(--ink); border-radius: 999px;
    font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
