/* =============================================================
   [Full Name] — portfolio stylesheet
   Mobile-first. One file, no imports, no web fonts.

   Why no web fonts: they are the most common cause of render-blocking
   requests and font-swap layout shift on portfolio sites. The stacks below
   resolve instantly from the OS, so First Contentful Paint is bound only by
   HTML + this file, and Cumulative Layout Shift from text is zero.
   ============================================================= */

/* ---------- 1. Design tokens ---------------------------------- */
:root {
  /* Cool slate palette: credible and quiet, with a single pine-teal accent.
     Every text/background pair below clears WCAG AA (4.5:1); most clear AAA. */
  --ink:        #101A26;  /* headings, primary text        */
  --slate:      #4A5867;  /* body text            6.6:1 on paper */
  --paper:      #F2F4F7;  /* page background               */
  --surface:    #FFFFFF;  /* raised panels                 */
  --hairline:   #DCE2E9;  /* rules and borders             */
  --accent:     #0E635C;  /* links, CTAs          6.4:1 on paper */
  --accent-ink: #0A4B46;  /* accent hover                  */
  --on-accent:  #FFFFFF;  /* text on accent       7.0:1    */

  /* Type scale, ~1.25 ratio, clamped so it grows with the viewport
     without a single media query for size. */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.90rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.50vw, 2.80rem);
  --step-4:  clamp(2.30rem, 1.70rem + 3.00vw, 4.10rem);

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 4px;
}

/* Dark mode costs nothing here because everything is tokenised, and it
   removes the "flash of light UI" for people with a dark OS preference. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #E8EDF2;
    --slate:      #A6B5C4;
    --paper:      #0D1620;
    --surface:    #131F2B;
    --hairline:   #24323F;
    --accent:     #63C9B9;
    --accent-ink: #8FDCCF;
    --on-accent:  #06231F;
  }
}

/* ---------- 2. Reset and base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Smooth scrolling is opt-in for people who have not asked for less motion. */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Measure: prose caps at ~66 characters for comfortable reading. */
p, li { max-width: 66ch; }

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

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

ul, ol { padding-left: 1.1rem; }

/* One visible focus style everywhere. :focus-visible keeps it for keyboard
   users without ringing the mouse. This is a hard requirement for the
   Lighthouse accessibility audit and for anyone navigating by keyboard. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Layout helpers --------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Sticky header would otherwise cover a section heading after an anchor jump. */
.section { scroll-margin-top: 5rem; }

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

.section-intro { max-width: 60ch; margin-bottom: 2.5rem; }

.note { font-size: var(--step--1); color: var(--slate); }

/* ---------- 4. Skip link -------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- 5. Header and navigation -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.wordmark { text-decoration: none; color: var(--ink); line-height: 1.25; padding-block: 0.6rem; }
.wordmark-name { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.wordmark-role { display: block; font-size: 0.78rem; color: var(--slate); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  /* 44px minimum target: mobile tap accessibility. */
  min-height: 44px;
  padding: 0 0.85rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* Collapsed in CSS from the first paint rather than by JavaScript on load.
   If JS collapsed it, mobile visitors would see the menu render open and then
   snap shut — a Cumulative Layout Shift you cannot win back. A <noscript>
   override in the HTML reopens it when scripting is unavailable, so the button
   never becomes a dead end. */
.nav {
  display: none;
  width: 100%;
  padding-bottom: 0.75rem;
}
.nav.is-open { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  border-bottom: 1px solid var(--hairline);
}
.nav-list a:hover { color: var(--accent); }

/* Active section: colour AND a rule AND aria-current, so the state is never
   communicated by colour alone. */
.nav-list a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 48rem) {
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; padding-bottom: 0; }
  .nav-list { flex-direction: row; gap: 0.25rem; }
  .nav-list a {
    border-bottom: 2px solid transparent;
    padding: 0.35rem 0.6rem;
  }
  .nav-list a[aria-current="true"] { border-bottom-color: var(--accent); }
}

/* ---------- 6. Buttons ---------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); }

.btn-ghost { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 7. Hero ------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }

.hero-kicker {
  font-size: var(--step--1);
  color: var(--slate);
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 1.5rem;
}

.h1-role { display: block; color: var(--slate); font-style: italic; font-weight: 400; }

.lede { font-size: var(--step-1); color: var(--ink); max-width: 34ch; line-height: 1.45; }

.hero-facts {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 0.75rem;
  font-size: var(--step--1);
}
.hero-facts strong { color: var(--ink); }

.hero-portrait { margin: 2.5rem 0 0; }
.hero-portrait img {
  /* aspect-ratio + width/height attributes in the HTML mean the browser
     reserves the exact box before the file arrives: no layout shift. */
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
  background: var(--hairline);
}

