/* ==========================================================================
   The Journey of Me — Design System
   Concept: a field journal / passport of everything Anvitha has built.
   Warm paper backgrounds, deep ink navy, marigold stamps for milestones,
   sage for category/subject labels. Timeline entries read like ticket
   stubs and postmarks — literal "journey" motifs, not decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Caveat:wght@600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Color tokens — "The Notebook": ruled paper, dark ink, one red pen accent,
     a highlighter yellow reserved for the Key Highlights section. */
  --ink: #1d1d27;
  --ink-soft: #55566a;
  --navy: #1d1d27;
  --navy-deep: #0e0e12;
  --parchment: #f6f5ee;
  --parchment-deep: #efece0;
  --paper: #ffffff;
  --marigold: #b3392c;
  --marigold-deep: #8f2c22;
  --sage: #55566a;
  --sage-deep: #3d3e4d;
  --line: #d8d5c4;
  --line-soft: #e6e3d6;
  --highlighter: #f6da4d;
  --cover: #17171d;

  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--parchment);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(29,29,39,0.07) 31px, rgba(29,29,39,0.07) 32px, transparent 32px);
  background-size: 100% 32px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand .brand-mark {
  color: var(--marigold-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--marigold-deep);
  border-color: var(--marigold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

/* Dropdown submenus for category nav items */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(29,29,39,0.14);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 2px);
}

.nav-dropdown-menu li { width: 100%; }

.nav-dropdown-menu a,
.nav-dropdown-menu span.soon {
  display: block;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--parchment); color: var(--marigold-deep); }
.nav-dropdown-menu span.soon { color: var(--ink-soft); opacity: 0.5; cursor: default; }

@media (min-width: 1001px) and (max-width: 1200px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.88rem; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
    overflow-y: auto;
  }
  .nav-links.open { max-height: 70vh; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 32px; border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--marigold); }

  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--parchment);
    padding: 0;
  }
  .nav-dropdown-menu a,
  .nav-dropdown-menu span.soon {
    padding: 12px 32px 12px 48px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Page header band (used on every interior page — "The Journey of X")
   ========================================================================== */

.page-band {
  background-color: var(--parchment);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(29,29,39,0.07) 31px, rgba(29,29,39,0.07) 32px, transparent 32px);
  background-size: 100% 32px;
  background-repeat: repeat;
  color: var(--ink);
  padding: 84px 0 68px;
  text-align: center;
  border-bottom: 2px dashed rgba(29,29,39,0.25);
}

.page-band .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 5px 12px;
  margin: 0 0 16px;
}

.page-band h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
  line-height: 1.08;
  color: var(--navy);
}

.page-band p.dek {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================================
   Stat strip (used on activity detail pages)
   ========================================================================== */

.stat-strip {
  background: var(--parchment-deep);
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  padding: 56px 0;
  text-align: center;
}

.stat-grid .stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1;
}

.stat-grid .stat-label {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--marigold-deep);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 4px 10px;
  margin: 0 0 10px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--navy);
  margin: 0;
}

.section-head p { color: var(--ink-soft); margin: 12px 0 0; }

.alt-bg {
  background-color: var(--parchment-deep);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(29,29,39,0.08) 31px, rgba(29,29,39,0.08) 32px, transparent 32px);
  background-size: 100% 32px;
  background-repeat: repeat;
}

section:not(.hero) { border-top: 2px dashed rgba(29,29,39,0.25); }

/* ==========================================================================
   Hero (home page)
   ========================================================================== */

.hero {
  background-color: var(--parchment);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(29,29,39,0.07) 31px, rgba(29,29,39,0.07) 32px, transparent 32px);
  background-size: 100% 32px;
  background-repeat: repeat;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 44px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  margin: 0 0 24px;
  color: var(--navy);
}

.hero h1 em {
  font-style: normal;
  color: var(--marigold-deep);
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary { transform: rotate(-0.6deg); }
.hero-actions .btn-primary:hover { transform: rotate(-0.6deg) translate(-2px, -2px); }
.hero-actions .btn-outline-ink { transform: rotate(0.6deg); }
.hero-actions .btn-outline-ink:hover { transform: rotate(0.6deg) translate(-2px, -2px); }

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  overflow: visible;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 10px 10px 30px;
  box-shadow: 8px 8px 0 rgba(29,29,39,0.14);
  transform: rotate(-2.2deg);
}

