/* Mochi Squad: the base for every page besides the home page (docs, blog, demo, legal). Paper, ink and one accent,
   the same as the home page. docs.css, blog.css and demo.css are loaded after this file and build on its names. */
@font-face { font-family: "Geist"; font-weight: 400 800; font-display: swap; src: url("/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono.woff2") format("woff2"); }
:root {
  --paper: #f3efe7; --card: #faf8f3; --ink: #111114; --accent: #f04a23; /* vermilion: lines, marks and large type, never small text */
  --text: var(--ink); --dim: rgba(17,17,20,.74); --faint: rgba(17,17,20,.56); --edge: rgba(17,17,20,.14);
  --bg1: var(--paper); --bg2: var(--paper);
  --body: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1); --pad: clamp(20px, 5vw, 80px);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--paper); }
body { color: var(--text); font: 400 17px/1.5 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; background: var(--paper); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }
i[data-m] { display: block; font-style: normal; }
.mochi { display: block; width: 100%; height: 100%; }
code { font: 500 .88em var(--mono); background: rgba(17,17,20,.07); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* chrome */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); }
.nav-end { display: flex; align-items: center; gap: 22px; }
.nav-link { font: 500 14px var(--body); color: var(--dim); transition: color .2s; } .nav-link:hover { color: var(--text); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--body); letter-spacing: -.03em; } .brand img { width: 32px; }
/* the logo files are drawn in white for dark ground: on paper they are shown in ink */
.brand img, .foot img, img.lockup { filter: brightness(0); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: 600 16px var(--body); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s; will-change: transform; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-light { background: var(--ink); color: var(--paper); } .btn-light:hover { background: var(--accent); color: var(--ink); }
.btn-ghost { background: none; border-color: var(--ink); color: var(--ink); } .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-ico { width: 18px; height: 18px; margin-left: -4px; }

/* type */
.big { font: 800 clamp(44px, 6.8vw, 122px)/.92 var(--body); letter-spacing: -.055em; }
.kicker { font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.soft { color: var(--faint); }

/* footer */
.foot { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 28px; border-top: 1.5px solid var(--edge); font-size: 13.5px; color: var(--faint); text-align: left; }
.foot img { width: 30px; height: auto; vertical-align: -3px; margin-right: 4px; }
.foot a { margin-left: 20px; transition: color .2s; } .foot a:hover { color: var(--text); }
.foot p { width: 100%; font-size: 12px; color: var(--faint); }

/* legal pages */
.legal-page .nav { position: static; }
.legal { width: min(720px, 100% - 2 * var(--pad)); margin: 40px auto 90px; }
.legal h1 { font: 800 clamp(44px, 7vw, 88px)/.95 var(--body); letter-spacing: -.055em; margin-bottom: 14px; }
.legal h2 { font: 600 19px var(--body); letter-spacing: -.02em; margin: 38px 0 8px; }
.legal p { color: var(--dim); max-width: 64ch; } .legal p + p { margin-top: 12px; } .legal .en { color: var(--faint); font-size: 15px; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal-foot { width: auto; margin: 0 var(--pad); }

/* The demo shows the app's own window, and the app is dark: inside it the names of this file keep their dark values. */
.demo-page .win, .demo-page .win-stage { --text: #f5f5f5; --dim: rgba(245,245,245,.7); --faint: rgba(245,245,245,.45); --edge: rgba(245,245,245,.12); --bg1: #0a0a0a; color-scheme: dark; }

@media (max-width: 900px) {
  .nav { padding: 14px var(--pad); gap: 16px; } .brand { font-size: 16px; } .brand img { width: 28px; } .btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
  .foot { justify-content: flex-start; } .foot > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; } .foot a { margin: 0 18px 0 0; }
}
@media (max-width: 480px) { .brand img.lockup { height: 24px; } }
