:root {
  --ink: #1a1423;
  --paper: #fff8e7;
  --yolk: #ffcb05;
  --comb: #ff4d2e;
  --teal: #2ec4b6;
  --grape: #7b5cff;
  --card: #ffffff;
  --muted: #5b5366;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--yolk);
  border-bottom: 3px solid var(--ink);
}
.logo {
  font: 800 1.4rem/1 var(--font-display);
  text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo span:last-child { color: var(--comb); }
.logo-mark { display: inline-block; transform: rotate(-12deg); }
.logo:hover .logo-mark { animation: flap .4s ease-in-out 2; }
.site-header nav { display: flex; gap: 18px; font-weight: 600; }
.site-header nav a { text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-color: var(--comb); }

main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  margin: 40px 0 56px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--comb); color: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--yolk);
  font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
}
.hero h1 {
  margin: 0 0 18px; max-width: 12ch;
  font: 800 clamp(2.6rem, 7vw, 5.4rem)/0.95 var(--font-display);
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--yolk); }
.lede { max-width: 46ch; font-size: 1.15rem; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art {
  width: 100%; max-width: 420px; justify-self: center;
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: var(--shadow);
  background: var(--paper); animation: bob 3.5s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  padding: 12px 22px; border-radius: 999px;
  background: var(--yolk); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 700 1rem var(--font-display); text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: #fff; }

/* Posts */
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2, .about h2 {
  margin: 0; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.03em;
}
.pill { background: var(--teal); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 600; font-size: .85rem; }
.pill:empty { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card {
  --accent: var(--yolk);
  display: flex; flex-direction: column;
  background: var(--card); text-decoration: none;
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); }
.card-media {
  aspect-ratio: 2 / 1; background: var(--accent);
  border-bottom: 3px solid var(--ink);
  display: grid; place-items: center; font-size: 64px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card h3 { margin: 6px 0 10px; font: 700 1.35rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.card .read { font-weight: 700; color: var(--comb); }

.skeleton { min-height: 340px; background: linear-gradient(100deg, #fff 30%, #fff1c2 50%, #fff 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.tall { min-height: 60vh; }

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 24px; background: #fff; border: 3px dashed var(--ink); border-radius: var(--radius); }
.empty-icon { font-size: 56px; animation: wobble 2s ease-in-out infinite; display: inline-block; }
.empty h3 { font: 800 1.6rem var(--font-display); margin: 8px 0; }
.empty p { margin: 0; color: var(--muted); }

.pager[hidden] { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 40px 0 0; font-weight: 600; }

/* About */
.about {
  margin: 72px 0; padding: clamp(28px, 5vw, 56px);
  background: var(--grape); color: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about p { max-width: 62ch; font-size: 1.1rem; margin: 14px 0 0; }

/* Article */
.article { max-width: 1040px; margin: 48px auto 24px; }
.article-head, .prose { max-width: 720px; margin-left: auto; margin-right: auto; }
.strip { margin: 0 0 36px; }
.strip img { width: 100%; border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.episode-nav { max-width: 720px; margin: 0 auto 64px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-head { margin-bottom: 28px; }
.article-head time, .article-head span { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.article-head h1 { margin: 10px 0 0; font: 800 clamp(2.2rem, 6vw, 3.8rem)/1 var(--font-display); letter-spacing: -0.035em; }
.prose { font-size: 1.12rem; }
.prose h2, .prose h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 1.8em 0 .5em; }
.prose a { color: var(--comb); text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; background: var(--yolk); border: 3px solid var(--ink); border-radius: 16px; font-weight: 600; }
.prose pre { background: var(--ink); color: var(--paper); padding: 18px; border-radius: 14px; overflow-x: auto; }
.prose code { font-size: .92em; }
.prose img, .prose figure { border-radius: 14px; margin: 1.5em 0; }
.prose figure img { margin: 0; }

/* Footer */
.site-footer { text-align: center; padding: 28px 16px; background: var(--ink); color: var(--yolk); font-weight: 600; }
.site-footer p { margin: 0; }

@keyframes bob { 50% { transform: rotate(3deg) translateY(-10px); } }
@keyframes flap { 50% { transform: rotate(14deg) scale(1.15); } }
@keyframes wobble { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 560px) {
  .site-header nav { gap: 12px; font-size: .95rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art {
  width: 100%; max-width: 420px; justify-self: center;
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: var(--shadow);
  background: var(--paper); animation: bob 3.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
