/* Clean white pages, near-black ink, dark pill buttons and a lime accent used sparingly. */
@font-face { font-family: "Albert Sans"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/albert-sans.woff2) format("woff2"); }
:root {
  color-scheme: light;
  --ink: #262626; --ink-soft: #434343; --ink-mute: #595959; --ink-faint: #8c8c8c;
  --line: #e6e6e6; --line-soft: #ededed; --mist: #f6f6f4;
  --lime: #63fe13; --olive: #218c00;
  --shadow: 0 30px 60px -30px rgba(38, 38, 38, .22);
  --font: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--olive); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 999px; }
h1, h2, h3, p { margin: 0; }
img[src*='/characters/'], .brand img, .button .badge img { image-rendering: pixelated; }

.site-header, main, .site-footer { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header: brand, quiet links, and the dark pill on the right. */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; background: color-mix(in srgb, #fff 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.wordmark { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.wordmark-cat { padding: 0 .06em; background: linear-gradient(transparent 64%, var(--lime) 64%, var(--lime) 92%, transparent 92%); }
.site-header nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.site-header nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { background: var(--line-soft); color: var(--ink); }
.site-header nav a.nav-cta { margin-left: 8px; background: var(--ink); color: #fafafa; }

/* The dark pill with a lime badge. */
.button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 16px 30px -16px rgba(38, 38, 38, .5); }
.button .badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); }
.button .badge img { width: 20px; height: 20px; }
.button[aria-disabled='true'] { cursor: default; }

