/* ─────────────────────────────────────────
   Slightly More Fun Than Doomscrolling
   main.css
───────────────────────────────────────── */

@font-face {
  font-family: 'Bangers';
  src: url('/fonts/bangers-v25-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/dm-mono-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/dm-mono-v16-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:     #FFE135;
  --pink:       #FF6B9D;
  --blue:       #4A90E2;
  --green:      #2ECC71;
  --orange:     #FF6B35;
  --purple:     #9B59B6;
  --red:        #fc0032;
  --teal:       #1ABC9C;
  --cream:      #EAE9E8;
  --hero-text-light: #FFFFFF;
  --ink:        #1A1A2E;
  --mid:        #6B6B8A;
  --border:     #E8E0F0;
  --rad:        16px;
}

@media (min-width: 900px) {
  html {
    zoom: 1.35;
  }
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, section, [id] {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Zalando Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  padding-bottom: 100px;
}

/* No global anchor styling existed before this, so any plain <a> without
   its own explicit rule fell back to the browser default blue/underline.
   Prose links (post-content, page-content, intro-section, about-strip-text)
   already set their own underline explicitly below, so this is a safe
   base to reset from, not a conflict. */
a {
  color: inherit;
  text-decoration: none;
}

/* Push all page content below the fixed nav */
main {
  padding-top: 80px;
}

/* ── NAV ── */
#mainNav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  pointer-events: none;
  transition: background 0.2s, border-color 0.2s;
}

#mainNav.scrolled {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  pointer-events: all;
}

/* Title fades in on scroll — full definition lives further down
   this file, this was an accidental full duplicate. */

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: all;
}

.nav-tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: 'Zalando Sans', sans-serif;
  background: white;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}

