/* ===================================================
   STOKE YOUR GRATITUDE — MASTER STYLESHEET
   WCAG 2.2 compliant · fully responsive
   =================================================== */

/* --- SELF-HOSTED FONTS --- */
@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/ComicNeue-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/ComicNeue-LightItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ComicNeue-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ComicNeue-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ComicNeue-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ComicNeue-BoldItalic.ttf') format('truetype');
}

/* --- DESIGN TOKENS --- */
:root {
  --black:          #1F1F1E;
  --white:          #ffffff;
  --bg:             #ffffff;
  --wobble:         255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-alt:     15px 255px 15px 225px / 255px 15px 225px 15px;
}

/* --- BASE FONT SCALE --- */
html { font-size: 125%; }

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }

/* Default link colour for inline body-copy links (e.g. mid-paragraph
   references to other pages). Browser default blue fails WCAG contrast
   against the dark-mode background (~1.8:1, needs 4.5:1); this reuses the
   same foreground colour as body text, so it's always compliant in both
   themes. More specific components (.action-btn, .nav-item, .contact-link,
   etc.) already set their own colour and override this by specificity. */
a {
  color: var(--black);
  font-weight: 700;
}
a:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- ACCESSIBILITY: SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  font-family: 'Comic Neue', cursive, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Skip-link target is programmatically focusable (tabindex="-1") so the
   skip link reliably moves focus. It's not in the tab order, so no visible
   focus ring is needed on the whole main region when jumped to. */
#main-content:focus { outline: none; }

/* --- BODY & PAGE LAYOUT --- */
body {
  font-family: 'Comic Neue', cursive, sans-serif;
  color: var(--black);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(31,31,30,0.2) 1.5px, transparent 1.5px);
  background-size: 25px 25px;
}

/* --- MAIN CONTAINER --- */
.minimal-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===================================================
   DOODLE BOX — shared bordered card component
   =================================================== */
.doodle-box {
  border: 3px solid var(--black);
  border-radius: var(--wobble);
  background-color: var(--white);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift — only on interactive elements */
a.doodle-box:hover,
button.doodle-box:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--black);
}

/* Focus ring — WCAG 2.4.11 Focus Appearance */
a.doodle-box:focus-visible,
button.doodle-box:focus-visible {
  outline: 4px dashed var(--black);
  outline-offset: 4px;
}

/* ===================================================
   HEADER SECTION
   =================================================== */
.header-section {
  padding: 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.main-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.header-section h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 1px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  border-bottom: 2px dashed var(--black);
  padding-bottom: 6px;
}

.hint {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.75;
}

.heart-icon {
  font-size: 2rem;
  line-height: 1;
}

.banner-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  border: 3px solid var(--black);
  padding: 10px 28px;
  border-radius: var(--wobble-alt);
  box-shadow: 4px 4px 0 var(--black);
  transform: rotate(-1deg);
}

/* ===================================================
   NAVIGATION GRID — home page
   =================================================== */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.nav-item {
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  /* Responsive flex sizing: min 150px, max 220px, grow/shrink together */
  flex: 1 1 150px;
  max-width: 220px;
  min-height: 190px;
  gap: 12px;
}

.nav-item:focus-visible {
  outline: 4px dashed var(--black);
  outline-offset: 5px;
}

.custom-svg-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.custom-svg-icon[src*="shrugging"] {
  width: auto;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item strong {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.nav-item span {
  font-size: 1rem;
  opacity: 0.8;
}

/* ===================================================
   SECTION BADGE — used on about & contact pages
   =================================================== */
.section-badge {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  border: 3px solid var(--black);
  padding: 6px 20px;
  border-radius: var(--wobble);
  box-shadow: 3px 3px 0 var(--black);
  margin-bottom: 24px;
}

/* ===================================================
   ABOUT PAGE
   =================================================== */

/* Story section flex layout */
.story-flex {
  display: flex;
  gap: 30px;
  align-items: flex-end;
}

.story-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Decorative illustration containers */
.doodle-graphic {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.custom-img-fill {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
}

.skyline-graphic .custom-img-fill {
  max-width: 220px;
}

/* Three-column pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pillar-icon,
.pillar-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.pillar-item h3 {
  font-size: 1rem;
  font-weight: 700;
}

/* Rooted in Stoke section */
.rooted-flex {
  display: flex;
  gap: 30px;
  align-items: flex-end;
}

.rooted-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dashed divider with heart */
.doodle-hr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doodle-hr::before,
.doodle-hr::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--black);
}

.hr-heart { font-size: 1.2rem; line-height: 1; }

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-link {
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-link:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 3px;
  border-radius: 3px;
}

.reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Comic Neue', cursive, sans-serif;
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline dashed;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reveal-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.reveal-btn:hover { text-decoration-style: solid; }

.reveal-btn:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 3px;
  border-radius: 3px;
}