@media (min-width: 56rem) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
  }
  .hero-portrait { margin: 0; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .hero-facts li { max-width: none; }
}

/* One orchestrated entrance, on page load only. Nothing else on the page
   animates on scroll — repeated reveal effects delay content and read as noise. */
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise 600ms cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
  .hero-body > :nth-child(2) { animation-delay: 60ms; }
  .hero-body > :nth-child(3) { animation-delay: 120ms; }
  .hero-body > :nth-child(4) { animation-delay: 180ms; }
  .hero-body > :nth-child(5) { animation-delay: 240ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 8. About ------------------------------------------ */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

@media (min-width: 56rem) {
  .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.about-side h3 { font-size: var(--step-0); margin-top: 2rem; }
.about-side h3:first-child { margin-top: 0; }

.skill-list { margin: 0; }
.skill-list dt {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step--1);
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}
.skill-list dd { margin: 0.25rem 0 0.9rem; font-size: var(--step--1); }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: var(--step--1);
  position: relative;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- 9. Work ------------------------------------------- */
.work-list { list-style: none; margin: 0; padding: 0; }

/* Hairline-divided rows rather than a grid of identical shadowed cards:
   the divider encodes structure without adding weight or decoration. */
.work-item {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--hairline);
  max-width: none;
}
.work-item:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 48rem) {
  .work-item { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
}

.work-media { margin: 0; }
.work-media img {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hairline);
}

.work-body h3 { margin-bottom: 0.25rem; }

.work-meta { font-size: var(--step--1); color: var(--slate); margin-bottom: 1rem; }

.work-points { list-style: none; padding: 0; margin: 1rem 0; }
.work-points li {
  font-size: var(--step--1);
  padding: 0.6rem 0;
  border-top: 1px dotted var(--hairline);
}
.work-points strong { color: var(--ink); }

.work-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--step--1); font-weight: 600; }

.work-more {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  max-width: none;
}

.insights {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.insight-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.insight-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); max-width: none; }
.insight-list a { font-weight: 600; }
.insight-meta { display: block; font-size: var(--step--1); color: var(--slate); }

/* ---------- 10. Experience ------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; }

.role {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
  max-width: none;
}

@media (min-width: 48rem) {
  .role { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; }
}

.role-dates {
  font-size: var(--step--1);
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.role-body h3 { font-size: var(--step-0); margin-bottom: 0.15rem; }
.role-org { font-size: var(--step--1); color: var(--slate); margin-bottom: 0.75rem; }
.role-points { margin: 0; padding-left: 1.1rem; }
.role-points li { font-size: var(--step--1); margin-bottom: 0.35rem; }

/* ---------- 11. Services -------------------------------------- */
.services-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* auto-fit keeps the cards responsive without a stack of breakpoints:
   one column on a phone, two from roughly 44rem, without extra media queries. */
@media (min-width: 44rem) {
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
}

/* Cards are defined by a border and a single accent edge rather than a soft
   drop shadow. Shadows on a light background cost a paint pass and tend to
   muddy a restrained palette; a 3px rule reads sharper and renders cheaper. */
.service {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
}
.section-alt .service { background: var(--paper); }
.service h3 { font-size: var(--step-0); }
.service p { font-size: var(--step--1); }
/* margin-top:auto pins the detail block to the card floor so the rules line up
   across cards of unequal text length. */
.service-detail {
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 0.85rem;
  margin-top: auto;
}
.service-detail strong { color: var(--ink); }

.services-cta { margin-top: 2rem; font-size: var(--step-0); }

/* ---------- 12. Contact --------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }

@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.contact-form { max-width: 34rem; margin-top: 1rem; }

.field { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 8rem; }

.hint { font-size: var(--step--1); color: var(--slate); margin-top: 0.4rem; }

/* Hidden from everyone, including assistive tech, and skipped by tab order.
   display:none is deliberate: bots fill it, humans never see it. */
.honeypot { display: none; }

.contact-side h3 { font-size: var(--step-0); margin-top: 2rem; }
.contact-side h3:first-child { margin-top: 0; }

.link-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.link-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--hairline); font-size: var(--step--1); }

 #form-message {
   margin: 20px 0px;
   font-weight: bold;
 }

 #form-message.success {
   color: green;
 }

 #form-message.error {
   color: #b00020;
 }

