/* ──────────────────────────────────────────────────────────
   Joshua Anayochukwu — site styles
   Colours live in the two blocks below (light, then dark).
   ────────────────────────────────────────────────────────── */

/* ── Colours ─────────────────────────────────────────
   Palette: #0E2F3D deep teal · #A1CAC2 seafoam · #A9B9B8 sage grey
            #D6EAED ice · #2D2D2D charcoal
   Change a hex code here and the whole site follows.     */
:root {
  --paper: #0E2F3D;          /* page background */
  --surface: #133847;        /* cards and panels (a shade lighter than the page) */
  --wash: #2D2D2D;           /* footer */
  --ink: #D6EAED;            /* main text */
  --muted: #A9B9B8;          /* secondary text */
  --rule: #24505f;           /* lines and borders */
  --brand: #A1CAC2;          /* links, active menu item, outlines */
  --brand-ink: #A1CAC2;
  --brand-tint: rgba(161, 202, 194, 0.14);
  --accent: #A1CAC2;         /* highlighted word and main buttons */
  --accent-text: #0E2F3D;    /* text on the main buttons */
  --on-brand: #0E2F3D;
  --hero-1: #2D2D2D;         /* banner gradient, start */
  --hero-2: #0E2F3D;         /* banner gradient, end */
  --hero-glow: rgba(161, 202, 194, 0.16);
  --hero-text: #ffffff;
  --hero-muted: #D6EAED;
  --pending: #f2c27a;
  --pending-tint: rgba(242, 194, 122, 0.14);

  /* The four areas of work */
  --c-data-quality: #7fd9ad;  --c-data-quality-tint: rgba(127, 217, 173, 0.14);
  --c-analytics: #8fbcff;     --c-analytics-tint: rgba(143, 188, 255, 0.14);
  --c-data-engineering: #c4a8ff; --c-data-engineering-tint: rgba(196, 168, 255, 0.15);
  --c-ai-automation: #ffb07a; --c-ai-automation-tint: rgba(255, 176, 122, 0.15);

  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --radius: 12px;
  --wrap: 72rem;
  --measure: 42rem;
  color-scheme: dark;
}

/* Each area sets --t / --t-tint for whatever sits inside it */
.t-data-quality { --t: var(--c-data-quality); --t-tint: var(--c-data-quality-tint); }
.t-analytics { --t: var(--c-analytics); --t-tint: var(--c-analytics-tint); }
.t-data-engineering { --t: var(--c-data-engineering); --t-tint: var(--c-data-engineering-tint); }
.t-ai-automation { --t: var(--c-ai-automation); --t-tint: var(--c-ai-automation-tint); }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.visually-hidden {
  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 { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

/* ── Header ─────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.0625rem; letter-spacing: -0.005em; }
.brand-mark { width: 1.35rem; height: 1.35rem; border-radius: 6px; background: linear-gradient(135deg, #A1CAC2 0 55%, #D6EAED 55% 100%); flex: none; }
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 0.25rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.nav .nav-cta { color: var(--brand-ink); font-weight: 600; border: 1.5px solid var(--brand); border-radius: 8px; padding: 0.35rem 0.8rem; }
.nav .nav-cta:hover { background: var(--brand-tint); color: var(--brand-ink); }
.nav .nav-cta[aria-current="page"] { box-shadow: none; background: var(--brand-tint); }

@media (max-width: 40rem) {
  .header-inner { padding-block: 0.9rem; }
  .nav { width: 100%; gap: 0.5rem 1.1rem; }
  .nav a { white-space: nowrap; }
}

/* ── Buttons ────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-block; font-weight: 600; font-size: 0.9875rem; text-decoration: none;
  color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.75rem 1.3rem; line-height: 1.2;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button-primary:hover { background: #D6EAED; border-color: #D6EAED; }
.button-light { border-color: currentColor; color: inherit; background: transparent; }
.button-light:hover { background: rgba(255, 255, 255, 0.08); }
.button-link { border-color: transparent; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.button-quiet { border-color: transparent; color: var(--brand-ink); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* ── Hero ───────────────────────────────────────────── */

.hero-band {
  color: var(--hero-text);
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--hero-glow), transparent 60%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-bottom: 1px solid var(--rule);
}
.hero { padding-block: clamp(3.75rem, 9vw, 7rem) clamp(3.25rem, 7vw, 5.5rem); }
.hero-title { color: var(--hero-text); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; max-width: 15ch; margin-bottom: 0.45em; }
.hero-title .hl { color: var(--accent); }
.hero-lede { font-size: 1.1875rem; line-height: 1.6; max-width: 38rem; color: var(--hero-muted); }
.hero .button-light { color: var(--hero-text); }
.hero a:focus-visible, .cta-band a:focus-visible { outline-color: var(--accent); }

/* ── Sections ───────────────────────────────────────── */

.section { padding-block: clamp(2.5rem, 5vw, 3.75rem); position: relative; }
.section::before { content: ""; position: absolute; top: 0; left: clamp(1.25rem, 4vw, 2.5rem); right: clamp(1.25rem, 4vw, 2.5rem); border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem 4rem; }
.split p { max-width: var(--measure); }

.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.track { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--t); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; }
.track h3 { font-size: 1.25rem; margin-bottom: 0.45em; }
.track h3 a { color: var(--t); text-decoration: none; }
.track h3 a:hover { text-decoration: underline; }
.track p { font-size: 0.9625rem; margin-bottom: 0.75em; }
.track .tool-chips { margin-bottom: 0.9rem; }
.track-count { margin: auto 0 0; font-size: 0.875rem; }
@media (max-width: 62rem) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .tracks { grid-template-columns: 1fr; } }

