/* jd.css — jokeydoodles.com: paper, ink, riso colours and wobbly hand-drawn lines. */
@font-face { font-family: "JD Display"; src: url(Montserrat-Black.otf) format("opentype"); font-weight: 900; font-display: swap; }
:root {
  --paper: #F7F1E2; --paper2: #FFFBF0; --ink: #26222B; --ink2: #5B5560;
  --yellow: #F9C933; --teal: #1D9AA3; --pink: #FF5AA8; --blue: #3E7BEF;
  --w: 1120px; --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 500 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3, .hand, .btn { font-family: "JD Display", "Arial Black", system-ui, sans-serif; font-weight: 900; letter-spacing: -.2px; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 0 14px; }
h2 { font-size: clamp(24px, 4.4vw, 34px); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.block { padding-top: 34px; padding-bottom: 34px; }
.lead { font-size: 19px; color: var(--ink2); max-width: 680px; }
.fine { font-size: 14px; color: var(--ink2); }
.hand { text-shadow: 3px 3px 0 var(--yellow); }
h2.hand { display: inline-block; }

/* wobbly ink outline + offset riso fill */
.doodle { position: relative; isolation: isolate; }
.doodle::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--fill, var(--yellow));
  transform: translate(6px, 7px); filter: url(#wobble); }
.doodle::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 3px solid var(--ink);
  background: var(--bg, var(--paper2)); filter: url(#wobble); }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 6px; }
.mark img { width: 128px; }
.bar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.bar nav a:hover, .bar nav a[aria-current] { background: var(--yellow); color: var(--ink); }

/* hero */
.hero { text-align: center; padding-top: 18px; padding-bottom: 20px; }
.hero h1 { margin: 0 auto; max-width: 520px; }
.hero h1 img { width: 100%; animation: wobble-in .9s cubic-bezier(.2, 1.4, .5, 1) both; }
.tagline { font-size: clamp(24px, 5vw, 36px); margin: 4px 0 6px; color: var(--ink); text-shadow: 3px 3px 0 var(--pink); }
.hero .lead { margin: 10px auto 22px; }
@keyframes wobble-in { from { opacity: 0; transform: rotate(-3deg) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 img { animation: none; } html { scroll-behavior: auto; } }

/* buttons */
.btn { display: inline-block; font-size: 18px; color: var(--ink); text-decoration: none; padding: 13px 24px; border: 0; background: none;
  cursor: pointer; border-radius: 999px; --fill: var(--pink); --bg: var(--paper2); }
.btn.yellow { --bg: var(--yellow); --fill: var(--teal); }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px) rotate(-.6deg); }
.btn:active { transform: translate(2px, 3px); }
.btn:focus-visible, a:focus-visible { outline: 3px dashed var(--pink); outline-offset: 4px; }

/* cards */
.card { border-radius: var(--r); padding: 26px 24px; margin-bottom: 18px; }
.soon { text-align: center; --fill: var(--teal); max-width: 760px; margin: 0 auto; }
.soon p { color: var(--ink2); max-width: 560px; margin-left: auto; margin-right: auto; }
.sketch { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.sketch span { width: 54px; height: 96px; border: 3px dashed var(--ink); border-radius: 10px; filter: url(#wobble); opacity: .55; }
.sketch span:nth-child(2) { transform: rotate(3deg); border-color: var(--teal); }
.sketch span:nth-child(3) { transform: rotate(-4deg); border-color: var(--pink); }
.three { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.three .card { margin: 0; }
.three p { margin: 0; color: var(--ink2); }
.k1 { --fill: var(--yellow); } .k2 { --fill: var(--teal); } .k3 { --fill: var(--pink); }
.big { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper2);
  font-family: "JD Display", sans-serif; font-size: 20px; margin-bottom: 8px; }

/* video grid */
.grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.tile { display: block; color: var(--ink); text-decoration: none; border-radius: 16px; padding: 8px 8px 12px; --fill: var(--teal); }
.tile:nth-child(3n+2) { --fill: var(--pink); } .tile:nth-child(3n) { --fill: var(--yellow); }
.tile:hover { color: var(--ink); transform: rotate(-.8deg); }
.tile .thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .dur { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.tile .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--yellow);
  border: 3px solid var(--ink); opacity: .92; }
.tile .play::after { content: ""; position: absolute; left: 20px; top: 14px; border-left: 19px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.tile h3 { font-size: 16px; margin: 10px 4px 0; line-height: 1.25; }
.more { text-align: center; margin-top: 26px; }

/* video page */
.film { display: grid; gap: 34px; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; }
.player { border-radius: 18px; padding: 8px; --fill: var(--pink); }
.player video { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.tags { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { background: var(--paper2); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 14px; font-weight: 700; }
.script summary { cursor: pointer; font-weight: 800; }
.script ol { padding-left: 1.2em; color: var(--ink2); }
@media (max-width: 760px) { .film { grid-template-columns: 1fr; } .player { max-width: 420px; margin: 0 auto; } }

/* social */
.social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800;
  background: var(--paper2); border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 16px 8px 10px; box-shadow: 3px 3px 0 var(--teal); }
.social a:hover { box-shadow: 3px 3px 0 var(--pink); color: var(--ink); }
.social svg { width: 24px; height: 24px; }
.social.small { justify-content: center; }
.social.small a { padding: 6px; box-shadow: none; } .social.small span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* legal pages */
.legal { max-width: 820px; --fill: var(--teal); margin-top: 20px; }
.legal h2 { font-size: 22px; margin-top: 26px; }
.legal p { color: var(--ink); }

/* footer */
.foot { text-align: center; padding-top: 40px; padding-bottom: 40px; border-top: 3px dashed #26222b33; margin-top: 30px; }
.foot img { width: 120px; margin: 0 auto; }
.foot .tag { font-family: "JD Display", sans-serif; margin: 6px 0; }
.foot nav { display: flex; justify-content: center; gap: 6px 18px; flex-wrap: wrap; margin: 14px 0 8px; }
.foot nav a { color: var(--ink); font-weight: 700; }
.notfound { min-height: 40vh; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .mark img { width: 104px; }
  .bar nav a { padding: 7px 10px; }
  .card { padding: 22px 18px; }
  .lead { font-size: 17px; }
}