/* ---------- 13. Back to top ----------------------------------- */
/* Fixed positioning keeps it out of the document flow: it can appear and
   disappear without shifting a single pixel of content, so it costs nothing
   in Cumulative Layout Shift.

   Hidden state uses visibility, not just opacity. An opacity-0 link stays
   focusable, which would drop keyboard users onto an invisible control at the
   top of the page; visibility: hidden removes it from the tab order too. */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  /* env() keeps it clear of the iOS home indicator and Android gesture bar. */
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px));
  z-index: 40;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;

  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px rgb(16 26 38 / 0.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--accent); color: var(--on-accent); }
.to-top-icon { flex: none; }

/* Dark mode: the ink token flips to near-white, so invert the pill to match. */
@media (prefers-color-scheme: dark) {
  .to-top { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
}

/* The hero takes tabindex="-1" so the link can move focus there, but it must
   never draw a focus ring for mouse users landing on it. */
.hero:focus { outline: none; }

/* ---------- 15. Subpages (case studies, articles) -------------- */
/* Shared by /work/, /blog/, and every page beneath them. Kept in the same
   stylesheet rather than a second file: the whole sheet is ~4 KB gzipped, and
   one cached file across the site beats two files with a second round trip. */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--hairline);
}
.page-head:focus { outline: none; }

.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}
.breadcrumb li { max-width: none; }
/* Separator drawn in CSS so it is never read aloud as content. */
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--hairline); }
.breadcrumb [aria-current="page"] { color: var(--slate); }

.page-lede {
  font-size: var(--step-1);
  color: var(--ink);
  line-height: 1.45;
  max-width: 46ch;
  margin-top: 1rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--slate);
}
.page-meta > * { max-width: none; }
.page-meta strong { color: var(--ink); }

/* Case study facts: role, timeline, stack. A definition list is the honest
   markup for label/value pairs. */
.facts {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 1.5rem 0;
  border-block: 1px solid var(--hairline);
}
@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
}
.facts dt { font-size: var(--step--1); color: var(--slate); margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-size: var(--step--1); color: var(--ink); font-weight: 600; }

/* Article body. The measure is set here rather than on <p> so that figures and
   lists inherit the same column. */
.article { max-width: 40rem; }
.article h2 { font-size: var(--step-2); margin-top: 2.5em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 2em; }
.article ul, .article ol { margin: 0 0 1rem; }
.article li { margin-bottom: 0.5rem; }

.article figure { margin: 2.5rem 0; max-width: none; }
.article figure img {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hairline);
}
.article figcaption {
  font-size: var(--step--1);
  color: var(--slate);
  margin-top: 0.6rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--hairline);
}

/* Callout for the single most important takeaway on a case study. */
.callout {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { font-size: var(--step-0); color: var(--ink); }
.callout p:first-child { font-weight: 600; }

/* Previous / next navigation between case studies or posts. */
.pager {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 40rem) {
  .pager { grid-template-columns: 1fr 1fr; }
}
.pager a {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--surface);
}
.pager a:hover { border-color: var(--accent); }
.pager .pager-label { display: block; font-size: var(--step--1); color: var(--slate); }
.pager .pager-title { display: block; color: var(--ink); font-weight: 600; margin-top: 0.2rem; }
.pager .pager-next { text-align: right; }

/* Closing call to action at the foot of every subpage. */
.cta-band {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { max-width: 46ch; }

/* Index listing shared by /work/ and /blog/. */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--hairline);
  max-width: none;
}
@media (min-width: 48rem) {
  .entry { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2rem; }
  .entry-text-only { grid-template-columns: 8rem minmax(0, 1fr); }
}
.entry img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hairline);
}
.entry h2 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.entry h2 a { text-decoration: none; color: var(--ink); }
.entry h2 a:hover { color: var(--accent); }
.entry-meta { font-size: var(--step--1); color: var(--slate); margin-bottom: 0.75rem; }
.entry p { font-size: var(--step--1); }

/* ---------- 16. Footer ---------------------------------------- */
.site-footer {
  background: #101A26;
  color: #A9B6C4;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.footer-inner { display: grid; gap: 1.75rem; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

.footer-name { font-family: var(--serif); font-size: var(--step-1); color: #FFFFFF; margin: 0; }
.footer-role { font-size: var(--step--1); margin: 0.15rem 0 0; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-nav a,
.site-footer a { color: #7FD1C1; font-size: var(--step--1); }
.site-footer a:hover { color: #FFFFFF; }

.footer-legal {
  font-size: var(--step--1);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #24323F;
  max-width: none;
}
