/* ==========================================================================
   Leni Halliburton—portfolio
   Visual system: "working board"
   The site borrows its structure from facilitation artifacts—a legend that
   labels the work, and fixed bands (Built / How / Why / Outcome) that run the
   same way on every case study. Colors come from the sticky palette of the
   real boards; everything else stays quiet so the legend carries it.
   ========================================================================== */

:root {
  /* surfaces */
  --board:      #EFECF7;   /* canvas gray, like a Figma board */
  --card:       #FFFFFF;
  --ink:        #17161C;   /* near-black, violet cast */
  --ink-soft:   #55545F;
  --ink-faint:  #8B8A96;
  --rule:       #D3D5DE;

  /* accent */
  --accent:     #6321C8;
  --accent-dim: #F0E7FE;

  /* legend chips—lifted from the boards */
  --chip-program:     #7C3AED;
  --chip-facilitation:#2563EB;
  --chip-operations:  #F59E0B;
  --chip-coaching:    #10B981;
  --chip-content:     #EC4899;

  /* type */
  --display: "Bodoni Moda", Didot, Georgia, serif;
  --body:    "Newsreader", Georgia, serif;
  --mono:    "Newsreader", Georgia, serif;   /* now a serif; the name is legacy, leave it */

  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* --------------------------------------------------------------- type ---- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

h1, h2 { font-weight: 400; letter-spacing: 0; line-height: 1.1; }
h3 { font-family: var(--body); font-weight: 600; letter-spacing: 0; }

h1, h2, .principle, .figures .n, .chip, .next a {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 22, "wght" 500;
  font-weight: 500;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* ------------------------------------------------------------- layout ---- */

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------- header ---- */

.masthead {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: baseline; justify-content: space-between;
  padding: 1.5rem 0 0;
}

.wordmark {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--ink-faint); font-weight: 500; }

.masthead nav {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex; gap: 1.25rem;
}
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-photo {
  position: relative;
  margin: 0;
  width: calc(100% + var(--gutter));
  margin-right: calc(var(--gutter) * -1);
  min-height: 26rem;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  border: 0;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(99,33,200,.20), rgba(99,33,200,0) 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-photo {
    width: calc(100% + var(--gutter) * 2);
    margin-inline: calc(var(--gutter) * -1);
    min-height: 20rem;
  }
}
.hero h1 { max-width: 34rem; }
.hero .lede { margin-top: 1.75rem; }

.hero-note {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  margin-top: 2rem;
  max-width: 34rem;
  line-height: 1.75;
}

/* ------------------------------------------------------------- legend ---- */
/* The signature element. A key that labels the work, then doubles as the
   index. Same instrument she used to code a member journey.                */

.legend { padding: 2rem 0 7rem; counter-reset: entry; }

.legend-head {
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .6rem; margin-bottom: 0;
}
.legend-head h2 { font-size: 1.05rem; letter-spacing: 0; }
.legend-head .count {
  font-family: var(--mono); font-size: .75rem; color: var(--ink-faint);
  font-weight: 400; letter-spacing: 0.01em;
  margin-left: auto;
}

.entry {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 3.4rem 8.5rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, box-shadow 160ms ease, padding 160ms ease;
}

.entry:has(.chip.program)      { --row: var(--chip-program); }
.entry:has(.chip.facilitation) { --row: var(--chip-facilitation); }
.entry:has(.chip.operations)   { --row: var(--chip-operations); }
.entry:has(.chip.coaching)     { --row: var(--chip-coaching); }
.entry:has(.chip.content)      { --row: var(--chip-content); }

.entry:hover, .entry:focus-visible {
  background: color-mix(in srgb, var(--row) 8%, var(--card));
  box-shadow: inset 4px 0 0 var(--row);
  padding-left: 1.25rem;
  padding-right: 1rem;
  margin-left: -1.25rem;
  margin-right: -1rem;
  outline: none;
}

/* the chip is now a numeral, not a square */
.chip {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: .9;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.chip::before { content: counter(entry, decimal-leading-zero); }

.chip.program      { color: var(--chip-program); }
.chip.facilitation { color: var(--chip-facilitation); }
.chip.operations   { color: var(--chip-operations); }
.chip.coaching     { color: var(--chip-coaching); }
.chip.content      { color: var(--chip-content); }

.entry .family {
  font-family: var(--mono); font-size: .72rem;
  font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: .75rem;
}
.entry .body h3 { margin-bottom: .35rem; }
.entry .body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.entry .meta {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-faint);
  font-weight: 400; letter-spacing: 0.01em;
  margin-top: .55rem; letter-spacing: .02em;
}

@media (max-width: 46rem) {
  .entry { grid-template-columns: 3.4rem 1fr; }
  .entry .family { grid-column: 2; padding-top: .5rem; margin-bottom: .3rem; }
  .entry .body { grid-column: 2; }
}

.also {
  padding: 2.25rem 0 0;
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0 1.25rem;
}
.also-label {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
  padding-top: .2rem;
}
.also ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}
.also li {
  padding: .8rem 0;
  border-top: 1px solid var(--rule);
  font-size: .98rem;
  color: var(--ink-soft);
}
.also li:first-child { border-top: 0; padding-top: 0; }
.also li b { color: var(--ink); font-weight: 600; }

