:root {
  --paper: #f3efe6;
  --paper-2: #e8e1d4;
  --ink: #1b1714;
  --ink-soft: #5c564e;
  --rule: #d6cec0;
  --accent: #c24e16;
  --accent-ink: #9a3c10;
  --accent-hover: #8f350c;
  --white: #fbf8f2;
  --newsprint: #f3efe6;
  /* Text on the coloured course tiles. Stays light in both themes: the tiles
     keep their colour, so --white (a surface token) would invert underneath it. */
  --thumb-ink: #fbf8f2;
  --prose: 42rem;
  --page: 72rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* In-page anchors land below the sticky header, not under it. */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
}

/* Hover raises contrast. --accent tests at 4.16:1 on paper, under the 4.5 floor. */
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.prose-width { max-width: var(--prose); }

/* The header floats above the page as it scrolls. Its background runs the
   full window width (the shadow and clip-path trick) while its content stays
   inside .wrap. --mini is the docked hedcut's size; --dock (0 to 1) is set by
   js/portrait-dock.js on the home page and is 1 everywhere else. */
header.site {
  --mini: 2.75;
  --dock: 1;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 0.85rem 0 0.8rem;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

header.site.home { --dock: 0; }

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* The small stippled portrait beside the wordmark. On the home page it opens
   up as the big portrait flies in, so the name slides right to make room. */
.mini-portrait {
  width: calc(var(--dock) * var(--mini) * 1rem);
  height: calc(var(--mini) * 1rem);
  margin-right: calc(var(--dock) * 0.65rem);
  border-radius: 50%;
  object-fit: cover;
  /* Newsprint stays light in both themes, so the ink dots always show. */
  background: var(--newsprint);
  box-shadow: 0 0 0 1px var(--rule);
  opacity: 1;
}

header.site.home .mini-portrait { opacity: 0; }
header.site.home.docked .mini-portrait { opacity: 1; }

.wordmark:hover { color: var(--accent); }

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  font-size: 0.92rem;
}

nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

main { padding: 2.4rem 0 4.5rem; }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0 2.4rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site a { color: inherit; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 2.6rem 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }

.lede {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 36rem;
  margin: 0 0 1.2rem;
}

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

.hero {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: start;
  margin-bottom: 2.2rem;
}

/* Home hero: the colour photo with the hedcut stacked on top, fully
   transparent until the visitor scrolls. It rises above the sticky header
   while it travels into it. */
.portrait-morph {
  position: relative;
  z-index: 40;
  width: 10rem;
  height: 10rem;
  transform-origin: 0 0;
  will-change: transform;
}

.portrait-morph .portrait { position: absolute; inset: 0; }
.portrait-morph .hedcut { opacity: 0; background: var(--newsprint); }

.portrait {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--rule);
}

.role {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.bio {
  max-width: var(--prose);
  font-size: 1.08rem;
}

.bio p { margin: 0 0 1rem; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0.5rem;
}

.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  min-height: 7.4rem;
}

.tile:hover { border-color: var(--accent); }

