/* Mostly Human — brand tokens for the web.
   Generated from brand/tokens.json; never edit by hand (regenerate instead).
   Light ("Paper") is the default; dark ("Ink") follows the system or [data-theme="dark"]. */

:root {
  color-scheme: light dark;
  --paper: #F5F0E8;
  --bone: #EBE5DA;
  --ink: #111111;
  --graphite: #46423C;
  --stone: #6B665E;
  --sand: #D6CFC2;
  --signal: #CADB87;
  --on-signal: #111111;
  --focus: #111111;

  /* Type families */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-display-light: "Oswald", "Arial Narrow", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-arabic: "IBM Plex Sans Arabic", "SF Arabic", system-ui, sans-serif;

  /* Type styles: --<style>-family / -size / -line / -weight / -tracking */
  --display-xl-family: var(--font-display);
  --display-xl-size: 96px;
  --display-xl-line: 88px;
  --display-xl-weight: 400;
  --display-l-family: var(--font-display);
  --display-l-size: 64px;
  --display-l-line: 60px;
  --display-l-weight: 400;
  --display-m-family: var(--font-display);
  --display-m-size: 40px;
  --display-m-line: 40px;
  --display-m-weight: 400;
  --kicker-family: var(--font-display-light);
  --kicker-size: 24px;
  --kicker-line: 28px;
  --kicker-weight: 400;
  --kicker-tracking: 0.04em;
  --section-number-family: var(--font-display-light);
  --section-number-size: 40px;
  --section-number-line: 40px;
  --section-number-weight: 300;
  --title-family: var(--font-sans);
  --title-size: 24px;
  --title-line: 30px;
  --title-weight: 600;
  --body-family: var(--font-sans);
  --body-size: 17px;
  --body-line: 26px;
  --body-weight: 400;
  --small-family: var(--font-sans);
  --small-size: 14px;
  --small-line: 20px;
  --small-weight: 400;
  --label-family: var(--font-mono);
  --label-size: 12px;
  --label-line: 16px;
  --label-weight: 500;
  --label-tracking: 0.08em;
  --code-family: var(--font-mono);
  --code-size: 14px;
  --code-line: 20px;
  --code-weight: 400;
  --ar-title-family: var(--font-arabic);
  --ar-title-size: 24px;
  --ar-title-line: 36px;
  --ar-title-weight: 600;
  --ar-body-family: var(--font-arabic);
  --ar-body-size: 17px;
  --ar-body-line: 28px;
  --ar-body-weight: 400;

  /* Spacing, radius, stroke, size */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-none: 0px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --icon-mask: 22.37%;
  --hairline: 1px;
  --rule: 2px;
  --logo-home: 240px;
  --logo-home-compact: 192px;
  --icon-home: 112px;
  --icon-home-compact: 88px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111111;
    --bone: #2A2825;
    --ink: #F5F0E8;
    --graphite: #CFC8BC;
    --stone: #A39C90;
    --sand: #3A3732;
    --signal: #CADB87;
    --on-signal: #111111;
    --focus: #CADB87;
  }
}

:root[data-theme="dark"] {
  --paper: #111111;
  --bone: #2A2825;
  --ink: #F5F0E8;
  --graphite: #CFC8BC;
  --stone: #A39C90;
  --sand: #3A3732;
  --signal: #CADB87;
  --on-signal: #111111;
  --focus: #CADB87;
}

/* mostlyhuman.app — the brand's five fonts (SIL Open Font License 1.1; texts beside the files in /fonts/), self-hosted.
   Subset woff2 from each family's Google Fonts build, split by script with unicode-range: a page downloads only the
   files its text uses (the wordless home downloads none). Nothing is requested from Google or anyone else. */
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/Anton-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSansArabic-400-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSansArabic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSansArabic-500-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSansArabic-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSansArabic-600-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSansArabic-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/Inter-400-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/JetBrainsMono-400-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Oswald';font-style:normal;font-weight:300 500;font-display:swap;src:url(/fonts/Oswald-300-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* mostlyhuman.app — the site's styles, after brand/tokens.css and fonts.css (tools/build.py joins them).
   Every colour and size is a token (tools/check.py checks it). The one breakpoint, 600px, is the phone/wide split:
   a media condition can't read a custom property, so it is written here once. */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body-family); font-size: var(--body-size); line-height: var(--body-line);
}
:lang(ar) { font-family: var(--font-arabic); letter-spacing: 0; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--signal); color: var(--on-signal); }
a { color: inherit; }
a:focus-visible { outline: var(--rule) solid var(--focus); outline-offset: var(--rule); }

/* The home (CLAUDE.md › Decisions, 2026-11-16): the logo over the app icons, one group centred in the viewport, no words.
   The 404 is the same frame: the logo, back to the home, over the number. */
.home {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-16); padding-block: var(--space-16);
  padding-inline: max(var(--space-6), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
.home .mark { display: block; width: var(--logo-home); }
.logo { display: block; width: 100%; height: auto; }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-12); }
.apps li { width: var(--icon-home); }
.apps a { display: block; border-radius: var(--icon-mask); }
.apps img { display: block; width: 100%; height: auto; border-radius: var(--icon-mask); }
.code {
  font-family: var(--display-l-family); font-size: var(--display-l-size); line-height: var(--display-l-line);
  font-weight: var(--display-l-weight);
}

@media (max-width: 599px) {
  .home .mark { width: var(--logo-home-compact); }
  .apps { gap: var(--space-8); }
  .apps li { width: var(--icon-home-compact); }
}
