@font-face {
  font-family: Outfit;
  src: url('/assets/outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/public-sans.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
/* FartUI: chalk reading surfaces, soot actions, clay objects. */
.clay-home, .clay-site {
  --ground: #faf7f0;
  --surface: #fffdf9;
  --recessed: #efebe2;
  --ink: #202421;
  --paper: #202421;
  --muted: #565d57;
  --line: #dedbd2;
  --green: #cee95a;
  --pink: #ed91bb;
  --font: 'Public Sans', sans-serif;
  --display: Outfit, sans-serif;
  --contact: 0 5px 18px #473c2521;
  color-scheme: light;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #565d57 #faf7f0; }
[hidden] { display: none !important; }
::selection { background: #dcc8ec; color: #202421; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 3px solid #66507c; outline-offset: 5px; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; border-radius: 18px; z-index: 10; background: var(--green); color: var(--ink); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clay-home .site-header, .clay-site .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1536px);
  height: auto;
  min-height: 70px;
  margin: auto;
  padding: 16px 3.6%;
}
.clay-home .brand, .clay-site .brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font: 800 clamp(22px, 2.3vw, 34px)/1.1 var(--display);
  letter-spacing: -.03em;
}
.clay-home .site-header nav, .clay-site .site-header nav { display: flex; align-items: center; gap: 28px; }
.clay-home .site-header nav a, .clay-site .site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; font-size: 16px; font-weight: 600; }
.clay-home .nav-cta { padding: 10px 26px; border: 0; border-radius: 999px; background: #f2eadd; box-shadow: var(--contact), inset 0 2px 2px #ffffffb3; }
.clay-home .nav-cta:hover { background: #e8dfd0; }
.clay-home .arrow-icon, .mobile-break { display: none; }
.clay-home .hero { width: 100%; margin: 0 auto; padding: 0; }
.clay-home .hero-copy { position: relative; z-index: 1; padding: 0 24px; text-align: center; }
.clay-home h1 {
  max-width: 1160px;
  margin: 0 auto;
  font: 800 clamp(40px, 3.52vw, 54px)/1.1 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.clay-home .intro { margin: 0 auto 2px; font: 750 clamp(23px, 3.15vw, 48px)/1.15 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.clay-home .share-copy { margin: 4px auto 12px; color: var(--muted); font-size: clamp(18px, 1.9vw, 29px); line-height: 1.45; }
.clay-home .download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; scroll-margin-top: 28px; }
.clay-home .download {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
/* Only the membrane deforms: hit bounds, text and icon stay fixed. */
.clay-home .download::before, .clay-home .clay-controls::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--contact), inset 0 2px 2px #ffffff24;
  transition: transform 180ms ease-out, background 180ms ease-out;
}
.clay-home .download-primary { color: var(--surface); }
.clay-home .download-primary::before { background: var(--ink); }
.clay-home .download-primary:hover::before { background: #343c36; }
.clay-home .download-primary:active::before { transform: scale(.975, .94); }
.clay-home .download-secondary { color: var(--muted); opacity: 1; }
.clay-home .download-secondary::before { background: #f0e8dc; box-shadow: 0 3px 8px #473c2515, inset 0 2px 2px #ffffff9c; }
.clay-home .download-secondary svg { display: none; }
.clay-home .availability { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.clay-home .exchange-stage { position: relative; width: min(100%, 1440px); margin: 4px auto 0; }
.clay-art { position: relative; transform-origin: 50% 75%; }
.clay-art picture, .clay-art img { display: block; width: 100%; height: auto; }
.clay-console { position: relative; z-index: 1; margin: -107px auto 0; padding: 0 20px; text-align: center; }
.clay-controls { width: 400px; position: relative; isolation: isolate; display: inline-flex; align-items: stretch; flex-direction: row; max-width: 100%; padding: 12px 18px; border-radius: 999px; }
.clay-home .clay-controls::before { background: #f9f0e2; box-shadow: 0 8px 20px #6b51332b, inset 0 2px 3px #fff; }
.clay-home .clay-controls:has(button:active)::before { transform: scale(.97, .94); }
.clay-home .pass-button { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; padding: 4px 32px; min-height: 56px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 38px/1.2 var(--display); }
.clay-home .pass-button svg { display: none; }
.clay-home .pass-button:hover { color: #4c5c31; }
.clay-home .icon-button { display: grid; place-items: center; width: 56px; min-width: 48px; min-height: 56px; padding: 8px 16px 8px 6px; border: 0; border-right: 1px solid #dacbb4; border-radius: 0; background: transparent; color: var(--ink); }
.clay-home .icon-button svg { width: 22px; height: 24px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.clay-home .icon-button:hover { color: #4c5c31; }
.clay-console p { margin: 16px 0 0; font-size: clamp(17px, 1.65vw, 24px); color: var(--muted); }
.clay-home .site-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 24px 16px; color: var(--muted); }
.clay-home .site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; }
.clay-home .site-footer a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 14px; }
.clay-home .site-footer a:hover, .clay-site .site-header nav a:hover { text-decoration: underline; }
.clay-home .site-footer > span { font-size: 12px; }
.clay-home .invite-banner { width: min(900px, calc(100% - 48px)); margin: 20px auto 32px; padding: 24px; border-radius: 27px; background: var(--surface); box-shadow: var(--contact); display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.clay-home .invite-banner h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--display); letter-spacing: -.02em; }
.clay-home .invite-banner p { max-width: 65ch; margin: 0; color: var(--muted); }
.clay-home .invite-banner #invite-status:empty { display: none; }
.clay-home .invite-banner #invite-status { margin-top: 8px; color: var(--ink); font-weight: 600; }
.clay-home .invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.clay-home .invite-actions .download { font-family: inherit; cursor: pointer; }
.clay-home .invite-banner .invite-fallback { flex-basis: 100%; font-size: 15px; }
@media (max-width: 600px) { .clay-home .invite-actions, .clay-home .invite-actions .download { width: 100%; } }
.fart-puff { position: absolute; left: 48%; top: 37%; width: 24px; height: 24px; border-radius: 50%; background: #eee3cf; box-shadow: 9px -7px 0 #f6ecd9, -8px -3px 0 #f4e9d5; opacity: 0; pointer-events: none; }
.puff-two { left: 55%; top: 39%; }
.puff-three { left: 61%; top: 43%; }
.clay-home.is-farting .clay-art { animation: clay-squish 750ms ease-out; }
.clay-home.is-farting .fart-puff { animation: clay-puff 950ms ease-out; }
.clay-home.is-farting .puff-two { animation-delay: 80ms; }
.clay-home.is-farting .puff-three { animation-delay: 160ms; }
@keyframes clay-squish { 0%,100% { transform: scale(1); } 22% { transform: scale(1.025,.97); } 55% { transform: scale(.99,1.015); } }
@keyframes clay-puff { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(65px,-70px) scale(1.7); } }
@media (max-width: 900px) {
  .clay-home .site-header, .clay-site .site-header { padding: 16px 24px; }
  .clay-home .hero { padding-top: 24px; }
  .clay-home .intro { max-width: 29ch; }
  .clay-home .clay-console { margin-top: -26px; }
}
@media (max-width: 600px) {
  .clay-home .site-header, .clay-site .site-header { min-height: 76px; padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
  .clay-home .brand, .clay-site .brand { font-size: 22px; }
  .clay-home .site-header nav { gap: 0; }
  .clay-home .site-header .nav-cta { display: none; }
  .clay-home .site-header nav a { font-size: 15px; }
  .clay-home .hero { padding-top: 18px; }
  .mobile-break { display: initial; }
  .clay-home h1 { max-width: 16ch; font-size: clamp(36px, 10.4vw, 60px); margin-bottom: 18px; }
  .clay-home .intro { font-size: 21px; max-width: 26ch; line-height: 1.2; }
  .clay-home .share-copy { margin: 10px auto 24px; font-size: 17px; }
  .clay-home .download-actions { flex-direction: column; align-items: center; gap: 12px; }
  .clay-home .download { width: min(100%, 300px); min-height: 54px; font-size: 16px; padding: 12px 18px; }
  .clay-home .availability { font-size: 12px; margin-top: 14px; }
  .clay-home .exchange-stage { margin-top: 16px; }
  .clay-art { overflow: clip; }
  .clay-art img { width: 100%; aspect-ratio: 960 / 504; }
  .clay-home .clay-console { margin-top: -14px; }
  .clay-controls { width: 280px; padding: 8px 12px; }
  .clay-home .pass-button { min-height: 48px; font-size: 27px; padding: 4px 12px; }
  .clay-home .icon-button { width: 48px; min-height: 48px; }
  .clay-console p { margin-top: 16px; font-size: 17px; }
  .clay-home .site-footer { padding: 8px 20px 24px; }
  .clay-home .site-footer nav { column-gap: 18px; }
  .clay-home .site-footer a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  .clay-home .download::before, .clay-home .clay-controls::before, .clay-home .nav-cta { outline: 1px solid currentColor; }
}
@media (forced-colors: active) {
  .clay-home .download, .clay-home .clay-controls, .clay-home .nav-cta { border: 1px solid ButtonText; }
}

/* Gesture-only, finite clay puffs. Never intercept clicks or cover semantics. */
.clay-home .sound-button { border-right: 0; border-left: 1px solid #dacbb4; padding: 8px 6px 8px 16px; }
.clay-home .sound-button svg { stroke-width: 1.8; }
.clay-home .sound-button[aria-pressed=true] { color: var(--muted); }
.tap-cloud { position: fixed; z-index: 20; width: 180px; height: 126px; margin: -63px 0 0 -90px; pointer-events: none; background: url('/assets/tap-cloud.webp') center / contain no-repeat; animation: tap-cloud-rise 850ms cubic-bezier(.16,1,.3,1) both; }
@keyframes tap-cloud-rise { 0% { opacity: 0; transform: translateY(8px) scale(.45) rotate(-8deg); } 20% { opacity: .95; } 65% { opacity: .8; } 100% { opacity: 0; transform: translateY(-65px) scale(1.5) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .tap-cloud { opacity: .6; } }