.social-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-btn:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 4px;
}

/* Coming-soon social links: tabindex="-1" already removes them from the
   tab order; this stops mouse activation and signals "not active" visually */
.social-btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

/* On the small social pills the badge sits inline after the label
   instead of absolutely-positioned (which would cover the icon/name) */
.social-btn .coming-soon-badge {
  position: static;
  font-size: 0.6rem;
  padding: 2px 7px;
}

.collab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collab-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.collab-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===================================================
   AUDIO PLAYER PAGE
   =================================================== */
.player-container {
  display: flex;
  overflow: hidden;
}

/* Left panel: now playing */
.now-playing {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 3px dashed var(--black);
  text-align: center;
}

.album-art {
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  border-radius: var(--wobble-alt);
  box-shadow: 4px 4px 0 var(--black);
}

.album-art svg {
  width: 72px;
  height: 72px;
}

.song-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.song-artist {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 28px;
}

/* Progress scrubber */
.progress-area {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 0.875rem;
}

.doodle-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: var(--black);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.doodle-slider:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 6px;
  border-radius: 3px;
}

.doodle-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--black);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--black);
}

.doodle-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--black);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--black);
}

/* Playback controls */
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.control-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--black);
}

.control-btn:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 4px;
}

#prev-btn, #next-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

#play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--black);
}

#play-btn svg { width: 32px; height: 32px; }

/* Right panel: playlist */
.playlist-section {
  flex: 1;
  padding: 30px;
  background-color: var(--bg);
}

.playlist-header {
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 3px solid var(--black);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.playlist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 2px dashed transparent;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.playlist-item:hover { border-color: rgba(0,0,0,0.25); }

.playlist-item.active {
  border: 2px solid var(--black);
  background-color: var(--white);
  box-shadow: 3px 3px 0 var(--black);
  font-weight: 700;
  border-radius: var(--wobble);
}

.track-left {
  display: flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
  min-width: 0;
  border-radius: 6px;
}

.track-left:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 4px;
}

.track-number {
  font-size: 1rem;
  font-weight: 700;
  margin-right: 14px;
  flex-shrink: 0;
  width: 1.5rem;
}

.track-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.9rem;
  opacity: 0.7;
}

.download-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  margin-left: 10px;
  flex-shrink: 0;
  border: 3px solid var(--black);
  background: var(--white);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.download-btn svg { width: 16px; height: 16px; pointer-events: none; }

.download-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.download-btn:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 4px;
}

/* ===================================================
   BUTTONS & LINKS
   =================================================== */
.contact-address {
  font-style: normal;
  margin-bottom: 20px;
}

.contact-address .company-number {
  display: inline-block;
  margin-top: 16px;
}

.action-btn {
  display: inline-block;
  font-family: 'Comic Neue', cursive, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border: 3px solid var(--black);
  border-radius: var(--wobble);
  box-shadow: 4px 4px 0 var(--black);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Icon flows inline with the text so multi-line buttons centre each
   line independently instead of centring the icon against the full block */
.action-btn svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  pointer-events: none;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--black);
}

.action-btn:focus-visible {
  outline: 4px dashed var(--black);
  outline-offset: 5px;
}

/* ===================================================
   FUNDERS SECTION
   =================================================== */

/* Shop tile highlight */
.nav-item--highlight { background-color: #f8d7da; }
body.dark .nav-item--highlight { background-color: #3a1a1e; }

.funders-section {
  padding: 24px 30px;
  text-align: left;
  align-self: center;
}

.funders-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.funders-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
}

.funders-right .nav-item {
  flex: none;
  width: 200px;
  min-height: 190px;
}

.funders-names {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}


/* ===================================================
   UTILITY CLASSES
   =================================================== */
.p-30        { padding: 30px; }
.mb-20       { margin-bottom: 20px; }
.text-center { text-align: center; }

/* ===================================================
   DARK MODE
   Flips --black ↔ --white and darkens --bg.
   Applied via body.dark (toggled by script.js).
   =================================================== */
body.dark {
  --black: #E7E7DC;
  --white: #1F1F1E;
  --bg:    #1F1F1E;
  /* Off-white dots on off-black background */
  background-image: radial-gradient(rgba(231,231,220,0.2) 1.5px, transparent 1.5px);
}

/* Invert SVG images so black art becomes white in dark mode.
   mix-blend-mode: screen maps inverted-white (pure black) back to the
   dark background colour, eliminating the #000 vs #1F1F1E mismatch. */
body.dark img {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Theme toggle button — fixed, top-right */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--black);
}