@media (max-width: 46rem) {
  .also { grid-template-columns: 1fr; }
  .also-label { margin-bottom: .75rem; }
}

/* --------------------------------------------------------- case study ---- */

.case-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
  max-width: 46rem;
}
.case-hero .kicker {
  font-family: var(--mono); font-size: .74rem;
  font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink-faint); margin-bottom: 1.4rem;
}
.case-hero .kicker .chip {
  width: .8rem;
  height: .8rem;
  border-radius: 2px;
  font-size: 0;
  background: currentColor;
}
.case-hero .kicker .chip::before { content: ""; }

.facts {
  display: flex; flex-wrap: wrap; gap: 0 2.5rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0; margin: 2.5rem 0 0;
  font-family: var(--mono); font-size: .82rem;
  font-weight: 400; letter-spacing: 0.01em;
}
.facts div { padding: .4rem 0; }
.facts dt { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; font-size: .68rem; }
.facts dd { margin: .25rem 0 0; color: var(--ink); font-weight: 400; letter-spacing: 0.01em; }

/* banded sections—the same four every time */
.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.band:last-of-type { border-bottom: 0; }

.band-grid {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0 3rem;
  align-items: start;
}
.band-label {
  font-family: var(--mono); font-size: .72rem;
  font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-faint);
  position: sticky; top: 1.5rem;
}
.band-label b { display: block; color: var(--ink); font-weight: 500; }

@media (max-width: 52rem) {
  .band-grid { grid-template-columns: 1fr; gap: 1rem; }
  .band-label { position: static; }
}

.band h2 { margin-bottom: 1.1rem; max-width: var(--measure); }
.band h3 { margin: 2rem 0 .6rem; max-width: var(--measure); }

ul.plain { padding-left: 1.1rem; max-width: var(--measure); margin: 0 0 1.1em; }
ul.plain li { margin-bottom: .55em; }

/* pull quote / principle */
.principle {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 27rem;
  margin: 2.25rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}

/* numbers */
.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0;
  max-width: 48rem;
}
.figures div { background: var(--card); padding: 1.1rem 1.15rem; }
.figures .n {
  font-family: var(--display);
  font-size: 1.9rem; letter-spacing: -0.03em; display: block;
}
.figures .l {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: 0.11em;
  color: var(--ink-soft); line-height: 1.45; display: block; margin-top: .3rem;
}

/* artifact frames */
figure.artifact {
  margin: 2.5rem 0; background: var(--card);
  border: 1px solid var(--rule); padding: 1.5rem;
  max-width: 48rem;
}
figure.artifact svg { display: block; width: 100%; height: auto; }
figure.artifact figcaption {
  font-family: var(--mono); font-size: .72rem; line-height: 1.6;
  font-weight: 500; letter-spacing: 0.11em;
  color: var(--ink-faint); margin-top: 1.1rem;
  border-top: 1px solid var(--rule); padding-top: .8rem;
}

/* session list */
ol.sessions { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0; }
ol.sessions li {
  counter-increment: s;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
ol.sessions li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  font-weight: 400; letter-spacing: 0.01em;
  padding-top: .15rem;
}
ol.sessions h3 { margin: 0 0 .3rem; font-size: 1rem; font-family: var(--body); font-weight: 600; }
ol.sessions p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* callout for the honest bits */
.note {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0; max-width: 40rem;
}
.note p { margin: 0; font-size: 1rem; }
.note .tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .4rem;
}

/* --------------------------------------------------------------- next ---- */

.next { padding: 3.5rem 0; border-top: 1px solid var(--ink); }
.next a { font-family: var(--display); font-size: 1.5rem; text-decoration: none; letter-spacing: -.02em; }
.next a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- strip ---- */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 0;
  align-items: start;
}
.strip figure { margin: 0; }
.strip figure:nth-child(even) { margin-top: 1.75rem; }
.strip img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  filter: saturate(.92);
  transition: filter 160ms ease, transform 160ms ease;
}
.strip figure:hover img { filter: saturate(1.05); transform: translateY(-3px); }
.strip figcaption {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: .6rem;
}
@media (max-width: 46rem) {
  .strip {
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .strip figure { scroll-snap-align: start; }
}

/* ------------------------------------------------------------- footer ---- */

footer.site {
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0 4rem;
  font-family: var(--mono); font-size: .85rem; color: var(--ink-soft);
  font-weight: 400; letter-spacing: 0.01em;
}
footer.site p { max-width: 46rem; }
footer.site a { color: var(--ink); }

/* ----------------------------------------------------------- a11y/mo ---- */

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
