/* Mochi website: shared styles (fonts are self-hosted, nothing is loaded from Google) */
@font-face { font-family: "Silkscreen"; src: url(fonts/Silkscreen-Regular.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(fonts/BricolageGrotesque-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(fonts/BricolageGrotesque-Bold.woff) format("woff"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #efeaff; --card: #ffffff; --soft: #f6f3ff; --ink: #1d1b20; --ink-2: #4e4858; --line: #1d1b20;
  --yellow: #ffe45e; --lilac: #c9b8ff; --pink: #ff8fb1; --green: #9be8a9; --blue: #7ad3ff; --peach: #ffd28a;
  --shadow: 4px 4px 0 var(--line);
  --pixel: "Silkscreen", ui-monospace, monospace;
  --body: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #16131d; --card: #231e2e; --soft: #2c2639; --ink: #f3eefc; --ink-2: #c6bfd6; --line: #000; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden;
       background-image: radial-gradient(var(--lilac) 1.2px, transparent 1.2px); background-size: 26px 26px; background-attachment: fixed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background-image: radial-gradient(#2c2639 1.2px, transparent 1.2px); } }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.px { font-family: var(--pixel); letter-spacing: .03em; }
.card { background: var(--card); border: 3px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 3px solid var(--line);
       border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--line); font: 700 17px var(--body);
       text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #2a78d6; outline-offset: 3px; }
.btn.primary { background: var(--yellow); color: #1d1b20; }
.btn small { font-weight: 400; opacity: .75; }
.btn[disabled] { opacity: .6; cursor: default; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
             -webkit-backdrop-filter: blur(8px); border-bottom: 3px solid transparent; }
header.top.scrolled { border-bottom-color: var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 20px var(--pixel); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
nav.links { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
nav.links a { text-decoration: none; } nav.links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 760px) { nav.links { display: none; } }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; }

footer.foot { padding: 48px 0 64px; color: var(--ink-2); font-size: 15px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.foot a { text-decoration: none; font-weight: 700; } footer.foot a:hover { text-decoration: underline; }

/* the legal pages */
.doc { max-width: 760px; margin: 24px auto 0; padding: 28px clamp(18px, 4vw, 40px) 36px; }
.doc h1 { font: 26px/1.2 var(--pixel); margin: 0 0 6px; }
.doc .upd { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); } .doc li { margin-bottom: 6px; }
.doc b, .doc strong { color: var(--ink); }