.theme-toggle:focus-visible {
  outline: 4px dashed var(--black);
  outline-offset: 4px;
}

/* Show moon in light mode (click to go dark), sun in dark mode (click to go light) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.dark .theme-toggle .icon-sun  { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }

/* ===================================================
   REDUCED MOTION — WCAG 2.3.3
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===================================================
   RESPONSIVE — TABLET (max-width: 768px)
   =================================================== */
@media (max-width: 768px) {
  /* Audio player stacks vertically */
  .player-container { flex-direction: column; }
  .now-playing {
    border-right: none;
    border-bottom: 3px dashed var(--black);
    padding: 30px 20px;
  }
  .album-art { width: 140px; height: 140px; }

  /* Contact: single column */
  .contact-layout { grid-template-columns: 1fr; }

  /* About: two-column pillars and stacked flex sections */
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .story-flex,
  .rooted-flex {
    flex-direction: column;
    /* Reset the desktop row's cross-axis alignment (bottom/top) — in a
       stacked column that axis is horizontal, so it would otherwise
       push the illustration off to one side instead of centering it */
    align-items: center;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE (max-width: 600px)
   =================================================== */
@media (max-width: 600px) {
  body { padding: 20px 16px; }

  .minimal-container { gap: 20px; }

  /* Nav tiles go full-width horizontal rows */
  .nav-grid { flex-direction: column; align-items: stretch; }

  .nav-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    padding: 18px 24px;
    gap: 16px;
    min-height: auto;
    max-width: 100%;
    flex: none;
    width: 100%;
  }

  .nav-text { align-items: flex-start; }

  .custom-svg-icon { width: 48px; height: 48px; }
  .custom-svg-icon[src*="shrugging"] { width: 48px; height: auto; }

  /* Funders box: stack vertically, full width */
  .funders-section { align-self: stretch; }
  .funders-layout { flex-direction: column; }
  .funders-right { width: 100%; }
  .funders-right .nav-item {
    width: 100%;
    min-height: auto;
  }

  /* Pillars single column */
  .pillars-grid { grid-template-columns: 1fr; }

  /* Audio player */
  .playlist-section { padding: 20px 16px; }
  .track-title { white-space: normal; }

  /* Buttons: full-width on small screens */
  .action-btn { display: block; text-align: center; }
}

/* ===================================================
   RESPONSIVE — LANDSCAPE PHONES (max-height: 600px)
   =================================================== */
@media (max-height: 600px) {
  body { padding: 16px; }
  .minimal-container { gap: 15px; }
  .header-section { padding: 20px 16px; gap: 8px; }
  .main-logo { width: 70px; height: 70px; }
  .hint { display: none; }
}

/* ===================================================
   PROJECTS SECTION
   =================================================== */

.projects-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--black);
}

.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-img {
    height: 180px;
  }
}

/* Individual project pages */
.project-hero {
  padding: 36px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-page-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.project-status-banner {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border: 2px solid var(--black);
  border-radius: 20px;
  opacity: 0.7;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-content ul {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-funder {
  font-size: 0.9rem;
  font-style: italic;
  padding-top: 16px;
  border-top: 2px dashed var(--black);
}

.funder-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

.funder-logo {
  width: 280px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .funder-logo {
    width: 100%;
  }
}

body.dark .funder-logo {
  filter: none;
  mix-blend-mode: normal;
}

/* Site-wide footer — dot row sits below text like a journal line.
   margin-top gives it breathing room from the last box in <main>, since
   <footer> is a direct flex sibling of <main> in <body> (which has no
   gap of its own — only .minimal-container spaces its own children). */
.site-footer {
  text-align: center;
  margin-top: 20px;
  padding: 12px 16px 8px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.site-footer p + p {
  margin-top: 6px;
  opacity: 0.75;
}

.site-footer::after {
  content: '';
  display: block;
  height: 3px;
  margin-top: 4px;
  background-image: radial-gradient(rgba(31,31,30,0.2) 1.5px, transparent 1.5px);
  background-size: 25px 3px;
  background-repeat: repeat-x;
  background-position: 0 center;
}

body.dark .site-footer::after {
  background-image: radial-gradient(rgba(231,231,220,0.2) 1.5px, transparent 1.5px);
}

/* Coming-soon badge on nav tiles */
.nav-item {
  position: relative;
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 2px solid var(--black);
  border-radius: 20px;
  background: var(--white);
  color: var(--black);
}

.nav-item[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}