.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; border-radius: 1px; }

.hero-photo-frame::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 92px;
  height: 30px;
  background: linear-gradient(rgba(231,220,194,0.9), rgba(231,220,194,0.72));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: translateX(-50%) rotate(-3deg);
}

.hero-photo-frame::after {
  content: "that's me \2199";
  position: absolute;
  bottom: 3px;
  right: 16px;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--marigold-deep);
  transform: rotate(4deg);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-photo-frame { max-width: 320px; margin: 0 auto; transform: rotate(-1.4deg); }
  .hero-photo-frame::after { right: 4px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  padding: 13px 22px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}
.btn:hover { transform: translate(-2px, -2px); }

.btn-primary {
  background: var(--marigold);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover { background: var(--marigold-deep); box-shadow: 6px 6px 0 var(--ink); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,252,245,0.4);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--paper); transform: none; }

.btn-outline-ink {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-ink:hover { background: var(--navy); color: var(--paper); }

.btn-ink {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
  box-shadow: 4px 4px 0 var(--marigold);
}
.btn-ink:hover { background: var(--navy-deep); box-shadow: 6px 6px 0 var(--marigold); }

.btn-small { padding: 9px 15px; font-size: 0.72rem; box-shadow: none; }
.btn-small:hover { transform: none; }

/* ==========================================================================
   Mission banner
   ========================================================================== */

.mission-band {
  background-color: var(--parchment-deep);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(29,29,39,0.08) 31px, rgba(29,29,39,0.08) 32px, transparent 32px);
  background-size: 100% 32px;
  background-repeat: repeat;
  border-top: 2px dashed rgba(29,29,39,0.25);
  padding: 40px 0 60px;
  text-align: center;
}
.mission-band .wrap {
  position: relative;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 42px 38px 36px;
  transform: rotate(-1deg);
  box-shadow: 7px 7px 0 rgba(29,29,39,0.14);
}
.mission-band .wrap::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}
.mission-band .eyebrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin: 0 auto 14px;
  text-align: center;
}
.mission-band p:not(.eyebrow) {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Hobbies
   ========================================================================== */

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.hobby-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 4px 0 rgba(29,29,39,0.1);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.hobby-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
}
.hobby-card:nth-child(5n+1) { transform: rotate(-2deg); }
.hobby-card:nth-child(5n+2) { transform: rotate(1.5deg); }
.hobby-card:nth-child(5n+3) { transform: rotate(-1deg); }
.hobby-card:nth-child(5n+4) { transform: rotate(2deg); }
.hobby-card:nth-child(5n+5) { transform: rotate(-1.5deg); }
.hobby-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 6px 6px 0 rgba(29,29,39,0.16); }

.hobby-card .hobby-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--marigold-deep);
}

.hobby-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.hobby-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ==========================================================================
   Timeline (the signature element — a grid of stamped ticket stubs,
   each with its own marigold spine and dated postmark)
   ========================================================================== */

.timeline {
  max-width: 1080px;
  margin: 0 auto;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
}
.timeline-row:first-child { padding-top: 0; }

.timeline-row:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 40px;
  width: 0;
  border-left: 2px dotted var(--marigold);
  transform: translateX(-50%);
}

.timeline-row:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 16.66%;
  right: 16.66%;
  height: 0;
  border-top: 2px dotted var(--marigold);
}

/* no-connector mode doesn't need per-row grouping at all — turn the
   .timeline-row wrappers invisible to layout (display:contents) so every
   .ticket becomes a direct item in one auto-flowing grid on the parent.
   That lets the browser fit as many per row as actually fit (3 or 4
   depending on width) instead of a hardcoded 3-per-row. */
.timeline.no-connector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.timeline.no-connector .timeline-row {
  display: contents;
}

@media (max-width: 860px) {
  .timeline-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-row:not(:first-child)::after { left: 50%; right: 50%; }
}

