/* ==========================================================================
   Design tokens — the ONLY place colours are defined (see CLAUDE.md §6)
   ========================================================================== */
:root {
  --bg-page: #F7F1E6;             /* page background (warm paper) */
  --bg-card: #EFE5D4;             /* bands, chips, footer, highlighted sections (soft sand) */
  --color-primary: #9C3D1F;       /* headings, links, buttons (terracotta) */
  --color-primary-hover: #7F3118; /* deeper terracotta for button hover */
  --color-accent: #E8A93A;        /* lines, underlines, small details ONLY (marigold) */
  --color-accent-text: #7A4E00;   /* deep gold for small text on light backgrounds */
  --color-text: #2B211C;          /* body text (warm dark brown) */
  --color-muted: #6B5B50;         /* meta lines and captions (soft brown) */
  --color-on-primary: #FFFFFF;    /* text on terracotta buttons */
  --bg-logo: #FFFFFF;             /* tile behind organization logos */
  --color-overlay: rgba(43, 33, 28, 0.85); /* behind enlarged photos (brown) */
  --color-border: rgba(43, 33, 28, 0.14); /* hairline rules (brown, faded) */
  --color-shadow: rgba(43, 33, 28, 0.16); /* soft shadow under photos */

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-quote: "Lora", Georgia, "Times New Roman", serif;   /* quotes and personal statements, in italic */
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --measure: 70ch;       /* max line length for reading */
  --max-width: 80rem;    /* page width on large screens */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 6px;
  --transition: 0.15s ease;
}

/* ==========================================================================
   Base (mobile first)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p, ul, ol {
  margin: 0 0 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--color-accent-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

hr {
  border: 0;
  border-top: 2px solid var(--color-accent);
  width: 4rem;
  margin: 3rem 0;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
}

/* ==========================================================================
   Header: mark, name and tagline on the left, numbered nav on the right
   ========================================================================== */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

@media (max-width: 480px) {

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-tagline {
    font-size: 0.8rem;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

.brand-tagline {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--color-accent-text);
}

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 1rem;
  color: var(--color-primary);
  background: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.nav-toggle:hover {
  background: var(--bg-card);
}

/* The Menu button only appears when JavaScript is available;
   without it, the nav simply stays open. */
.js .nav-toggle { display: block; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

.site-nav {
  width: 100%;
}

.site-nav ol {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.site-nav li + li {
  border-top: 1px solid var(--color-border);
}

.site-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 0;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav a[aria-current="page"] .nav-label {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Wider screens: nav sits beside the name, always visible */
@media (min-width: 900px) {
  .brand-name {
    font-size: 1.6rem;
  }

  .js .nav-toggle { display: none; }
  .js .site-nav,
  .site-nav {
    display: block;
    width: auto;
  }

  .site-nav ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    background: transparent;
  }

  /* A small dot between items so the menu reads as one line */
  .site-nav li + li::before {
    content: "\00B7";
    margin: 0 0.85rem;
    color: var(--color-accent-text);
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-accent);
  }

  .site-nav a[aria-current="page"] .nav-label {
    text-decoration: none;
  }
}

/* ==========================================================================
   Main content
   ========================================================================== */
.site-main {
  padding: 3rem 0 4rem;
}

/* Text stays at a comfortable reading width. Section pages wrap their
   content in <article class="page">, so the same limit applies inside it. */
.site-main .container > *,
.site-main .container > .page > * {
  max-width: var(--measure);
}

.site-main .container > .page {
  max-width: none;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.lead {
  font-size: 1.2rem;
}

.post-meta {
  color: var(--color-accent-text);
  font-size: 0.95rem;
}

.card {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0 0;
  margin: 2.5rem 0;
}

.card > :last-child {
  margin-bottom: 0;
}

@media (min-width: 761px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.75rem; }

  .site-main {
    padding: 2.5rem 0 6rem;
  }

}

/* ==========================================================================
   Home: quote headline and portrait
   ========================================================================== */
.site-main .container .hero {
  max-width: none;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-roles {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero .lead {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  max-width: 30rem;
}

/* Home: quote in its own quiet band under the hero */
.site-main .container .quote-band {
  max-width: 46rem;
  margin: 5rem auto 0;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote-band blockquote {
  margin: 0;
}

.quote-band blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0;
}

.quote-cite {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-accent-text);
}

.quote-cite::before {
  content: "— ";
}

.hero .button-row {
  margin-top: 2rem;
}

.portrait {
  width: 100%;
  max-width: 17rem;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--color-shadow);
  flex-shrink: 0;
}

/* About: text and photo side by side on wider screens */
.site-main .container .about {
  max-width: none;
}

.about-text {
  max-width: var(--measure);
}

.about-figure {
  margin: 0 0 2rem;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 24rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--color-shadow);
}

@media (min-width: 900px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    column-gap: 5rem;
    row-gap: 0;
    align-items: start;
  }

  .about-figure {
    position: sticky;
    top: 2rem;
    margin: 3.5rem 0 0;
  }
}