/* Hero: heavy tight headline. */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.lede { max-width: 560px; margin: 22px auto 0; color: var(--ink-mute); font-size: 18px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* A YouTube-style player: video, captions in YouTube's default look, and the control bar.
   The cat is positioned on the caption line by the extension's renderer. */
.player { margin: 56px auto 0; max-width: 920px; }
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; box-shadow: var(--shadow), 0 0 0 1px rgba(38, 38, 38, .06); font-family: Roboto, Arial, sans-serif; }
.yt-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The host only moves while a line is being spoken. */
.yt-host { transform-box: view-box; transform-origin: 810px 900px; animation: talk 3.6s ease-in-out infinite paused; }
.yt.is-talking .yt-host { animation-play-state: running; }
@keyframes talk { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-.8deg) translateY(-3px); } 60% { transform: rotate(.6deg); } }
.yt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.yt-captions { position: absolute; z-index: 2; left: 0; right: 0; bottom: 17%; text-align: center; font-size: clamp(13px, 2.3vw, 22px); }
.yt-caption { display: block; line-height: 0; }
.yt-caption > span { display: inline-block; max-width: 86%; padding: .08em .3em; color: #fff; background: rgba(8, 8, 8, .75); line-height: 1.35; }
.yt-chrome { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 clamp(10px, 1.6vw, 14px); color: #fff; }
.yt-progress { position: relative; height: 3px; background: rgba(255, 255, 255, .2); }
.yt-buffered, .yt-played { position: absolute; left: 0; top: 0; bottom: 0; }
.yt-buffered { width: 41%; background: rgba(255, 255, 255, .4); }
.yt-played { width: 26%; background: #f00; }
.yt-scrubber { position: absolute; top: 50%; left: 26%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #f00; }
.yt-controls { display: flex; align-items: center; gap: clamp(8px, 1.8vw, 18px); height: clamp(34px, 5.4vw, 48px); }
.yt-controls svg { width: clamp(18px, 2.6vw, 24px); height: clamp(18px, 2.6vw, 24px); fill: currentColor; flex: none; }
.yt-time { font-size: clamp(11px, 1.5vw, 13px); white-space: nowrap; opacity: .92; }
.yt-spacer { flex: 1; }
.yt-cc { position: relative; display: inline-flex; }
.yt-scene { cursor: pointer; }
.yt-button { display: inline-flex; padding: 0; border: 0; background: none; color: inherit; }
.yt-play, .yt.is-paused .yt-pause, .yt-silent, .yt.is-muted .yt-sound { display: none; }
.yt.is-paused .yt-play, .yt.is-muted .yt-silent { display: block; }
/* Volume: the slider slides out next to the speaker on hover, as on YouTube. --level (0–1) is set by script. */
.yt-volume { display: flex; align-items: center; }
.yt-slider { width: 0; height: 3px; margin: 0; padding: 0; opacity: 0; appearance: none; border-radius: 2px; cursor: pointer; transition: width .2s, margin .2s, opacity .2s;
  background: linear-gradient(#fff, #fff) 0 0 / calc(var(--level, 1) * 100%) 100% no-repeat, rgba(255, 255, 255, .3); }
.yt-volume:hover .yt-slider, .yt-volume:focus-within .yt-slider { width: clamp(48px, 7vw, 64px); margin-left: 8px; opacity: 1; }
.yt-slider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.yt-slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
/* Muted autoplay, as on YouTube: a white "Tap to unmute" in the corner. After the clip, a replay button. */
.yt button { font: inherit; cursor: pointer; }
.yt-unmute { position: absolute; z-index: 4; top: clamp(10px, 2vw, 16px); left: clamp(10px, 2vw, 16px); display: none; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 0; border-radius: 3px; background: #fff; color: #0f0f0f; font-size: clamp(12px, 1.5vw, 14px); font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.yt-unmute svg { width: 20px; height: 20px; fill: currentColor; }
.yt-unmute:hover { background: #f2f2f2; }
.yt.is-muted .yt-unmute { display: inline-flex; }
.yt-replay { position: absolute; z-index: 4; left: 50%; top: 42%; display: none; place-items: center; width: clamp(48px, 8vw, 68px); height: clamp(48px, 8vw, 68px); margin: calc(clamp(48px, 8vw, 68px) / -2) 0 0 calc(clamp(48px, 8vw, 68px) / -2); border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; }
.yt-replay svg { width: 55%; height: 55%; fill: currentColor; }
.yt-replay:hover { background: rgba(0, 0, 0, .8); }
.yt[data-state='ended'] .yt-replay { display: grid; }
.yt button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.yt-cc::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: -4px; height: 3px; border-radius: 2px; background: #f00; }

/* The story: a cat beside a few honest paragraphs. */
.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 860px; margin: 0 auto; padding: 128px 0 0; }
.story-cat { position: sticky; top: 120px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--mist); }
.story-cat img { width: 80%; height: auto; }
.story h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.story-text > p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.extras { margin: 28px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-mute); }
.extras li { position: relative; padding-left: 20px; }
.extras li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.extras strong { color: var(--ink); font-weight: 650; }
.story-text > p.note { margin-top: 20px; color: var(--ink-faint); font-size: 14px; }

/* Closing call to action, with a cat asleep on top of the card. */
.closing { position: relative; margin-top: 160px; padding: 72px 24px 64px; border-radius: 32px; background: var(--mist); text-align: center; }
.closing-cat { position: absolute; left: 50%; top: 0; width: 144px; margin: -139px 0 0 -72px; } /* the art sits at the bottom of its canvas, so this rests it on the edge */
.closing-cat img { display: block; width: 100%; height: auto; }
.closing h2 { max-width: 640px; margin: 0 auto; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.closing p { margin-top: 14px; color: var(--ink-mute); }
.closing .actions { margin-top: 28px; }

/* Text pages such as the privacy policy. */
.prose { max-width: 700px; padding: 56px 0 0; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.prose .updated { margin-top: 10px; color: var(--ink-faint); font-size: 14px; }
.prose h2 { margin-top: 40px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.prose p, .prose ul { margin-top: 12px; color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }

/* Footer: a cat strolls along the footer rule on the home page. */
.site-footer { margin-top: 96px; padding-bottom: 40px; color: var(--ink-faint); font-size: 14px; }
.stroll { position: relative; height: 64px; overflow: hidden; }
.stroll-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); font-size: 12px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.site-footer a { color: var(--ink-mute); }
/* Text pages have no strolling cat, so the footer row draws its own rule. */
.prose ~ .site-footer .footer-row { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 40px; }
  .lede { font-size: 16px; }
  .player { margin-top: 36px; }
  .yt { border-radius: 10px; }
  .yt-time { display: none; }
  .yt-slider { display: none; }
  .yt-captions { bottom: 28%; font-size: 12px; }
  .yt-caption > span { max-width: 92%; }
  .story { grid-template-columns: 1fr; gap: 24px; padding-top: 88px; }
  .story-cat { position: static; width: 160px; }
  .story-text > p { font-size: 16px; }
  .closing { margin-top: 128px; padding: 64px 20px 48px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yt-host { animation: none; }
  .yt-slider { transition: none; }
}
