/* =========================================================================
   Abi Akinsanya Therapy
   Single stylesheet. No build step — edit this file directly.

   Palette (fixed brand colours — do not substitute):
     --bg        #FEFFE9   page background        13.3:1 against --ink
     --ink       #2E3105   all body/heading text
     --ink-soft  #5A5D31   secondary text          6.8:1 on --bg  (AA body ✓)
     --warm      #C7A982   rules and accents       2.2:1 on --bg  — DECORATIVE
                                                   ONLY, never use for text
     --deep      #59371D   hover, emphasis        10.4:1 on --bg  (AA ✓)
     --surface   #FFFFFF   raised panel, sparing
   ========================================================================= */

/* --- Fonts: self-hosted DM Sans (variable, weights 300–500) -------------- */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  --bg: #FEFFE9;
  --ink: #2E3105;
  --ink-soft: #5A5D31;
  --warm: #C7A982;
  --deep: #59371D;
  --surface: #FFFFFF;

  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  --measure: 65ch;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 11vw, 9.5rem);
  --flow: 1.35em;
}

/* --- Reset --------------------------------------------------------------- */

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

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

body,
h1, h2, p, ul, dl, dd, figure { margin: 0; }

ul { padding: 0; list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Base ---------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;   /* clears the sticky header, which is two rows tall on narrow screens */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.125rem;      /* 18px */
  line-height: 1.7;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 48em) {
  body { font-size: 1.1875rem; }   /* 19px */
}

a { color: inherit; }

a:hover,
a:focus-visible { color: var(--deep); }

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

::selection {
  background: var(--warm);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--warm);
  text-decoration: none;
}

.skip-link:focus-visible { transform: translateY(0.75rem); }

/* --- Typography ---------------------------------------------------------- */

.display {
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.9rem);
}

.display--xl {
  font-size: clamp(2.1rem, 1.15rem + 4.6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
}

.eyebrow {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  letter-spacing: 0.09em;
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.1em;
  color: var(--ink);
}

.section p + p,
.section p + ul,
.section ul + p,
.section .display + p,
.section p + .credential,
.section p + .contact-panel { margin-top: var(--flow); }

.section .display + .lead { margin-top: 1.6rem; }

/* --- Nav ----------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

@supports (backdrop-filter: blur(4px)) {
  .site-head { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); }
}

.nav {
  max-width: 56rem;
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.nav__brand {
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.nav__links a {
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav__links a:hover,
.nav__links a:focus-visible { border-bottom-color: var(--warm); }

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section-y); }

.section--hero {
  padding-top: clamp(3rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.section--contact { padding-bottom: clamp(5rem, 12vw, 10rem); }

/* --- Call to action ------------------------------------------------------ */

.cta-row { margin-top: 2.6rem; }

.cta {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--warm);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--bg);
}

/* --- Full-bleed images --------------------------------------------------- */

.bleed img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

/* --- "Together we can explore" list -------------------------------------- */

.list-intro { margin-top: var(--flow); }

.explore {
  margin-top: 1.1rem;
  color: var(--ink);
}

.explore li { padding-block: 0.42rem; }

@media (min-width: 40em) {
  .explore {
    columns: 2;
    column-gap: 2.5rem;
  }
  .explore li { break-inside: avoid; }
}

/* --- Credential line ----------------------------------------------------- */

.credential {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--warm);
}

.credential strong { font-weight: 500; }

.credential__note { font-style: italic; }

/* --- Practical details (commented-out section in index.html) ------------- */

.facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.6rem 1.75rem;
}

.facts dt { color: var(--ink-soft); }

/* --- Contact ------------------------------------------------------------- */

.contact-panel {
  margin-top: 2.6rem;
  background: var(--surface);
  border: 1px solid var(--warm);
  padding: clamp(1.6rem, 5vw, 2.6rem);
}

.contact-line {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  word-break: break-word;
}

.contact-line + .contact-line { margin-top: 0.35rem; }

.contact-line a {
  text-decoration: none;
  border-bottom: 1px solid var(--warm);
  padding-bottom: 0.1rem;
}

.contact-line a:hover,
.contact-line a:focus-visible { border-bottom-color: var(--deep); }

.contact-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* --- Footer -------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--warm);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: var(--ink-soft);
  font-size: 1rem;
}

.foot-name { color: var(--ink); }

.foot-list {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
}

.foot-list a { text-decoration-color: var(--warm); text-underline-offset: 0.25em; }

.foot-copy { margin-top: 1.6rem; font-size: 0.875rem; }

/* --- 404 / privacy pages ------------------------------------------------- */

.page-body h2 {
  margin-top: 2.6rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.35;
}

.page-body p + p,
.page-body h2 + p,
.page-body p + ul { margin-top: var(--flow); }

.page-body ul {
  margin-top: var(--flow);
  padding-left: 1.2rem;
  list-style: disc;
}

.page-body li { padding-block: 0.2rem; }

.page-body .draft-note {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--warm);
  color: var(--ink-soft);
  font-size: 1rem;
}

.back-link { margin-top: 2.6rem; }

/* --- Scroll reveal (progressive; see the script in index.html) ----------- */

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.has-reveal .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --- Motion preferences -------------------------------------------------- */

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

  .has-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-head, .bleed, .cta-row, .skip-link { display: none; }
  body { font-size: 11pt; }
}