/* Home: the two cards side by side */

/* "At a glance" facts */

.card-quiet {
  border-left: 0;
}

@media (min-width: 761px) {
  .site-main .container .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-text {
    max-width: var(--measure);
  }

  .hero-title {
    font-size: 4rem;
  }

  .quote-band blockquote p {
    font-size: 2rem;
  }

  .portrait {
    max-width: 22rem;
  }

}

/* ==========================================================================
   Home: numbers band, photo mosaic, closing banner
   ========================================================================== */
.site-main .container .stats-band {
  max-width: none;
  margin: 4.5rem 0 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats.stats-band li {
  padding: 0.25rem 1.25rem;
}

.stats-band .stat-num {
  font-size: 2.75rem;
}

.site-main .container .moments-section {
  max-width: none;
  margin-top: 5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-link::after {
  content: " \2192";
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 11rem;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 13rem;
    gap: 1rem;
  }
}

.mosaic-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
}

.mosaic-tall {
  grid-row: span 2;
}

.mosaic {
  grid-auto-flow: dense;
}

.mosaic-wide {
  grid-column: span 2;
}

.mosaic-item img.mosaic-focus-bottom {
  object-position: center 80%;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.3s ease;
}

.mosaic-item:hover img {
  transform: scale(1.04);
}

.mosaic-caption {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: calc(var(--radius) / 2);
  background: var(--color-overlay);
  color: var(--color-on-primary);
  font-size: 0.85rem;
  line-height: 1.35;
}

.about-big {
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--color-primary);
}

/* "About me" label above the statement */
.about-label {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.fact-chips {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fact-chips li {
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.95rem;
}

.site-main .container .about {
  margin-top: 5rem;
}

/* Home: second line in the hero */

/* About: three short points under the text and photo */
.site-main .container .pillars-section {
  max-width: none;
  margin-top: 3.5rem;
}

.pillars-title {
  margin: 0;
}

.pillar-skills {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pillars .pillar-skills li {
  display: inline-block;
  background: var(--bg-card);
  border: 0;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  transform: none;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.pillars li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 0;
  line-height: 1.55;
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent-text);
}

.pillars strong {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.site-main .container .cta-band {
  max-width: none;
  margin-top: 6rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-accent);
}

.cta-band h2 {
  margin-top: 0;
}

/* Numbers band: two by two on phones, four across on wider screens */
.site-main .container .stats-band {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 761px) {
  .site-main .container .stats-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .stats-band .stat-num {
    font-size: 2.1rem;
  }
}

/* Short, scannable bullet lists */
.crisp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.crisp-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
}

.crisp-list li:first-child {
  padding-top: 0;
}

.crisp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.crisp-list li:first-child::before {
  top: 0.65rem;
}

/* Speaking: picture cards in a row */
.talk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.talk-cards .moment {
  flex-direction: column;
}

.talk-cards .moment img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-position: center 30%;
}

.talk-cards .moment img.img-focus-top {
  object-position: center 10%;
}

.talk-cards .moment img.img-focus-bottom {
  object-position: center 90%;
}

