:root {
  --background: #fff;
  --ink: #000;
  --focus: #827291;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button { font-family: inherit; }
.site-shell { overflow-x: clip; }
.home { min-height: 100svh; position: relative; padding: 24px 34px; text-align: center; }
.site-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wordmark { color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.06em; text-decoration: none; }
.socials { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.socials a { color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-decoration: none; white-space: nowrap; transition: opacity 160ms ease; }
.socials a:hover, .socials a:focus-visible { opacity: .55; }

.ticker { width: calc(100% + 68px); margin: 16px 0 0 -34px; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 24s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; align-items: center; justify-content: space-around; min-width: 100vw; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 9px 22px; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.ticker i { font-size: 17px; font-style: normal; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker--faces { width: 100%; margin: 0; }
.ticker--faces .ticker-track { animation-duration: 32s; animation-direction: reverse; }
.ticker--faces span { gap: 0; padding: 18px 26px; font-size: clamp(15px, 2.2vw, 20px); font-weight: 400; letter-spacing: 0; }

.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(44px, 7vw, 78px) 0 clamp(54px, 8vw, 92px); }
h1 { margin: 0; font-size: clamp(44px, 8vw, 76px); font-weight: 400; letter-spacing: -.07em; }
.hero-meow { min-height: 31px; margin: 10px 0 0; font-size: clamp(13px, 2vw, 17px); line-height: 1.8; }
.hero-cat { display: block; width: auto; height: clamp(160px, 27vh, 260px); margin: 2px 0; object-fit: contain; }
.caret { display: inline-block; margin-left: 3px; animation: blink 900ms step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 12px; margin-top: 20px; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 44px; border: 0; border-radius: 8px; padding: 12px 22px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; cursor: pointer; transition: transform 140ms ease, background 140ms ease; }
.buy-button { background: var(--ink); color: #fff; }
.pet-button { background: #f0f0f0; }
.buy-button:hover, .buy-button:focus-visible { background: #292929; }
.pet-button:hover, .pet-button:focus-visible { background: #e4e4e4; }
.hero-action:hover, .hero-action:focus-visible { transform: translateY(-1px); }
.hero-action:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hero-action:active { transform: translateY(0); }
.hero-ca { display: flex; align-items: center; gap: 10px; max-width: min(100%, 520px); margin-top: 18px; border: 0; background: transparent; padding: 6px 0; color: var(--ink); cursor: pointer; transition: opacity 140ms ease; }
.hero-ca:hover { opacity: .58; }
.hero-ca:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ca-label { flex-shrink: 0; font-size: 10px; font-weight: 600; }
.hero-ca code { min-width: 0; overflow: hidden; color: #686868; font-family: "SF Mono", Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ca-action { flex-shrink: 0; min-width: 46px; font-size: 11px; font-weight: 600; text-align: right; }

.cat-story { width: min(100%, 560px); margin: 0 auto; padding: 24px 0 58px; }
.photo-viewer { margin: 0; }
.photo-viewer > a { height: clamp(260px, 40vw, 360px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid #e5e5e5; color: #000; text-decoration: none; }
.photo-viewer > a > img { width: 100%; height: 100%; object-fit: contain; }
.photo-viewer > a > span { position: absolute; right: 10px; bottom: 10px; border-radius: 999px; background: #fff; padding: 7px 10px; font-size: 10px; font-weight: 600; box-shadow: 0 1px 8px rgb(0 0 0 / 10%); }
.photo-viewer > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.photo-viewer figcaption { padding: 8px 1px 10px; font-size: 12px; text-align: left; }
.photo-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-picker button { height: 64px; min-width: 0; overflow: hidden; border: 1px solid #dedede; background: #fff; padding: 3px; cursor: pointer; opacity: .48; }
.photo-picker button.is-active { border-color: #000; opacity: 1; }
.photo-picker button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; opacity: 1; }
.photo-picker img { width: 100%; height: 100%; object-fit: contain; }

.site-footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 34px; color: var(--ink); }
.footer-brand { display: flex; align-items: baseline; gap: 18px; }
.footer-name { font-size: 20px; font-weight: 600; letter-spacing: -.06em; }
.footer-legal { font-size: 11px; }
.footer-meow { font-size: 12px; }

.intro { min-height: 100svh; display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 10; background: var(--background); transition: opacity 250ms ease; }
.intro--leaving { opacity: 0; pointer-events: none; }
.meows { display: flex; flex-wrap: wrap; justify-content: center; gap: .28em; padding: 20px; font-size: clamp(34px, 8vw, 68px); font-weight: 500; letter-spacing: -.06em; }
.face { font-size: clamp(48px, 12vw, 88px); letter-spacing: -.08em; }
.pet-burst { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 20; }
.pet-burst span { position: absolute; color: var(--ink); font-weight: 600; letter-spacing: -.05em; opacity: 0; animation: pet-float 1250ms ease-out both; }
@keyframes pet-float { 0% { opacity: 0; transform: translateY(14px) scale(.7) rotate(-8deg); } 18%, 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-55px) scale(1.05) rotate(9deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { transition: none; }
  .caret { animation: none; }
  .ticker-track { animation-play-state: paused; }
  .hero-action { transition: background 160ms ease, color 160ms ease; }
  .hero-action:hover, .hero-action:focus-visible { transform: none; }
  .pet-burst span { animation-name: pet-float-reduced; }
}
@keyframes pet-float-reduced { 0%, 100% { opacity: 0; } 20%, 70% { opacity: 1; } }

@media (max-width: 540px) {
  .home { padding: 18px 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-cat { height: clamp(130px, 22vh, 190px); }
  .socials { gap: 13px; }
  .socials a { font-size: 9px; }
  .hero-actions { width: min(100%, 300px); }
  .hero-action { flex: 1; min-width: 0; padding-inline: 12px; }
  .hero-ca { width: min(100%, 330px); }
  .ticker { width: calc(100% + 32px); margin-left: -16px; }
  .cat-story { padding: 18px 0 42px; }
  .photo-viewer > a { height: min(68vw, 260px); }
  .photo-picker button { height: 54px; }
  .site-footer { flex-direction: column; justify-content: center; gap: 14px; padding: 30px 20px; text-align: center; }
}