.tool-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tool-chips li { font-size: 0.8125rem; font-weight: 600; color: var(--t, var(--brand-ink)); background: var(--t-tint, var(--brand-tint)); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* ── Project cards ──────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--t, var(--brand)); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.2rem; display: flex; flex-direction: column; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card[hidden] { display: none; }
.card:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.track-chip { font-size: 0.8125rem; font-weight: 700; color: var(--t); background: var(--t-tint); border-radius: 999px; padding: 0.2rem 0.65rem; }
.card-media { margin: -1.35rem -1.35rem 1.1rem; border-radius: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.9rem; }
.card-title { font-size: 1.3125rem; margin-bottom: 0.45em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-title a:hover { text-decoration: underline; }
.card-summary { font-size: 0.9875rem; flex: 1; }
.card-tools { font-size: var(--step--1); color: var(--t, var(--muted)); font-weight: 600; margin: 0; padding-top: 0.85rem; border-top: 1px dashed var(--rule); }
.data-note { font-size: 0.8125rem; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; font-weight: 600; border-radius: 999px; padding: 0.2rem 0.6rem 0.2rem 0.45rem; line-height: 1.3; }
.status svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status-done { color: var(--brand-ink); background: var(--brand-tint); }
.status-progress { color: var(--pending); background: var(--pending-tint); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.filters[hidden] { display: none; }
.filters button {
  font: inherit; font-size: 0.9375rem; color: var(--ink); background: transparent; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.95rem;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--t, var(--accent)); border-color: var(--t, var(--accent)); color: #0E2F3D; }

/* ── Inner pages ────────────────────────────────────── */

.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.page-head { max-width: 46rem; margin-bottom: 2.5rem; }
.page-head h1::after { content: ""; display: block; width: 3.5rem; height: 5px; border-radius: 3px; margin-top: 0.9rem; background: linear-gradient(90deg, var(--t, var(--brand)) 0 60%, var(--accent) 60% 100%); }
.page-head h1 { font-size: clamp(2.125rem, 4.4vw, 3rem); letter-spacing: -0.018em; }
.page-head .muted a { color: var(--muted); }
.lede { font-size: 1.1875rem; line-height: 1.55; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.25em; }
.prose h3 { margin-top: 1.75em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose-serif { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; }
.prose-serif h2, .prose-serif h3 { font-family: var(--serif); }
.prose code { font-size: 0.88em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 0.05em 0.3em; }
.prose pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.5; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 0.9375rem; margin-bottom: 1.5em; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 0.5rem 0.75rem; text-align: left; }
.prose img { border-radius: 8px; border: 1px solid var(--rule); }
.portrait { width: 9rem; height: 9rem; object-fit: cover; border-radius: 50%; margin-bottom: 1.5rem; border: 0 !important; }

.project-cover { margin: 0 0 2.5rem; max-width: 60rem; }
.project-cover img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }
.shot { margin: 2rem 0 2.25rem; }
.shot img { display: block; width: 100%; }
.shot a { display: block; }
.shot figcaption { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.5; }
.facts { margin: 0 0 3rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; }
.tag { display: inline-block; margin: 0 0.4rem 0.35rem 0; font-size: 0.875rem; font-weight: 600; color: var(--t); background: var(--t-tint); border-radius: 999px; padding: 0.15rem 0.65rem; text-decoration: none; }
.tag:hover { text-decoration: underline; }
@media (max-width: 30rem) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }

.next-project { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.2rem; max-width: var(--measure); }
.next-project a { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; }

.closing { margin-top: 2.5rem; max-width: var(--measure); background: var(--brand-tint); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; }
.section .closing { margin-top: 0; }
.closing p { margin: 0; font-size: 1.125rem; }