/* ==========================================================================
   Horizontal overview timeline (imageless — curated highlights only,
   full detail and photos live in the blog cards below)
   ========================================================================== */

.h-timeline {
  display: grid;
  grid-template-columns: repeat(var(--h-count, 5), 1fr);
  grid-template-rows: 1fr auto 1fr;
  column-gap: 4px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0;
}

.h-track {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: center;
  height: 3px;
  background: var(--marigold);
  border-radius: 2px;
}

.h-item {
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-self: center;
}

.h-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--marigold);
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 2px var(--marigold-deep);
  z-index: 2;
}

.h-content {
  grid-row: 1;
  align-self: end;
  position: relative;
  text-align: center;
  padding-bottom: 30px;
  padding-left: 6px;
  padding-right: 6px;
}

.h-content.below {
  grid-row: 3;
  align-self: start;
  padding-bottom: 0;
  padding-top: 30px;
}

.h-content::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 22px;
  background: var(--line);
  transform: translateX(-50%);
}

.h-content:not(.below)::before { bottom: 0; }
.h-content.below::before { top: 0; }

.h-content a,
.h-content > div {
  display: block;
}

.h-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--marigold-deep);
  margin-bottom: 4px;
}

.h-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.3;
}

.h-content a:hover .h-title { color: var(--marigold-deep); }

@media (max-width: 760px) {
  .h-timeline {
    display: block;
    max-width: 480px;
  }
  .h-track,
  .h-item {
    display: none;
  }
  .h-content {
    grid-row: auto;
    align-self: auto;
    text-align: left;
    padding: 0 0 20px 20px;
    position: relative;
    border-left: 2px dotted var(--marigold);
  }
  .h-content:last-child { padding-bottom: 0; }
  .h-content::before {
    position: absolute;
    left: -7px;
    top: 2px;
    bottom: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--marigold);
    border: 2px solid var(--parchment);
    box-shadow: 0 0 0 1px var(--marigold-deep);
  }
}

.ticket {
  background: #fff;
  border: 1px solid rgba(29,29,39,0.14);
  border-left: 3px solid var(--marigold);
  border-radius: 2px;
  padding: 12px 16px;
  position: relative;
}

.ticket-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.ticket-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
  flex-shrink: 0;
}

.ticket-marker .ticket-date {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--marigold-deep);
  letter-spacing: 0.02em;
}
.ticket-marker .ticket-date::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 1px;
  height: 62%;
  background: var(--highlighter);
  z-index: -1;
  transform: skewX(-8deg);
  opacity: 0.85;
}

.ticket h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 4px;
}

.ticket p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ticket .ticket-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--marigold-deep);
  border-bottom: 1px solid var(--marigold);
}
.ticket .ticket-link:hover { color: var(--navy); border-color: var(--navy); }

.ticket-photo {
  margin: 0 0 8px;
  border-radius: 4px;
  overflow: hidden;
}
/* Standalone photos (TEDx story, podcast intro) show in full, uncropped */
.ticket-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.ticket-photo.contain {
  background: var(--parchment-deep);
}
.ticket-photo.contain img {
  padding: 10px;
  box-sizing: border-box;
}

/* Key Highlights cards use a compact, wide crop to keep the boxes short */
.timeline .ticket-photo img {
  aspect-ratio: 2.6 / 1;
  object-fit: cover;
  object-position: center 20%;
}
.timeline .ticket-photo.contain img {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

/* ==========================================================================
   Activity cards (Activities overview)
   ========================================================================== */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.activity-card {
  background: #fff;
  border: 1px solid var(--ink);
  border-left: 3px solid var(--marigold);
  border-radius: 2px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(29,29,39,0.08);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.activity-card:hover { box-shadow: 6px 6px 0 rgba(29,29,39,0.14); transform: translate(-2px, -2px); }

.activity-card-photo {
  margin: -28px -28px 20px -31px;
  border-radius: 0;
  overflow: hidden;
  background: var(--parchment-deep);
  border-bottom: 1px solid var(--ink);
}
.activity-card-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.activity-card.coming-soon { opacity: 0.82; }
.activity-card.coming-soon .activity-card-photo img { filter: grayscale(45%); }

.activity-card .role-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  background: var(--parchment);
  border: 1px solid var(--ink);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.activity-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.24rem;
  color: var(--navy);
  margin: 0 0 10px;
}

.activity-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 18px; flex-grow: 1; }

