/* Mouse's monochrome world. Fonts and assets are served by this site. */
@font-face {
  font-family: "Mouse Display";
  src: url("/fonts/MouseGrid.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #1e1e1e;
  --ink: #fff;
  --burrow-floor: var(--line);
  --burrow-ceiling: #030303;
  --burrow-middle: #0b0b0b;
  --mouse-ink: #d8d8d8;
  --soft-ink: rgb(255 255 255 / .66);
  --line: #505050;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display-font: "Mouse Display", var(--body-font);
  font-family: var(--body-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --burrow-ceiling: var(--line);
  --burrow-middle: #f2f2f2;
  --burrow-floor: var(--paper);
  --mouse-ink: #000;
  --soft-ink: rgb(0 0 0 / .61);
  --line: #b8b8b8;
}
* { box-sizing: border-box; }
html { min-width: 300px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--paper); color: var(--ink); transition: background-color .32s, color .32s; }
.first-screen { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
a { color: inherit; }
button, summary, a, select { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px 20px; z-index: 10; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 48px; }
.site-brand { display: grid; gap: 6px; min-width: 0; }
.brand-slogan { margin: 0; font: 400 12px/1.35 var(--body-font); color: var(--soft-ink); }
.wordmark { font-family: var(--display-font); font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; text-decoration: none; line-height: 1; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; direction: ltr; unicode-bidi: isolate; flex-shrink: 0; width: fit-content; }
.brand-icon { display: block; width: 1em; height: 1em; flex: 0 0 1em; fill: currentColor; shape-rendering: crispEdges; }
.header-controls { display: flex; align-items: center; gap: 22px; }
.language-control { width: 176px; position: relative; display: flex; align-items: center; }
.theme-switch { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.theme-label { font-size: 14px; font-weight: 500; }
.theme-symbol { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 0; transition: transform .3s; }
.theme-symbol svg { width: 24px; height: 24px; transition: transform .45s; }
[data-theme="light"] .theme-symbol svg { transform: rotate(180deg); }
.theme-switch:hover .theme-symbol { transform: rotate(-10deg); }
main { display: flex; align-items: center; justify-content: center; padding: 10px 24px 28px; }
.hero { text-align: center; width: 100%; max-width: 1280px; }
.burrow-stage { position: relative; width: 250px; height: 225px; margin: 0 auto 22px; }
.burrow-stage::before { content: ""; position: absolute; left: 50%; bottom: 4.7619048%; width: calc(100vw - 96px); height: 1px; transform: translateX(-50%); background: var(--line); pointer-events: none; }
.burrow { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.burrow-opening { fill: url(#burrow-depth); shape-rendering: geometricPrecision; }
.burrow-gradient-ceiling { stop-color: var(--burrow-ceiling); }
.burrow-gradient-middle { stop-color: var(--burrow-middle); }
.burrow-gradient-floor { stop-color: var(--burrow-floor); }
.mouse-ink, .mouse-eyes, .mouse-nose { fill: var(--mouse-ink); }
.mouse-ink { shape-rendering: crispEdges; }
.mouse-eyes { transform-box: fill-box; transform-origin: center; animation: mouse-blink 7.4s linear infinite; }
.mouse-nose { transform-box: fill-box; transform-origin: center; animation: mouse-sniff 5.8s ease-in-out infinite; }
.eyebrow { margin: 0 0 17px; font-family: var(--body-font); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--display-font); font-size: clamp(10px, 3.25vw, 52px); font-weight: 400; letter-spacing: 0; text-transform: uppercase; line-height: 1.17; white-space: nowrap; }
/* Keep each headline in one readable face when its script is outside the bundled display font. */
:is(:lang(am), :lang(ar), :lang(hy), :lang(bn), :lang(my), :lang(zh-Hans), :lang(zh-Hant), :lang(ka), :lang(el), :lang(gu), :lang(hi), :lang(ja), :lang(kn), :lang(kk), :lang(ko), :lang(ml), :lang(mr), :lang(mn), :lang(fa), :lang(pa), :lang(ta), :lang(te), :lang(th), :lang(ur), :lang(he), :lang(az), :lang(km), :lang(lo), :lang(ne), :lang(si)) h1 { font-family: var(--body-font); font-weight: 600; letter-spacing: -.02em; text-transform: none; }
.intro { margin: 23px 0 0; font-size: 18px; line-height: 1.55; letter-spacing: -.012em; color: var(--soft-ink); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 778px); margin: 35px auto 0; scroll-margin-top: 26px; }
.download-option { min-width: 0; display: grid; grid-template-rows: 1fr auto; }
.home-android-download, .mouse-tv-download { width: min(100%, 350px); margin: 12px auto 0; }
.home-android-download .download, .mouse-tv-download .download { width: 100%; }
.download-fineprint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; min-height: 22px; padding-top: 6px; color: var(--soft-ink); font: 400 12px/1.35 var(--display-font); font-variant-numeric: tabular-nums; }
.download-stats { position: relative; }
.download-stats summary { cursor: pointer; list-style: none; padding: 1px 4px; border-radius: 3px; }
.download-stats summary::-webkit-details-marker { display: none; }
.download-stats summary:hover, .download-stats[open] summary { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.download-stats-panel { position: absolute; z-index: 6; inset-block-start: calc(100% + 8px); inset-inline-end: 0; width: 250px; max-width: calc(100vw - 40px); padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); box-shadow: 0 8px 30px rgb(0 0 0 / .12); font: 400 14px/1.5 var(--body-font); text-align: start; }
.download-stats-panel p { margin: 7px 0 12px; color: var(--soft-ink); }
.download-stats-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; max-height: 200px; overflow-y: auto; margin: 0; font: 400 13px/1.4 var(--display-font); }
.download-stats-panel dd { margin: 0; }
.download-stats-panel time { display: block; margin-top: 12px; color: var(--soft-ink); font-size: 12px; }
@media (min-width: 561px) {
  .download-option:first-child .download-stats-panel { inset-inline-start: 0; inset-inline-end: auto; }
}
.download { display: flex; align-items: center; justify-content: center; gap: 15px; min-width: 0; min-height: 80px; padding: 17px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .22s, color .22s, border-color .22s, transform .22s; }
.download:hover { --button-cutout: var(--ink); --button-stroke: var(--paper); color: var(--paper); background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.download:active { transform: translateY(-1px); }
.download-copy { display: grid; gap: 6px; text-align: start; min-width: 0; }
.download-name { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.download-meta { font-size: 14px; line-height: 1.2; opacity: .64; }
.platform-icon { width: 27px; height: 27px; flex: 0 0 27px; }
.apple-icon { width: 29px; height: 29px; }
.linux-icon { width: 30px; height: 30px; }
.platform-cutout { fill: var(--button-cutout, var(--paper)); transition: fill .22s; }
.platform-stroke { stroke: var(--button-stroke, var(--ink)); transition: stroke .22s; }
.mobile-coming-soon { margin: 17px 0 0; color: var(--soft-ink); font-size: 13px; line-height: 1.5; }
.release-line { display: flex; justify-content: center; gap: 17px; margin-top: 12px; color: var(--soft-ink); font-size: 13px; line-height: 1.5; }
.install-details { position: relative; }
.install-details summary { cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.install-details summary::-webkit-details-marker { display: none; }
.install-details summary:hover { color: var(--ink); }
.install-panel { position: absolute; z-index: 3; top: calc(100% + 12px); inset-inline-end: 0; width: min(360px, calc(100vw - 48px)); padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); text-align: start; box-shadow: 0 8px 30px rgb(0 0 0 / .15); }
.install-panel p { margin: 0 0 12px; }
.install-panel p:last-child { margin-bottom: 0; }
.install-panel a { text-underline-offset: 3px; }
.site-footer, .about { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 27px 0 30px; font-size: 14px; line-height: 1.55; }
.footer-signature { font-weight: 600; letter-spacing: -.015em; }
.footer-signature { text-decoration-color: var(--line); text-underline-offset: 4px; }
.site-footer p { margin: 0; max-width: 58ch; text-align: end; color: var(--soft-ink); }
.about { padding: 64px 0 72px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.about h2 { margin: 0 0 36px; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.about h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.about p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--soft-ink); }
.language-directory { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.language-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 24px; }
.language-links a { width: fit-content; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; text-decoration-color: var(--line); text-underline-offset: 4px; }
.language-links a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.mobile-break { display: none; }
@keyframes mouse-blink { 0%, 27%, 31%, 34%, 37%, 74%, 78%, 100% { transform: scaleY(1); } 29%, 35.5%, 76% { transform: scaleY(.08); } }
@keyframes mouse-sniff { 0%, 48%, 58%, 67%, 100% { transform: translateY(0); } 52%, 62% { transform: translateY(-.16px) scale(1.025); } }
[dir="rtl"] h1 { line-height: 1.24; letter-spacing: -.035em; }
:is(:lang(ml), :lang(ta), :lang(te), :lang(kn), :lang(si), :lang(my), :lang(km), :lang(lo)) h1 { line-height: 1.3; letter-spacing: -.025em; }
@media (max-width: 760px) {
  .site-header { padding: 22px 24px; }
  .wordmark { font-size: 24px; }
  .header-controls { gap: 12px; }
  .language-control { width: 154px; }
  .theme-label { display: none; }
  main { padding-top: 27px; padding-bottom: 34px; }
  .burrow-stage { width: 230px; height: 207px; margin-bottom: 20px; }
  .burrow-stage::before { width: calc(100vw - 48px); }
  .intro { font-size: 17px; margin-top: 20px; }
  .downloads { grid-template-columns: 1fr; width: min(100%, 350px); gap: 10px; margin-top: 29px; }
  .download { justify-content: flex-start; padding: 15px 24px; min-height: 74px; border-radius: 15px; gap: 21px; }
  .download-copy { gap: 5px; }
  .download-name { font-size: 17px; }
  .release-line { flex-wrap: wrap; gap: 3px 14px; margin-top: 10px; }
  .site-footer, .about { width: calc(100% - 48px); }
  .site-footer { padding: 20px 0 26px; align-items: center; }
  .mobile-break { display: block; }
  .about { padding: 44px 0 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about h2 { margin-bottom: 28px; }
  .language-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .wordmark { font-size: 22px; }
  .theme-label { display: none; }
  .header-controls { gap: 10px; }
  .language-control { width: 132px; }
  .site-header { padding: 18px; gap: 8px; }
  .site-footer { padding: 20px 0; gap: 14px; font-size: 14px; }
  .site-footer p { max-width: 210px; }
  main { padding-left: 22px; padding-right: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: .2em; }
  .intro { font-size: 16px; }
  .install-panel { position: fixed; bottom: 24px; top: auto; inset-inline-end: 24px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 14px; }
  .wordmark { font-size: 20px; }
  .header-controls { gap: 8px; }
  .language-control { width: 110px; }
}
@media (max-height: 800px) and (min-width: 761px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .burrow-stage { width: 210px; height: 189px; margin-bottom: 15px; }
  .eyebrow { margin-bottom: 12px; }
  .intro { margin-top: 18px; font-size: 17px; }
  .downloads { margin-top: 27px; }
  .site-footer { padding-top: 15px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* One centered column: manifesto window, browser window, then the other sections. */
.first-screen { position: relative; display: flex; flex-direction: column; }
.first-screen .site-header { position: relative; z-index: 8; }
.first-screen main { flex: 1; display: block; padding-top: 0; }
.first-screen .hero { margin-inline: auto; max-width: 1280px; }
.hero-split {
  --hero-inset: clamp(22px, 2.5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  direction: ltr;
}
.hero-copy-window {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
[dir="rtl"] .hero-copy-window { direction: rtl; }
.hero-copy-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 46px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
  background: #1a1a1a;
  color: var(--soft-ink);
  direction: ltr;
}
[data-theme="light"] .hero-copy-chrome { background: #f9f9f9; }
.hero-split-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hero-copy-tab { font: 400 13px/1 var(--display-font); text-transform: uppercase; }
.hero-copy-address { margin-left: auto; font: 12px/1.3 var(--body-font); }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 36px var(--hero-inset) 34px;
}
.hero-mascot {
  position: relative;
  width: calc(100% + var(--hero-inset) * 2);
  margin: 0 calc(var(--hero-inset) * -1) 28px;
}
.hero-mascot::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); pointer-events: none; }
.hero-copy .burrow-stage { width: 185px; height: auto; aspect-ratio: 7 / 6; margin: 0 auto; pointer-events: none; }
.hero-copy .burrow-stage::before { content: none; }
.hero-copy h1 { font-size: clamp(18px, 2.25vw, 38px); }
.hero-copy .intro { margin-top: 22px; font-size: clamp(16px, 1.2vw, 19px); }
.hero-copy .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 680px); gap: 8px; margin-top: 28px; }
.hero-copy .download { flex-direction: column; gap: 9px; min-height: 108px; padding: 14px 10px; border-radius: 12px; }
.hero-copy .download-copy { gap: 6px; text-align: center; }
.hero-copy .download-name { font-size: clamp(12px, 1vw, 15px); }
.hero-copy .download-meta { font-size: 12px; }
.hero-copy .release-line { flex-wrap: wrap; gap: 5px 14px; }
.hero-visual { position: relative; min-width: 0; height: clamp(390px, 65svh, 600px); min-height: 0; container: hero-preview / inline-size; }
@media (max-width: 960px) {
  .hero-copy { padding-top: 34px; padding-bottom: 30px; }
  .hero-copy h1 { font-size: clamp(18px, 4vw, 36px); }
  .hero-copy .downloads { max-width: 620px; }
  .hero-copy .download-name { font-size: 15px; }
}
@media (max-width: 560px) {
  .first-screen main { padding-inline: 12px; }
  .hero-split { --hero-inset: 20px; }
  .hero-copy-chrome { min-height: 42px; flex-basis: 42px; padding-inline: 12px; }
  .hero-copy { padding-top: 26px; padding-bottom: 26px; }
  .hero-copy .burrow-stage { width: 156px; }
  .hero-mascot { margin-bottom: 22px; }
  .hero-copy .intro { font-size: 16px; margin-top: 18px; }
  .hero-copy .downloads { grid-template-columns: minmax(0, 1fr); max-width: 340px; gap: 8px; margin-top: 24px; }
  .hero-copy .download { flex-direction: row; justify-content: flex-start; gap: 16px; min-height: 68px; padding: 12px 18px; }
  .hero-copy .download-copy { text-align: start; gap: 5px; }
  .hero-copy .mobile-coming-soon, .hero-copy .release-line { font-size: 12px; }
  .hero-visual { height: 430px; }
  .download-stats-panel { position: fixed; inset: auto 20px 20px; width: auto; max-width: none; }
}
@media (max-width: 400px) {
  .hero-copy h1 { white-space: normal; font-size: 20px; line-height: 1.25; }
  .hero-copy h1 span { display: block; }
}