/* Skills grid (About page) */
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 1rem; font-family: var(--sans); }
.prose .skills-grid { max-width: none; width: min(calc(100vw - 2.5rem), 67rem); }
.skill-group { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--t); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.skill-group h3 { color: var(--t); font-size: 1.3rem; margin: 0 0 0.6rem; }
.skill-group h4 { font-family: var(--sans); font-size: 0.875rem; font-weight: 700; color: var(--muted); margin: 1rem 0 0.4rem; }
.skill-list { margin: 0; padding-left: 1.1rem; font-size: 0.9625rem; }
.skill-list li { margin-bottom: 0.3rem; }
.skill-list li::marker { color: var(--t); }

@media (max-width: 46rem) { .skills-grid { grid-template-columns: 1fr; } }
.prose .tool-chips { padding-left: 0; margin-bottom: 0; }
.prose .tool-chips li { margin-bottom: 0; }

.prose .cards-wide { width: min(calc(100vw - 2.5rem), 67rem); margin-bottom: 1.25rem; }
.prose .cards-wide p { margin-bottom: 0; }
.prose .cards-wide .card-summary { margin-bottom: 1em; }

/* Services grid (Work with me page) */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 1rem; font-family: var(--sans); width: min(calc(100vw - 2.5rem), 67rem); }
.service { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--t); border-radius: var(--radius); padding: 1.35rem 1.4rem 1.25rem; display: flex; flex-direction: column; }
.service h3 { color: var(--t); font-size: 1.35rem; margin: 0 0 0.55rem; }
.service p { font-size: 0.98rem; margin: 0 0 0.9rem; }
.service h4 { font-family: var(--sans); font-size: 0.875rem; font-weight: 700; color: var(--muted); margin: 0 0 0.4rem; }
.prose .service-list { margin: 0 0 1.1rem; padding-left: 1.1rem; font-size: 0.95rem; flex: 1; }
.service-list li { margin-bottom: 0.3rem; }
.service-list li::marker { color: var(--t); }
@media (max-width: 46rem) { .services-grid { grid-template-columns: 1fr; } }

/* Work with me: two pathways */
.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; width: min(calc(100vw - 2.5rem), 67rem); margin: 0 0 2.5rem; font-family: var(--sans); }
.pathway { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.35rem 1.4rem; display: flex; flex-direction: column; }
.pathway h2 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.pathway p { margin: 0 0 0.6rem; }
.prose .pathway ul { margin: 0 0 1rem; flex: 1; }
.pathway-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 !important; }
.pathway-actions .button { font-size: 0.9375rem; padding: 0.6rem 1.1rem; }
.pathway .button-light { color: var(--ink); }
@media (max-width: 46rem) { .pathways { grid-template-columns: 1fr; } }

/* Projects page groups */
.project-group { margin-top: 2.5rem; }
.project-group[hidden] { display: none; }
.group-title { font-size: 1.5rem; margin: 0 0 0.25rem; }
.group-note { margin: 0; }
.card-code { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; position: relative; z-index: 1; }
.learning-group { margin-top: 2.25rem; }
.learning-group:first-of-type { margin-top: 0; }

/* Experience highlights */
.highlights { background: var(--brand-tint); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.9rem 1.2rem 0.4rem; margin: 0.75rem 0 1.25rem; }
.highlights h3, .resp-title { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin: 0 0 0.5rem; }

/* Experience */
.job { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 2.5rem; padding-block: 2rem; border-top: 1px solid var(--rule); }
.job-meta p { margin: 0; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.job-body { max-width: var(--measure); }
.job-body h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.job-org { font-weight: 600; }
.job-body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.job-body li { margin-bottom: 0.5em; }
@media (max-width: 44rem) { .job { grid-template-columns: 1fr; } }

/* Learning */
.learning { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
.learning li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.35rem; border-top: 1px solid var(--rule); }
.learning-meta { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.learning-name { font-size: 1.2rem; margin: 0 0 0.15em; }
.learning li p { margin-bottom: 0.35em; }
@media (max-width: 30rem) { .learning li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Writing lists */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding-block: 0.8rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.post-list .muted { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.post-list-full li { display: block; padding-block: 1.25rem; }
.post-list-full li > a { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; margin-right: 0.75rem; }
.post-list-full li p { margin: 0.4rem 0 0; max-width: var(--measure); }

/* ── Call to action band ─────────────────────────────── */

.cta-band { color: var(--hero-text); background: radial-gradient(40rem 20rem at 0% 0%, var(--hero-glow), transparent 60%), linear-gradient(135deg, var(--hero-2), var(--hero-1)); border-block: 1px solid var(--rule); padding-block: clamp(2.75rem, 6vw, 4rem); margin-top: 1rem; }
.cta-band h2 { color: var(--hero-text); max-width: 26ch; margin-bottom: 0.2em; }
.cta-band .actions { margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { background: var(--wash); border-top: 1px solid var(--rule); }
.site-header { border-bottom-color: var(--rule); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: 2.25rem 2.75rem; font-size: 0.9375rem; }
.footer-inner p { margin: 0 0 0.25rem; }
.footer-name { font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: flex-start; }