.nav-tag:hover  { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-tag:active { transform: translate(1px, 1px);   box-shadow: 0px 0px 0 var(--ink); }
.nav-tag.active { background: var(--yellow); }
.nav-tag.purple { background: var(--purple); color: var(--ink); }
.nav-tag.teal   { background: var(--teal);   color: var(--ink); }
.nav-tag.red { background: var(--red); color: black; }
.nav-tag.pink   { background: var(--pink);   color: var(--ink); }

/* =============================================
   NAV DROPDOWN / MEGAMENU
   For nav items with sub-destinations (Adventures:
   Notebook/Podcast/YouTube/Newsletter, Work: the
   individual case studies). Click to open rather
   than hover, more reliable across touch laptops
   and better for accessibility.
   ============================================= */

.nav-item-dropdown {
  position: relative;
  pointer-events: all;
}

.nav-tag-toggle {
  cursor: pointer;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-item-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
}

.nav-item-dropdown.open .nav-dropdown-panel {
  display: flex;
}

.nav-dropdown-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-dropdown-link:hover {
  background: var(--cream);
}

.nav-dropdown-link--overview {
  font-weight: 800;
}

.nav-dropdown-link--overview.yellow { background: var(--yellow); }
.nav-dropdown-link--overview.pink   { background: var(--pink); }
.nav-dropdown-link--overview.purple { background: var(--purple); color: #fff; }
.nav-dropdown-link--overview.red    { background: var(--red); color: #fff; }
.nav-dropdown-link--overview.teal   { background: var(--teal); }
.nav-dropdown-link--overview.blue   { background: var(--blue); color: #fff; }

.nav-dropdown-link.yellow:hover { background: var(--yellow); }
.nav-dropdown-link.pink:hover   { background: var(--pink); }
.nav-dropdown-link.purple:hover { background: var(--purple); color: #fff; }
.nav-dropdown-link.red:hover    { background: var(--red); color: #fff; }
.nav-dropdown-link.teal:hover   { background: var(--teal); }
.nav-dropdown-link.blue:hover   { background: var(--blue); color: #fff; }

/* Mobile drawer: submenu items collapse behind a toggle, matching the
   desktop dropdown's click-to-reveal pattern. Was always-visible before,
   which didn't fit the viewport once a section had several sub-items. */
.nav-drawer-item-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-drawer-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-drawer-toggle {
  background: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-family: 'Bangers', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-drawer-item-group.expanded .nav-drawer-toggle {
  transform: rotate(180deg);
}

.nav-drawer-submenu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  width: 80%;
}

.nav-drawer-item-group.expanded .nav-drawer-submenu {
  display: flex;
}

.nav-drawer-sublink {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mid);
  padding: 4px 0;
}

.nav-drawer-sublink:hover {
  color: var(--ink);
}

/* The "X Home" link — bold, matching the desktop dropdown's overview
   link. Mobile has no hover state, so colour is persistent here
   rather than hover-only like the desktop version. */
.nav-drawer-sublink--overview {
  font-weight: 800;
  color: var(--ink);
}

.nav-drawer-sublink.yellow, .nav-drawer-sublink--overview.yellow { color: #B8960C; }
.nav-drawer-sublink.pink,   .nav-drawer-sublink--overview.pink   { color: var(--pink); }
.nav-drawer-sublink.purple, .nav-drawer-sublink--overview.purple { color: var(--purple); }
.nav-drawer-sublink.red,    .nav-drawer-sublink--overview.red    { color: var(--red); }
.nav-drawer-sublink.teal,   .nav-drawer-sublink--overview.teal   { color: var(--teal); }
.nav-drawer-sublink.blue,   .nav-drawer-sublink--overview.blue   { color: var(--blue); }

/* hamburger — mobile only */
.nav-hamburger { display: none; }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-drawer.open { display: flex; }

.nav-drawer-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.nav-drawer-link {
  font-family: 'Bangers', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--ink);
  letter-spacing: 0.02em;
  text-align: center;
}

.nav-drawer-link.active {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.nav-drawer-link.pink   { color: var(--pink); }
.nav-drawer-link.purple { color: var(--purple); }
.nav-drawer-link.teal   { color: var(--teal); }
.nav-drawer-link.red    { color: var(--red); }
.nav-drawer-link.yellow { color: #B8960C; }

.adventures-subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 28px 32px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero { padding: 24px 28px 20px; margin: 0 auto; max-width: 1000px; position: relative; overflow: hidden; }

.hero--with-photo {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero--bg-photo {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -80px;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center bottom;
  border-radius: 0;
  padding: 140px 32px 60px;
  isolation: isolate;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.82) 100%);
  z-index: -1;
  border-radius: 0;
}

.hero--bg-photo .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 65px auto 65px auto;
  width: 100%;
}

.hero--bg-photo h1 {
  color: var(--hero-text-light);
}

.hero--bg-photo .hero-desc {
  color: var(--hero-text-light);
}

.hero--bg-photo .hero-sticker {
  color: var(--ink);
}

@media (max-width: 700px) {
  .hero--bg-photo { padding: 120px 24px 40px; min-height: 50vh; }
}

.hero-copy { flex: 1 1 400px; min-width: 0; }

.hero-photo {
  flex-shrink: 0;
  width: clamp(160px, 22vw, 240px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 8px 8px 0 var(--yellow);
  overflow: hidden;
  transform: rotate(2deg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
}

.hero-photo.hero-fade {
  animation-name: heroPhotoFadeIn;
}

@keyframes heroPhotoFadeIn {
  from { opacity: 0; transform: translateY(16px) rotate(2deg) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) rotate(2deg) scale(1); }
}

.hero-sticker.hero-fade {
  animation-name: heroStickerFadeIn;
}

@keyframes heroStickerFadeIn {
  from { opacity: 0; transform: translateY(16px) rotate(-1.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade { animation: none; opacity: 1; }
}

@media (max-width: 700px) {
  .hero--with-photo { flex-direction: column-reverse; text-align: left; gap: 16px; }
  .hero-photo { width: 120px; }
  .hero { padding-bottom: 8px; }
}

/* Vertical "doomscroll" feed — decorative, sits behind the hero copy,
   simulating the chaotic feed this whole site is an antidote to.
   Full-width and very faint behind the text on mobile, a narrower
   column beside it on desktop where there's room to spare. */
.doomscroll-feed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

@media (min-width: 900px) {
  .doomscroll-feed {
    left: auto;
    width: 220px;
    opacity: 0.3;
  }
}

.doomscroll-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: doomscroll 24s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

.doomscroll-line {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 11px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  transform: rotate(-1.2deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.doomscroll-line:nth-child(even) { transform: rotate(1deg); background: var(--cream); }
.doomscroll-line:nth-child(3n)   { background: var(--yellow); }

@keyframes doomscroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .doomscroll-track { animation: none; }
}

/* Sticky title that appears in nav on scroll */
.nav-title {
  font-family: 'Bangers', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  flex: 1;
  padding-right: 10px;
  text-decoration: none;
}

.nav-title .hl {
  background: var(--yellow);
  padding: 0 6px 2px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  display: inline-block;
}

#mainNav.scrolled .nav-title {
  opacity: 1;
  transform: translateY(0);
}

#mainNav.scrolled {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  pointer-events: all;
}

.hero-sticker {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.byline {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
}

.byline a { color: var(--purple); text-decoration: none; }
.byline a:hover { text-decoration: underline wavy; }

h1 {
  font-family: 'Bangers', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  max-width: 100%;
  white-space: collapse;
}

h1 .hl {
  background: var(--yellow);
  padding: 0 10px 4px;
  border-radius: 6px;
  border: 3px solid var(--ink);
  display: inline-block;
  transform: rotate(-0.8deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-desc {
  font-size: 15px;
  color: var(--ink);
  opacity: 1;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-current-project {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}

.hero-project-label {
  font-family: 'Bangers', sans-serif;
  font-size: clamp(18px, 3.5vw, 26px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Bangers', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-project-badge:hover  { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.hero-project-badge:active { transform: translate(1px, 1px);   box-shadow: 1px 1px 0 var(--ink); }

.hero-project-badge.tag-yellow { background: var(--yellow); }
.hero-project-badge.tag-teal   { background: var(--teal);   color: var(--ink); }
.hero-project-badge.tag-purple { background: var(--purple); color: var(--ink); }
.hero-project-badge.tag-pink   { background: var(--pink);   color: var(--ink); }
.hero-project-badge.tag-orange { background: var(--orange); color: var(--ink); }
.hero-project-badge.tag-green  { background: var(--green);  color: var(--ink); }
.hero-project-badge.tag-blue   { background: var(--blue);   color: white; }
.hero-project-badge.tag-red    { background: var(--red);    color: black; }
.hero-project-badge.tag-ink    { background: white; color: var(--ink); border-color: white; }

.listen-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.listen-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: 'Zalando Sans', sans-serif;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}

.platform-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.platform-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ── TICKER (static now, doomscroll feed above carries the motion) ── */
.ticker-wrap {
  background: var(--pink);
  padding: 16px 20px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin: 24px -8px 24px -8px;
  transform: rotate(-0.5deg);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100vw;
}

.ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  background: white;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.ticker-dot { color: var(--pink); font-size: 16px; line-height: 1; }

/* ── PROJECT HERO BLOCK ── */
/* Background color is set inline per-project (matches its badge color),
   this just handles the shared shape/spacing/border. */
.project-hero-block {
  margin: 0 28px 52px;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 32px 28px 12px;
  box-shadow: 6px 6px 0 var(--ink);
}

.project-hero-block .grid { padding-bottom: 20px; }

/* ── 26IN2026 (integrated into SMFTD template) ── */
.smftd-26-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.smftd-26-subnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  position: sticky;
  top: 65px;
  z-index: 10;
  background: var(--cream);
  padding: 10px 0;
}

.smftd-26-subnav-divider {
  width: 2px;
  height: 24px;
  background: var(--ink);
  opacity: 0.25;
  margin: 0 4px;
  flex-shrink: 0;
}

.smftd-26-subnav .btn-primary.active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

@media (max-width: 500px) {
  .smftd-26-subnav-divider { display: none; }
}

/* ── YOUTUBE ── */
.yt-block {
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 32px;
  margin: 0 28px 52px;
  box-shadow: 6px 6px 0 var(--ink);
}

.yt-block-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.yt-card {
  display: block;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  overflow: hidden;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.yt-facade {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--red);
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: transform 0.12s;
}
.yt-facade:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.08); }

.yt-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

.yt-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.yt-card-body { padding: 12px 14px 14px; }

.yt-card-title {
  font-family: 'Bangers', sans-serif;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 4px;
}

.yt-card-date {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--mid);
  margin-bottom: 4px;
  display: block;
}

/* ── SECTIONS ── */
.section { padding: 0 28px; margin-bottom: 52px; }

/* A boxed variant of .section, matching the pod-block/yt-block/
   project-hero-block treatment, so sections that sit side by side
   with those don't feel like they're floating unframed while their
   neighbours are boxed. Used for Notebook and Newsletter blocks. */
.section-boxed {
  margin: 0 28px 52px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
}

.section-boxed .section-head { margin-bottom: 20px; }

/* A small repeated decorative device used before major section
   headings, so very different content (stats, notebook, podcast,
   archive grids) still reads as one continuous, rhythmic page. */
.section-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 28px 28px;
  color: var(--yellow);
  font-size: 14px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 {
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: normal;
}

.section-pill {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 0.04em;
  border-bottom: 2px dotted var(--mid);
  padding-bottom: 1px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 0.5rem;
  margin-right: 0.4rem;
}
.project-tag:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.project-tag.tag-yellow { background: var(--yellow); color: var(--ink); }
.project-tag.tag-teal   { background: var(--teal);   color: var(--ink); }
.project-tag.tag-purple { background: var(--purple); color: var(--ink); }
.project-tag.tag-pink   { background: var(--pink);   color: var(--ink); }
.project-tag.tag-orange { background: var(--orange); color: var(--ink); }
.project-tag.tag-green  { background: var(--green);  color: var(--ink); }
.project-tag.tag-blue   { background: var(--blue);   color: white; }
.project-tag.tag-red    { background: var(--red);    color: black; }
.project-tag.tag-default { background: var(--mid);   color: white; }

/* Small corner affordance signalling "this leads somewhere" */
.click-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.3;
  pointer-events: none;
}

.list-row { border-radius: var(--rad); position: relative; width: 100%; }
.list-row .click-hint { top: auto; bottom: 10px; right: 14px; }



.section-more {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-decoration: underline wavy var(--teal) 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.section-more:hover { color: var(--teal); }

/* ── LINK HIERARCHY ── */

/* Primary: chunky button */
.btn-primary {
  display: inline-block;
  font-family: 'Bangers', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.25rem 0.9rem;
  text-decoration: none;
  transition: box-shadow 0.1s, transform 0.1s;
  cursor: pointer;
}

.btn-primary:hover  { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.btn-primary:active { box-shadow: 0px 0px 0 var(--ink); transform: translate(3px, 3px); }

.btn-primary.pink   { background: var(--pink); }
.btn-primary.yellow { background: var(--yellow); color: var(--ink); }
.btn-primary.purple { background: var(--purple); }
.btn-primary.green  { background: var(--green); }
.btn-primary.red    { background: var(--red); }
.btn-primary.teal   { background: var(--teal); }

/* Secondary: wavy underline */
.link-secondary {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: underline wavy var(--teal) 1.5px;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.link-secondary:hover { color: var(--teal); }

/* Tertiary: dotted underline — only on anchors */
.link-tertiary {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}

a.link-tertiary {
  text-decoration: underline dotted var(--mid) 1.5px;
  text-underline-offset: 3px;
}

a.link-tertiary:hover { color: var(--ink); }

/* Non-linked meta text */
.meta {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--mid);
}

/* ── PROJECT GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 50px;
}

.card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 22px 18px 18px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 5px 5px 0 var(--ink);
}

.card:hover  { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card:active { transform: translate(2px, 2px);   box-shadow: 2px 2px 0 var(--ink); }

.card.c-yellow     { background: #FFFBE6; }
.card.c-green      { background: #EAFAF3; }
.card.c-purple     { background: #F5EEFF; }
.card.c-orange     { background: #FFF1EB; }
.card.c-blue-light { background: #EBF3FF; }
.card.c-pink       { background: #FFF0F5; }

.card.wide {
  background: var(--blue);
  border-color: var(--ink);
  color: white;
}

.card.wide .card-desc { color: rgba(255,255,255,0.75); }

.card-badge {
  position: absolute;
  top: -10px; right: 14px;
  font-family: 'Bangers', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.badge-live { background: var(--green);  color: var(--ink); }
.badge-new  { background: var(--orange); color: var(--ink); }
.badge-soon { background: #eee; color: #aaa; border-color: #ccc; }
.badge-wip  { background: var(--yellow); color: var(--ink); }

.card-glyph { font-size: 32px; margin-bottom: 12px; display: block; }

.card-title {
  font-family: 'Bangers', sans-serif;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 1.0;
  margin-bottom: 7px;
}

.card-subvalue {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0;
  vertical-align: middle;
}

.card-desc { font-size: 11px; color: var(--mid); line-height: 1.65; }
.card.wide .card-desc { color: rgba(255,255,255,0.75); }

/* ── LIST STACK (links + notebook homepage previews) ── */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}


.post-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}


.list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 4px 4px 0 var(--ink);
  background: white;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
}

.list-row:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.list-row:active { transform: translate(1px, 1px);   box-shadow: 2px 2px 0 var(--ink); }

.list-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.list-row-title {
  font-family: 'Bangers', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.list-row-desc {
  font-size: 11px;
  color: var(--mid);
  line-height: 1.6;
}

.list-row-date {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
  display: block;
  margin-bottom: 0.4rem;
}

/* ── POST CONTENT (markdown-rendered) ──
   Everything inside .e-content comes straight from a post's Markdown
   body. The site-wide reset zeroes margin on every element, so without
   these rules, paragraphs/lists/etc all stack with no visual gap. */
.e-content p { margin: 0 0 1.25em; }
.e-content p:last-child { margin-bottom: 0; }

.e-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.e-content a:hover { color: var(--teal); }

.e-content ul, .e-content ol { margin: 0 0 1.25em 1.4em; }
.e-content li { margin-bottom: 0.4em; }

.e-content blockquote {
  border-left: 4px solid var(--pink);
  padding-left: 1rem;
  margin: 0 0 1.25em;
  color: var(--mid);
  font-style: italic;
}

.e-content strong { font-weight: 800; }

.e-content h2, .e-content h3 {
  font-family: 'Bangers', sans-serif;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
  line-height: 1.15;
}
.e-content h2 { font-size: 1.6rem; }
.e-content h3 { font-size: 1.3rem; }

.empty-state {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--mid);
  padding: 1rem 0;
}

/* ── DOODLE DIVIDER ── */
.doodle-divider {
  text-align: center;
  font-size: 22px;
  margin: 8px 0 40px;
  letter-spacing: 8px;
  color: var(--border);
}

/* ── PODCAST ── */
.pod-block {
  background: var(--purple);
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 28px 52px;
  box-shadow: 6px 6px 0 var(--ink);
}

.pod-cover {
  width: 80px;
  height: 80px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 3px 3px 0 var(--ink);
}

.pod-body { flex: 1; min-width: 200px; }

.pod-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.pod-title {
  font-family: 'Bangers', sans-serif;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: white;
  margin-bottom: 8px;
  font-weight: normal;
}

.pod-desc { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 18px; }

.pod-platforms { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── NEWSLETTER ── */
.nl-block {
  margin: 0 28px 52px;
  background: white;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 36px 32px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  box-shadow: 6px 6px 0 var(--ink);
}

.nl-left { flex: 1; min-width: 200px; }

.nl-cover {
  width: 80px;
  height: 80px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 3px 3px 0 var(--ink);
}

.nl-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.nl-title {
  font-family: 'Bangers', sans-serif;
  font-size: 30px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: normal;
}

.nl-desc { font-size: 12px; color: var(--mid); line-height: 1.75; }

.nl-right {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nl-input {
  width: 100%;
  padding: 12px 14px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: 'Zalando Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 0.12s, transform 0.12s;
}

.nl-input:focus { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nl-input::placeholder { color: #bbb; }

.nl-btn,
input[type="submit"].nl-btn {
  background: var(--ink);
  color: white;
  border: 2px solid var(--ink);
  padding: 13px;
  font-family: 'Bangers', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  transition: transform 0.12s, box-shadow 0.12s;
  width: 100%;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.nl-btn:hover,
input[type="submit"].nl-btn:hover  { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(0,0,0,0.25); }
.nl-btn:active,
input[type="submit"].nl-btn:active { transform: translate(1px, 1px);   box-shadow: 1px 1px 0 rgba(0,0,0,0.25); }

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.nl-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── ABOUT ── */
.about-section {
  margin: 0 28px 52px;
  background: var(--teal);
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 6px 6px 0 var(--ink);
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bangers', sans-serif;
  font-size: 22px;
  color: var(--teal);
  box-shadow: 3px 3px 0 var(--ink);
}

.about-body { flex: 1; min-width: 200px; }

.about-name {
  font-family: 'Bangers', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: white;
  margin-bottom: 5px;
  font-weight: normal;
}

.about-name a { color: white; text-decoration: underline wavy rgba(255,255,255,0.5) 1.5px; }

.about-text { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.75; }

/* ── FOOTER ── */
footer {
  margin: 0 28px;
  padding-top: 24px;
  border-top: 3px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: 'Bangers', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--mid);
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--pink); }

.footer-links .link-tertiary {
  text-transform: none;
}

/* ── FUEL ME (Buy Me a Coffee) ── */
.fuel-me {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 12px 18px;
  font-family: 'Bangers', sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  z-index: 550;
}

.fuel-me:hover  { transform: rotate(-3deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.fuel-me:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }



@media (max-width: 1500px) {

 h1 {
    font-size: clamp(22px, 7.5vw, 42px);
    white-space: normal;
    padding-bottom: 20px;
  }

  .hero { padding: 25px 20px 36px; }


}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {

  .nav-links { display: none; }

  .smftd-26-subnav {
    gap: 6px;
    top: 65px;
  }
  .smftd-26-subnav .btn-primary {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 8px;
    padding: 5px 6px;
    box-shadow: 2px 2px 0 var(--ink);
    transition: transform 0.12s, box-shadow 0.12s;
    pointer-events: all;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
  }

  .nav-hamburger:hover  { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
  .nav-hamburger:active { transform: translate(1px,1px);   box-shadow: 2px 2px 0 var(--ink); }

  .hero { padding: 25px 20px 36px; }

  h1 {
    font-size: clamp(22px, 7.5vw, 42px);
    white-space: normal;
    padding-bottom: 20px;
  }

  .hero-sticker { font-size: 10px; }
  .hero-desc { font-size: 15px; margin-bottom: 24px; }

  .listen-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .listen-label { margin-bottom: 2px; }

  .ticker-wrap { margin: 32px -4px; flex-direction: column; }
  .ticker-item {
    white-space: normal;
    width: 100%;
    border-radius: var(--rad);
    font-size: 15px;
    padding: 10px 14px;
  }

  .section { padding: 0 20px; margin-bottom: 40px; }

  .section-pill { display: none; }

  .grid { grid-template-columns: 1fr; }

  .pod-block     { margin: 0 20px 40px; padding: 24px 20px; flex-direction: column; }
  .nl-block      { margin: 0 20px 40px; padding: 24px 20px; flex-direction: column; }
  .project-hero-block { margin: 0 20px 40px; padding: 24px 20px 8px; }
  .yt-block      { margin: 0 20px 40px; padding: 24px 20px; }
  .yt-grid       { grid-template-columns: 1fr; }
  .about-section { margin: 0 20px 40px; padding: 20px; }

  .nl-right { min-width: unset; width: 100%; }

  footer {
    margin: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links { flex-wrap: wrap; gap: 12px; }

  .fuel-me {
    bottom: 10px;
    right: 10px;
    padding: 5px 7px;
    font-size: 12px;
  }

  .card-desc,
  .hero-desc,
  .pod-desc,
  .nl-desc,
  .about-text {
    line-height: 1.65;
  }
}

/* --- Zalando Sans, kept available for Work's calmer register if you tweak it back --- */
@font-face {
  font-display: swap;
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/zalando-sans-v3-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/zalando-sans-v3-latin-700.woff2') format('woff2');
}
