/* Clarro site: the episodes' comic look on the web. Ink outlines, offset ink shadows, halftone, one yellow. */
@font-face { font-family: 'Clarro Display'; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Clarro Display'; font-weight: 800; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Clarro Text'; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Clarro Text'; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #141414; --yel: #FFD23F; --grey: #D9D5CF; --paper: #F4F1EC; --blue: #3A5FC8; --red: #E0382B; --white: #FFFFFF;
  --display: 'Clarro Display', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --text: 'Clarro Text', 'Avenir Next', system-ui, sans-serif;
  --line: 4px; --drop: 8px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--yel); color: var(--ink); font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* halftone grounds, the same dot grids the episodes use */
.dots-yel { background-color: var(--yel); background-image: radial-gradient(rgba(20,20,20,.12) 2.2px, transparent 2.6px); background-size: 22px 22px; }
.dots-grey { background-color: var(--grey); background-image: radial-gradient(rgba(20,20,20,.13) 2px, transparent 2.4px); background-size: 20px 20px; }
.dots-blue { background-color: var(--blue); background-image: radial-gradient(rgba(255,255,255,.13) 2px, transparent 2.4px); background-size: 20px 20px; }

/* the comic panel: white box, ink line, ink offset shadow */
.panel { background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--drop) var(--drop) 0 var(--ink); }
.tag { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; line-height: 1; padding: 7px 10px 6px; background: var(--yel); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* top bar */
.bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.mini { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .03em; padding: 4px 10px 3px; background: var(--white); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); text-decoration: none; }
.langs { display: flex; gap: 8px; }
.langs button { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .05em; width: 46px; height: 38px; cursor: pointer; color: var(--ink); background: var(--white); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.langs button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.langs button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--yel); }
.langs button:focus-visible, .mini:focus-visible, .foot a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* hero */
.hero { position: relative; padding: clamp(28px, 7vw, 72px) 0 clamp(64px, 10vw, 110px); }
.logo { position: relative; width: fit-content; margin: 0 auto; transform: rotate(-4deg); animation: drop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.logo h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(76px, 19vw, 210px); line-height: .9; letter-spacing: .02em; padding: .1em .22em .02em; }
.logo .panel { border-width: clamp(5px, 1vw, 9px); box-shadow: clamp(9px, 1.6vw, 16px) clamp(9px, 1.6vw, 16px) 0 var(--ink); }
.logo .lang-tab { position: absolute; right: -14px; bottom: -26px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 52px); line-height: 1; letter-spacing: .04em; padding: .16em .32em .1em; color: var(--yel); background: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(20,20,20,.35); transform: rotate(-4deg); animation: pop .4s .55s cubic-bezier(.2, 1.8, .4, 1) both; }
.qmark { position: absolute; font-family: var(--display); font-weight: 800; color: var(--yel); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); line-height: 1; pointer-events: none; }
.q1 { font-size: clamp(70px, 13vw, 150px); left: max(2vw, 8px); top: 6%; transform: rotate(-14deg); animation: bob 5s ease-in-out infinite; }
.q2 { font-size: clamp(48px, 9vw, 100px); right: max(3vw, 10px); top: 30%; transform: rotate(16deg); animation: bob 6s 1s ease-in-out infinite; }

/* the tagline plays like an episode caption: a yellow highlight walks word by word */
.caption { max-width: 820px; margin: clamp(52px, 8vw, 76px) auto 0; padding: 18px 24px 16px; text-align: center; transform: rotate(-1deg); }
.caption p { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(25px, 4.4vw, 42px); line-height: 1.22; letter-spacing: .02em; color: #A9A49E; }
.caption .w { position: relative; display: inline-block; transition: color .15s; }
.caption .w::before { content: ''; position: absolute; inset: -.04em -.14em; background: var(--yel); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .14s ease-out; }
.caption .w.on { color: var(--ink); }
.caption .w.hot::before { transform: scaleX(1); }
.caption p { position: relative; z-index: 0; }
.sub { max-width: 640px; margin: 30px auto 0; text-align: center; font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); }

/* episodes */
.eps { padding: clamp(56px, 9vw, 96px) 0; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: clamp(30px, 5vw, 48px); }
.head h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 7vw, 68px); line-height: .95; letter-spacing: .01em; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px); }
.card { position: relative; transform: rotate(var(--r, -1.2deg)); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.card:nth-child(2n) { --r: 1.4deg; }
.card:nth-child(3n) { --r: -.6deg; }
.card:hover { transform: rotate(0) translateY(-6px); }
.card .panel { padding: 10px; }
.card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); background: var(--grey); }
.card h3 { margin: 12px 4px 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 23px; line-height: 1.12; letter-spacing: .01em; }
.card .n { position: absolute; top: -14px; left: -12px; z-index: 1; transform: rotate(-6deg); }

/* guide */
.guide { padding: clamp(64px, 10vw, 110px) 0; color: var(--ink); }
.guide .panel { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 56px) clamp(28px, 5vw, 48px); transform: rotate(1deg); }
.guide .tag { position: absolute; top: -18px; left: 24px; background: var(--red); color: var(--white); transform: rotate(-4deg); }
.guide h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7vw, 72px); line-height: .95; }
.guide p { margin: 0; font-size: clamp(18px, 2.3vw, 21px); }
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; padding: 6px 10px 5px; border: 3px solid var(--ink); background: var(--paper); }

/* footer */
.foot { background: var(--ink); color: var(--paper); padding: 40px 0 46px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot p { margin: 0; }
.foot .ask { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; color: var(--yel); }
.foot a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot .small { font-size: 15px; color: #BDB8B0; }

/* legal page */
.legal { padding: clamp(36px, 7vw, 72px) 0 clamp(64px, 9vw, 96px); }
.legal .panel { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); }
.legal h1 { margin: 0 0 18px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7vw, 64px); line-height: .95; }
.legal h2 { margin: 28px 0 8px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; }
.legal p, .legal dl { margin: 0 0 10px; }
.legal dt { font-weight: 700; margin-top: 10px; }
.legal dd { margin: 0; }

@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(.9); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes pop { from { opacity: 0; transform: rotate(-4deg) scale(.3); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) {
  .langs button { width: 40px; height: 36px; font-size: 15px; }
  .mini { font-size: 19px; }
  .q2 { top: 34%; right: 6px; }
}