.tile .n {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.tile strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.tile span { color: var(--ink-soft); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  min-height: 14.5rem;
  overflow: hidden;
}

a.card:hover { border-color: var(--ink); }

.card .thumb {
  height: 5.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  color: var(--thumb-ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}

.card .body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card .meta { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.card h3 { margin: 0.2rem 0 0.4rem; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  margin-right: 0.35rem;
}

.badge.built { color: var(--accent-ink); border-color: var(--accent); }

.feed { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.feed li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.feed time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.feed .post { min-width: 0; }
.feed .post p { margin: 0.15rem 0 0; }
.feed .source {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.quote {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  margin: 0 0 0.9rem;
}

.quote p { margin: 0 0 0.6rem; }
.quote footer { color: var(--ink-soft); font-size: 0.88rem; }

.people { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.people span {
  background: var(--paper-2);
  padding: 0.1rem 0.45rem;
  font-size: 0.82rem;
}

table.roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
table.roster th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
  padding: 0.4rem 0.6rem 0.5rem 0;
}
table.roster td {
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0.6rem 0.7rem 0;
  vertical-align: top;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0 2rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
}
.stat b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.course-hero .thumb {
  height: 17rem;
  margin: 0 0 1.4rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  color: var(--thumb-ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
}

/* Course visuals: an animated diagram drawn by js/course-hero.js fills the
   tile, and the course number sits on top of it. */
.thumb { position: relative; overflow: hidden; }
.thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.thumb span, .course-hero .thumb span { position: relative; z-index: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.card .thumb canvas { opacity: 0.55; }
@media (max-width: 40rem) {
  .course-hero .thumb { height: 13rem; }
}

.project-types { list-style: none; padding: 0; margin: 0.8rem 0 1.4rem; display: grid; gap: 0.9rem; }
.project-types .bar-head { display: flex; justify-content: space-between; gap: 1rem; }
.project-types .count { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.project-types .bar { height: 0.45rem; background: var(--accent); border-radius: 2px; margin: 0.25rem 0 0.3rem; }
.project-types .example { color: var(--ink-soft); font-style: italic; font-size: 0.95rem; }

.materials li { margin-bottom: 0.7rem; }

.empty {
  border: 1px dashed var(--rule);
  padding: 1.1rem 1.2rem;
  color: var(--ink-soft);
  max-width: var(--prose);
}

.contact-list { list-style: none; padding: 0; margin: 0; max-width: 36rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list span { color: var(--ink-soft); }

.c-rust { background: #a8410f; }
.c-ink { background: #2a2420; }
.c-olive { background: #4d5a3c; }
.c-slate { background: #3d4c5c; }
.c-wine { background: #6e2f3a; }
.c-copper { background: #8a4b28; }
.c-pine { background: #2f4a43; }
.c-navy { background: #243652; }
.c-clay { background: #8f5334; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2rem;
}

.person {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.person img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--rule);
}

.person h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.person .meta { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.35rem; }
.person p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.portfolio { display: grid; gap: 1.2rem; margin: 1.2rem 0 1.5rem; }

.portfolio-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
}

@media (min-width: 46rem) {
  .portfolio-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.portfolio-item .shot {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-2);
}

.portfolio-item .body { padding: 1.1rem 1.25rem 1.25rem; }
.portfolio-item .meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.portfolio-item h2 { margin: 0.3rem 0 0.6rem; border: 0; padding: 0; }
.portfolio-item p { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }
.portfolio-item .links { color: var(--ink); margin-top: 0.9rem; }
.portfolio-item .note {
  border-left: 3px solid var(--rule);
  padding-left: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  min-height: 18rem;
}

a.project:hover { border-color: var(--ink); }

.project .shot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--paper-2);
}

.project .body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.project .meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.project h3 { margin: 0.25rem 0 0.4rem; font-size: 1.15rem; }
.project p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.project .who { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink); }

.cv {
  max-width: 46rem;
}

.cv h2 {
  margin-top: 2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
}

.cv h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
}

.cv ul { padding-left: 1.15rem; }
.cv li { margin: 0.35rem 0; }
.cv p { margin: 0.4rem 0; }
.cv .cv-head { margin-bottom: 1.4rem; }
.cv .cv-head p { margin: 0.2rem 0; color: var(--ink-soft); }

.paper-list { list-style: none; padding: 0; margin: 0; }
.paper-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
.paper-list h3 { margin: 0 0 0.3rem; }
.paper-list .meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.35rem; }
.paper-list.placeholder { opacity: 0.72; }

@media print {
  header.site nav, footer.site, .skip { display: none !important; }
  body { background: white; }
  .wrap { width: 100%; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 820px) {
  .tiles, .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .portrait, .portrait-morph { width: 8rem; height: 8rem; }
  .tiles, .stat-row { grid-template-columns: 1fr; }
  /* Four stats as a compact 2 x 2 block instead of four full-width boxes. */
  .stats.linked { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.2rem; }
  .stats.linked a { padding: 0.65rem 0.75rem; }
  .stats.linked strong { font-size: 1.55rem; }
  .stats.linked span { font-size: 0.82rem; }
  .feed li, .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  /* Keep the floating header to two short rows: name, then a nav line that
     scrolls sideways instead of wrapping into three or four. */
  header.site { --mini: 2.3; padding-top: 0.7rem; padding-bottom: 0.55rem; row-gap: 0.35rem; }
  header.site .wordmark { font-size: 1.2rem; }
  nav.primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    scrollbar-width: none;
  }
  nav.primary::-webkit-scrollbar { display: none; }
  .wrap { width: min(var(--page), calc(100% - 1.6rem)); }
}

/* ---------------------------------------------------------------------------
   Dark mode. Same warm paper design, inverted: deep ink ground, paper text.
   Only the tokens change; every rule above reads through them.
   --------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17130f;
    --paper-2: #2a231c;
    --ink: #ece5da;
    --ink-soft: #a89d8e;
    --rule: #38302a;
    --accent: #f0a97f;
    --accent-ink: #f09a6b;
    --accent-hover: #ffd0b4;
    --white: #1f1913;
  }

  /* Two course tiles sit within 1.5:1 of the dark card surface and vanish into
     it. Lifted just enough to read as tiles; the rest already separate. */
  .c-ink  { background: #544639; }
  .c-navy { background: #334b73; }

  .portrait, .person img { box-shadow: 0 0 0 1px var(--rule); }
  img.shot { opacity: 0.92; }
  a.card:hover, a.project:hover { border-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible keyboard focus. The default ring disappears against the paper. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reserved capstone slots were rendering their own editing instructions.
   They are filtered out at build time now; this styles any that are dimmed
   deliberately. The old selector targeted the list, not its items. */
.paper-list li.placeholder { opacity: 0.72; }

.btn {
  font: inherit;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
a.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 0.6rem 1.05rem; border-radius: 3px; }
/* The primary booking button. --accent-ink passes 4.5:1 with paper text in
   both themes; the hover darkens it further. */
.btn.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }

/* Booking row under the home and practice introductions. */
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; margin: 1.6rem 0 0.4rem; }

/* "Book a call" in the header: the one link styled as an action. */
nav.primary a.nav-cta {
  color: var(--accent-ink);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.05rem 0.6rem;
  text-decoration: none;
}
nav.primary a.nav-cta:hover,
nav.primary a.nav-cta[aria-current="page"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); text-decoration: none; }

/* Advised projects: an original diagram beside each description. */
.advised { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 1.2rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.advised .advising-art { width: 100%; height: auto; display: block; border-radius: 3px; }
.advised .meta { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.03em; margin: 0 0 0.3rem; }
.advised h3 { margin: 0 0 0.45rem; }
.advised p { margin: 0 0 0.6rem; max-width: 40rem; }
.methods { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.methods li { font-size: 0.78rem; border: 1px solid var(--rule); padding: 0.1rem 0.5rem; border-radius: 999px; color: var(--ink-soft); }
.earlier-list { list-style: none; padding: 0; max-width: 44rem; }
.earlier-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.earlier-list span { font-variant-numeric: tabular-nums; color: var(--ink-soft); display: inline-block; min-width: 7.5rem; }
@media (max-width: 40rem) { .advised { grid-template-columns: 1fr; } }

/* Consulting proof, engagement shapes, and the course-page prompt. */
.proof { list-style: none; padding: 0; margin: 0.8rem 0 0.6rem; max-width: 44rem; display: grid; gap: 0.8rem; }
.proof li { border-left: 3px solid var(--accent); padding-left: 0.9rem; }
.shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; max-width: 56rem; margin: 0.8rem 0; }
.shapes section { border: 1px solid var(--rule); background: var(--white); padding: 1rem 1.1rem; }
.shapes p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.course-cta { border: 1px solid var(--rule); background: var(--white); padding: 1rem 1.2rem; margin: 2.2rem 0 1rem; }
.course-cta p { margin: 0 0 0.8rem; }

/* Stat tiles (home, projects). */
.stats { list-style: none; padding: 0; margin: 1.8rem 0 0.6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; }
.stats li { background: var(--white); border: 1px solid var(--rule); padding: 0.9rem 1rem; display: grid; gap: 0.2rem; }
.stats strong { font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }
.stats.small { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin: 0.6rem 0 0.8rem; }
/* Home stats link to the page behind each number. */
.stats.linked li { padding: 0; }
.stats.linked a { display: grid; gap: 0.2rem; align-content: start; height: 100%; padding: 0.9rem 1rem; color: inherit; text-decoration: none; }
.stats.linked a span::after { content: " \2192"; color: var(--accent-ink); }
.stats.linked li:hover { border-color: var(--ink); }
.stats.linked a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.stats.small strong { font-size: 1.5rem; }
.decisions { padding-left: 1.1rem; }
.decisions li { margin-bottom: 0.4rem; }

/* Offerings as term chips. */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { border: 1px solid var(--rule); background: var(--white); padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.88rem; }
.chip.hybrid { border-color: var(--accent); }
.chip.evening, .chip.qatar { border-style: dashed; }

/* Worked exercise panel on a course page. */
.panel { border: 1px solid var(--rule); background: var(--white); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.panel figcaption { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.panel table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.panel th, .panel td { text-align: left; padding: 0.3rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.panel td { text-align: right; font-weight: 600; }
.panel p { margin: 0.7rem 0 0; }

/* Career timeline on /consult/. */
.timeline { list-style: none; padding: 0; max-width: 46rem; border-left: 2px solid var(--rule); margin: 0.8rem 0 1rem; }
.timeline li { position: relative; padding: 0.35rem 0 0.8rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -0.4rem; top: 0.75rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); }
.timeline span { display: block; font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; }

.partners { color: var(--ink-soft); max-width: 44rem; }

/* Kinds of consulting on /consult/. */
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.2rem; margin: 2rem 0 1.4rem; max-width: 64rem; }
.kind { background: var(--white); border: 1px solid var(--rule); padding: 1.3rem 1.4rem 1.2rem; }
.kind h2 { margin: 0 0 0.5rem; }
.kind h3 { font-size: 1rem; margin: 1.1rem 0 0.35rem; }
.kind ul { margin: 0; padding-left: 1.1rem; }
.kind li { margin-bottom: 0.35rem; }

/* Consulting offers. */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 2rem 0 1rem; max-width: 56rem; }
.offer { background: var(--white); border: 1px solid var(--rule); padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.offer h2 { margin: 0 0 0.4rem; }
.offer p { margin: 0 0 0.8rem; }
.offer ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer-meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

@media print {
  .no-print { display: none !important; }
}

/* Banner pointing at the five-design review. Deliberately loud: it is the
   thing I want a first-time visitor to click while the review is open. */
.notice-strip{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem 1rem;
  background:var(--white);border:1px solid var(--rule);border-left:4px solid var(--accent);
  padding:.9rem 1.1rem;margin:2rem 0 0;font-size:.96rem;
}
.notice-strip span{color:var(--ink-soft);flex:1;min-width:14rem}
.notice-strip a{white-space:nowrap;font-weight:600}