.activity-card .card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--marigold-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-card .card-link.disabled { color: var(--ink-soft); opacity: 0.55; cursor: default; }
.activity-card:hover .card-link:not(.disabled) { color: var(--navy); }

/* ==========================================================================
   Lesson blocks (Book page: Lessons Learned)
   ========================================================================== */

.lesson-book {
  max-width: 820px;
  margin: 0 auto 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.lesson-book:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.lesson-book h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 12px 0 18px;
}

.lesson-book p { color: var(--ink-soft); margin: 0 0 16px; }
.lesson-book p strong { color: var(--ink); }

.strategy-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.strategy-list li {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-left: 3px solid var(--marigold);
  border-radius: 5px;
  padding: 18px 20px;
  color: var(--ink-soft);
}
.strategy-list li strong { color: var(--ink); }

.strategy-list li .strategy-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.strategy-list li .field {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.6;
}
.strategy-list li .field:last-child { margin-bottom: 0; }
.strategy-list li .field .field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-right: 6px;
}

/* ==========================================================================
   Blog cards
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(29,29,39,0.08);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.blog-card:hover { box-shadow: 6px 6px 0 rgba(29,29,39,0.14); transform: translate(-2px, -2px); }

.blog-card .blog-thumb {
  aspect-ratio: 16/10;
  background: var(--parchment-deep);
  overflow: hidden;
}
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-card .blog-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }

.blog-card .blog-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin: 0 0 8px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.blog-card p.excerpt { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 14px; flex-grow: 1; }

.blog-card .blog-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.blog-card .read-more { font-size: 0.86rem; font-weight: 600; color: var(--marigold-deep); }
.blog-card:hover .read-more { color: var(--navy); }

.podcast-embed { margin-top: 4px; }
.podcast-embed iframe { display: block; border-radius: 8px; }
.podcast-embed + .read-more,
.podcast-embed-fake + .read-more { display: inline-block; margin-top: 16px; }

/* A static look-alike of the Spotify embed widget for episodes we keep
   off Spotify for privacy reasons — same look, no audio, not clickable. */
.podcast-embed-fake {
  margin-top: 4px;
  border-radius: 8px;
  padding: 14px;
  background: #902955;
  color: #fff;
  user-select: none;
  cursor: default;
}
.podcast-embed-fake .pef-top { display: flex; gap: 12px; align-items: flex-start; }
.podcast-embed-fake .pef-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.podcast-embed-fake .pef-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podcast-embed-fake .pef-info { flex: 1; min-width: 0; }
.podcast-embed-fake .pef-title {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-embed-fake .pef-meta { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin: 0 0 8px; }
.podcast-embed-fake .pef-save { font-size: 0.72rem; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 5px; }
.podcast-embed-fake .pef-save-icon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
}
.podcast-embed-fake .pef-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.podcast-embed-fake .pef-rewind { font-size: 0.68rem; color: rgba(255,255,255,0.6); }
.podcast-embed-fake .pef-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.25); position: relative; }
.podcast-embed-fake .pef-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4%; background: #fff; border-radius: 2px; }
.podcast-embed-fake .pef-time { font-size: 0.68rem; color: rgba(255,255,255,0.6); }
.podcast-embed-fake .pef-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #5f002d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--cover);
  color: rgba(255,252,245,0.7);
  padding: 56px 0 32px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.site-footer .brand { color: var(--paper); margin-bottom: 10px; display: block; }
.site-footer p { margin: 0; font-size: 0.88rem; max-width: 40ch; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 0.88rem; color: rgba(255,252,245,0.7); }
.footer-links a:hover { color: var(--marigold); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,252,245,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,252,245,0.45);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.load-more-wrap { text-align: center; margin-top: 40px; }