/* ==========================================================================
   Journey: timeline
   ========================================================================== */
.site-main .container .timeline {
  max-width: none;
}

.timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--color-accent);
}

.timeline > li {
  position: relative;
  padding-bottom: 4.5rem;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline > .timeline-education::before {
  background: var(--bg-page);
  border: 2px solid var(--color-primary);
}

.entry-text {
  max-width: 50rem;
}

.timeline h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.timeline p {
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.timeline-org a {
  color: var(--color-muted);
  text-decoration-thickness: 1px;
}

/* Posts and photos from the same time, under each role */
.entry-media {
  margin-top: 1.25rem;
}

.entry-media .moments {
  margin-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem 1.75rem;
}

.entry-media .moment {
  gap: 0.85rem;
}

.entry-media .moment img {
  width: 5.5rem;
  height: 5.5rem;
  object-position: center 30%;
}

.entry-media .moment img.img-focus-top { object-position: center 5%; }
.entry-media .moment img.img-focus-bottom { object-position: center 90%; }
.entry-media .moment img.img-natural {
  object-fit: contain;
  background: var(--color-text);
}

.entry-media .moment-logo img {
  object-fit: contain;
  background: var(--bg-logo);
}

.entry-media .moment-text {
  font-size: 0.92rem;
}

.entry-media .gallery {
  max-width: 40rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Moments and photo galleries (Journey, Work)
   ========================================================================== */

/* Moments: talks and events nested inside a role, fully clickable */
.moments {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.moment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--color-border);
  padding: 1.1rem 0 0;
  color: var(--color-text);
  text-decoration: none;
}

.moment:hover {
  color: var(--color-text);
}

.moment img {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: calc(var(--radius) / 2);
  flex-shrink: 0;
}

.moment:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Logo instead of a photo: show the whole logo on a white tile */
.moment-logo img {
  object-fit: contain;
  background: var(--bg-logo);
  padding: 0.4rem;
}

.moment-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.moment-text strong {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.moment-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.moment-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.moment-link::after {
  content: " \2197";
}

@media (max-width: 480px) {
  .moment {
    flex-direction: column;
  }

  .moment img {
    width: 100%;
    height: 12rem;
  }
}

/* Photo galleries inside Journey entries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: 30rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 3px solid var(--bg-card);
  transition: border-color var(--transition);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Enlarged photo view */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(90vw, 60rem);
  max-height: 90vh;
}

.lightbox::backdrop {
  background: var(--color-overlay);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--color-on-primary);
}

.lightbox-close {
  display: block;
  margin: 0 0 0.5rem auto;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-on-primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   Split sections: heading on the left, details on the right
   ========================================================================== */
.site-main .container .split {
  max-width: none;
  margin-top: 4.5rem;
}

.split-head h2 {
  margin-top: 0;
}

.split-head p {
  color: var(--color-primary);
}

.split-body {
  max-width: 48rem;
}

.split-body > :first-child {
  margin-top: 0;
}

@media (min-width: 1000px) {
  .split {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
  }

  .split-head {
    position: sticky;
    top: 2rem;
  }
}

/* ==========================================================================
   Work & impact: numbers
   ========================================================================== */
.site-main .container .stats {
  max-width: none;
}

.stats {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}

.stats li {
  border-left: 1px solid var(--color-border);
  padding: 0.25rem 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.plain-list {
  list-style: none;
  padding: 0;
}

.plain-list li + li {
  margin-top: 0.75rem;
}

cite {
  font-style: italic;
}

/* Featured project */
.site-main .container .feature {
  max-width: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature img {
  width: 100%;
  max-width: 16rem;
  border-radius: calc(var(--radius) / 2);
}

.feature h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.feature-subtitle {
  color: var(--color-accent-text);
  font-weight: 600;
}

@media (min-width: 761px) {
  .feature {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .feature img {
    width: 14rem;
    flex-shrink: 0;
  }

  .feature > div {
    max-width: var(--measure);
  }
}

/* Publications */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.pub-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.pub-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   Tags (Skills, Home)
   ========================================================================== */

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  background: var(--bg-page);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive skill buttons and their example panels */

/* ==========================================================================
   Section pages: headline, stats, chapters, skill rows
   (Journey, Work, Skills, Things I love share these)
   ========================================================================== */

/* Anything marked .wide may use the full page width */
.site-main .container .wide,
.site-main .container > .page > .next-page {
  max-width: none;
}

.site-main .container > .page > .page-intro {
  max-width: none;
}

.page-intro .eyebrow {
  letter-spacing: 0.14em;
}

/* Intro with a framed photo beside the headline */
.page-intro-photo .frame {
  max-width: 22rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .page-intro-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 5rem;
    align-items: center;
  }

  .page-intro-photo .frame {
    margin: 0;
  }
}

.display {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.display-line {
  display: block;
}

.display::after {
  content: "";
  display: block;
  width: 4rem;
  margin-top: 1.25rem;
  border-top: 3px solid var(--color-accent);
}

@media (max-width: 600px) {
  .display-line {
    display: inline;
  }

  .display-line + .display-line::before {
    content: " ";
  }
}

.page-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 44rem;
}

/* Full-width tinted band behind a section (no extra markup needed) */
.band {
  background: var(--bg-card);
  box-shadow: 0 0 0 100vmax var(--bg-card);
  clip-path: inset(0 -100vmax);
}

/* Stats row: big numbers divided by thin rules */
.site-main .container .stats-row {
  max-width: none;
  margin: 3rem 0 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-row li:first-child,
.stats-band li:first-child {
  border-left: 0;
  padding-left: 0;
}

@media (max-width: 760px) {
  .site-main .container .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0;
  }

  .stats-row li:nth-child(odd),
  .stats-band li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (min-width: 761px) {
  .site-main .container .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* "Jump to" links under the stats */
.jump-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.95rem;
}

.jump-links a {
  color: var(--color-text);
  text-decoration-thickness: 1.5px;
}

/* Chapters: heading on the left, entries on the right */
.site-main .container .chapter {
  max-width: none;
  margin-top: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
}

.site-main .container .chapter.band {
  border-top: 0;
}

.chapter-head h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.chapter-head p:not(.eyebrow) {
  color: var(--color-muted);
}

.chapter-head .eyebrow {
  letter-spacing: 0.14em;
}

@media (min-width: 1000px) {
  .chapter {
    display: grid;
    grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
  }

  .chapter-head {
    position: sticky;
    top: 2rem;
  }
}

.entry {
  padding-bottom: 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.entry-meta {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.entry-meta a {
  color: var(--color-muted);
  text-decoration-thickness: 1px;
}

.entry h3 {
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.entry > p {
  max-width: 46rem;
}

/* Short accent line of keywords under an entry or skill */
.tag-line {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-accent-text);
}

.entry .moments {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}

.entry .moment img {
  width: 5.5rem;
  height: 5.5rem;
  object-position: center 30%;
}

.entry .moment img.img-focus-top { object-position: center 5%; }
.entry .moment img.img-focus-bottom { object-position: center 90%; }
.entry .moment img.img-natural {
  object-fit: contain;
  background: var(--color-text);
}

.entry .moment-logo img {
  object-fit: contain;
  background: var(--bg-logo);
}

.entry .moment-text {
  font-size: 0.92rem;
}

.entry .gallery {
  max-width: 40rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Skills: one row per area — name and keywords left, detail and examples right */
.site-main .container .top-skills {
  max-width: none;
  margin-top: 2.5rem;
}

.top-skills h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.top-skills .tags li {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 1.05rem;
  padding: 0.4rem 1.1rem;
}

.site-main .container .skill-rows {
  max-width: none;
  margin-top: 3.5rem;
}

.skill-row {
  padding: 2.25rem 0;
  border-top: 1px solid var(--color-border);
}

.skill-row h2 {
  font-size: 1.5rem;
  margin: 0 0 0.9rem;
}

.skill-row .tags li {
  background: var(--bg-card);
  font-size: 0.88rem;
  padding: 0.2rem 0.75rem;
}

.skill-row-body > p {
  margin-bottom: 0.9rem;
}

.in-practice-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-text);
}

@media (min-width: 900px) {
  .skill-row {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: 4rem;
  }
}

.in-practice {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.in-practice li + li {
  margin-top: 0.4rem;
}

.in-practice a[target="_blank"]::after {
  content: " \2197";
}

/* Three short columns (tools, languages, learning) */
.site-main .container .trio {
  max-width: none;
  margin-top: 4.5rem;
  padding: 3rem 0;
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trio h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.trio .tags li {
  background: var(--bg-page);
}

/* Opinions: the next piece being written */
.site-main .container .upcoming {
  margin: 3rem 0 2.5rem;
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

.upcoming h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.upcoming-dek {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* "Up next" link at the end of each section page */
.next-page {
  margin-top: 5rem;
}

.next-page a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  text-decoration: none;
  transition: transform var(--transition);
}

.next-page a:hover {
  transform: translateX(3px);
}

.next-page-label {
  font-size: 0.95rem;
  color: var(--color-accent-text);
}

.next-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--color-primary);
}

/* Photos: rounded corners; feature photos get a soft shadow */
.frame {
  margin: 0;
}

.frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.frame figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.frame-feature img {
  box-shadow: 0 8px 24px var(--color-shadow);
}

/* ==========================================================================
   Things I love
   ========================================================================== */
.love-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.love-note a {
  color: var(--color-accent-text);
}

/* Section heading block: eyebrow, title, one short paragraph */
.section-intro {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.section-intro .eyebrow {
  letter-spacing: 0.14em;
}

.section-intro p:not(.eyebrow) {
  color: var(--color-muted);
}

.site-main .container .love-section {
  max-width: none;
  margin-top: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
}

.site-main .container .love-section.band {
  border-top: 0;
}

/* Travel photos: framed prints in loose columns */
.travel-gallery {
  columns: 3 15rem;
  column-gap: 2rem;
}

.travel-gallery .frame {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.travel-gallery figcaption h3 {
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
  color: var(--color-text);
}

.travel-gallery figcaption p {
  margin: 0;
}

/* Bookshelf: real covers, or a printed-style cover when there's no image */
.book-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 2.25rem 1.75rem;
}

.book-grid a {
  color: var(--color-text);
  text-decoration: none;
}

.book-cover {
  aspect-ratio: 2 / 3;
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 16px var(--color-shadow);
  transition: box-shadow var(--transition);
}

.book-grid a:hover .book-cover {
  box-shadow: 0 10px 24px var(--color-shadow);
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-print {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.85rem;
  background: var(--color-primary);
  border-left: 6px solid var(--color-primary-hover);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.25;
}

.book-grid li:nth-child(3n+2) .book-cover-print {
  background: var(--color-accent-text);
}

.book-grid li:nth-child(3n+3) .book-cover-print {
  background: var(--color-text);
  border-left-color: var(--color-primary);
}

.book-cover-print small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-grid h3 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  color: var(--color-text);
}

.book-grid p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.book-grid .book-link {
  margin-top: 0.35rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.coming-soon {
  font-style: italic;
  color: var(--color-muted);
}

/* "And always room for…" */
.site-main .container .pleasures {
  max-width: none;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.pleasures > h2 {
  margin: 0 0 2rem;
  font-weight: 400;
}

.pleasures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem 3rem;
}

.pleasures-grid article {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.pleasures-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.pleasures-grid p {
  margin: 0;
  color: var(--color-muted);
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
}

.button:hover {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.button-secondary:hover {
  background: var(--bg-page);
  color: var(--color-primary);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 2px solid var(--color-accent);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-location {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-accent-text);
}

@media (min-width: 761px) {
  .site-footer {
    padding: 3.5rem 0;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
  }
}

/* ==========================================================================
   Reduced motion: turn off transitions for people who ask for less movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button:hover {
    transform: none;
  }
}
