/* Shared by every world: typefaces, reset, entrance motion, store buttons and the footer skeleton.
   Each world's stylesheet sets the tokens (--bg, --fg, --muted, --line, --accent, --sans) and its own look. */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin.woff2') format('woff2'); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('/assets/fonts/anton-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--sans, 'Geist', system-ui, sans-serif); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent, #999); color: var(--bg, #000); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1200px, 100% - clamp(40px, 8vw, 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Entrance motion. boot.js adds .js before first paint; without it everything is simply visible. */
.js [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .08em .16em; margin: -.08em -.08em -.16em; }
.js [data-words] .w > span { display: inline-block; transform: translateY(118%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.19, .9, .22, 1) calc(var(--i) * 70ms); }
.js [data-words].is-in .w > span { transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease calc(var(--i, 0) * 90ms), transform .9s cubic-bezier(.19, .9, .22, 1) calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 22px 9px 16px; border-radius: var(--store-radius, 16px); background: var(--store-bg, var(--fg)); color: var(--store-fg, var(--bg)); border: var(--store-border, 0); text-decoration: none; transition: transform .35s cubic-bezier(.19, .9, .22, 1), box-shadow .35s; }
.store .icon { width: 24px; height: 24px; }
.store small { display: block; font-size: .68rem; line-height: 1.2; opacity: .72; letter-spacing: .02em; }
.store strong { display: block; font-size: 1.08rem; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.store:hover { transform: translateY(-3px); }

/* The way back to the studio */
.studio-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); transition: color .25s, border-color .25s; }
.studio-chip:hover { color: var(--fg); border-color: currentColor; }
.logo-mark { flex: none; }

/* FAQ disclosures */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; inset: 6px 0; background: currentColor; border-radius: 2px; transition: transform .35s cubic-bezier(.19, .9, .22, 1); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: none; }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 62ch; }

/* Footer skeleton */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--foot-bg, var(--bg)); color: var(--fg); }
.foot-in { width: min(1200px, 100% - clamp(40px, 8vw, 112px)); margin-inline: auto; padding: 44px 0 30px; display: grid; gap: 26px; }
.foot-note { max-width: 62ch; color: var(--muted); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { text-decoration: none; font-weight: 500; letter-spacing: -.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.foot-links a:hover { background-size: 100% 1px; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-base a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.foot-base a:hover, .motion-toggle:hover { color: var(--fg); }
.motion-toggle { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-play-state: paused !important; }
