:root {
  --cream:   #fff7df;
  --cream-2: #fbecbf;
  --ink:     #1f2018;
  --ink-soft:#5a5848;
  --duck:    #ffd23a;
  --duck-2:  #f3b419;
  --pond:    #5fb7c4;
  --pond-2:  #2e8995;
  --coral:   #ff7866;
  --line:    #d8c98e;
  --max:     980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 700px 460px at 10% -5%, #fff1b266, transparent 60%),
    radial-gradient(ellipse 600px 400px at 95% 10%, #95dde666, transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 100%, #ffa89944, transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.13  0 0 0 0 0.06  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}
main, header, footer, .for-sale-bar { position: relative; z-index: 1; }
a { color: var(--pond-2); text-underline-offset: 3px; }

/* === for-sale top bar === */
.for-sale-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--duck);
  text-decoration: none;
  padding: 10px 16px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  border-bottom: 3px solid var(--duck);
  transition: background 0.15s;
}
.for-sale-bar:hover { background: #000; }
.for-sale-bar strong { color: #fff; }
.for-sale-bar .duck { font-size: 18px; }
.for-sale-bar .arrow { color: #fff; font-size: 18px; }

/* === header === */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 36px) 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-logo {
  font-size: 36px;
  display: inline-block;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.12));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.brand-text .sub {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--duck-2); color: var(--pond-2); }

/* === today's joke === */
.today {
  max-width: var(--max);
  margin: 24px auto 64px;
  padding: 0 clamp(20px, 4vw, 36px);
}
.today-meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.badge.yellow { background: var(--duck); color: var(--ink); }
.date {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}
.setup-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
h1.setup {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 22ch;
}

.joke-art {
  margin: 0 0 28px;
  text-align: center;
}
.joke-art img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--duck), 16px 16px 0 var(--pond);
  background: var(--cream-2);
}
.joke-art figcaption {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--ink-soft);
  margin-top: 18px;
  transform: rotate(-1deg);
}

.punchline {
  background: var(--cream-2);
  border: 3px dashed var(--ink);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.punchline[open] { background: #fff; border-style: solid; border-color: var(--duck-2); }
.punchline summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.punchline summary::-webkit-details-marker { display: none; }
.punchline summary .reveal-icon { transition: transform 0.2s; }
.punchline[open] summary .reveal-icon { transform: rotate(90deg); }
.punch {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 18px 0 6px;
  color: var(--ink);
}
.punch em { color: var(--coral); font-style: italic; }
.punch-aside {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0;
  transform: rotate(-0.5deg);
  display: inline-block;
}

.reactions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.reaction:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.reaction.reacted { transform: scale(1.08); }
.reaction .emoji { font-size: 18px; }

/* === subscribe === */
.subscribe {
  background: var(--duck);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 56px clamp(20px, 4vw, 36px);
  text-align: center;
}
.subscribe-inner { max-width: 640px; margin: 0 auto; }
.subscribe h2 {
  font-family: "Caveat", cursive;
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 8px;
}
.subscribe h2 .hand { display: inline-block; transform: rotate(-1.5deg); }
.subscribe p { margin: 0 0 22px; color: var(--ink); font-size: 17px; }
.subscribe-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.subscribe-form input:focus { outline: none; border-color: var(--pond-2); }
.subscribe-form button {
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--duck);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--coral);
  transition: transform 0.15s, box-shadow 0.15s;
}
.subscribe-form button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--coral); }
.subscribe-form .subscribed {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.tiny-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* === archive === */
.archive {
  max-width: var(--max);
  margin: 64px auto;
  padding: 0 clamp(20px, 4vw, 36px);
}
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 22px; flex-wrap: wrap; gap: 8px;
}
.section-head h2, .categories h2 {
  font-family: "Caveat", cursive;
  font-size: clamp(34px, 5vw, 48px);
  margin: 0;
}
.section-head h2 .hand, .categories h2 .hand { display: inline-block; transform: rotate(-1deg); }
.archive-link {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pond-2);
  text-decoration: none;
}
.archive-link:hover { text-decoration: underline; }
.archive-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) { .archive-list { grid-template-columns: 1fr; } }
.archive-list li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.archive-list li:nth-child(odd)  { transform: rotate(-0.3deg); }
.archive-list li:nth-child(even) { transform: rotate(0.3deg); box-shadow: 3px 3px 0 var(--pond); }
.archive-date {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pond-2);
  margin-bottom: 6px;
}
.archive-setup {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--ink);
}
.archive-punch {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0;
}

/* === categories === */
.categories {
  max-width: var(--max);
  margin: 0 auto 64px;
  padding: 0 clamp(20px, 4vw, 36px);
}
.cat-list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cat-list a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cat-list a span {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--cream-2);
  padding: 2px 8px;
  border-radius: 999px;
}
.cat-list a:hover {
  background: var(--duck);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* === inquire === */
.inquire {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 4vw, 36px);
}
.inquire-inner {
  background: var(--cream-2);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 40px clamp(24px, 4vw, 48px);
  box-shadow: 8px 8px 0 var(--coral), 16px 16px 0 var(--ink);
  text-align: center;
}
.inquire h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.inquire p {
  max-width: 56ch; margin: 0 auto 24px;
  color: var(--ink-soft);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
}
.inquire .cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--duck);
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
  transition: transform 0.15s, box-shadow 0.15s;
}
.inquire .cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--coral); }
.inquire .cta:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--coral); }

/* === footer === */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 24px clamp(20px, 4vw, 36px);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-inner p { margin: 0; }
.for-sale-link {
  color: var(--duck);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px dotted var(--duck);
}
.for-sale-link:hover { color: #ffe680; }
