/* Fonts, reset and element defaults. Requires tokens/tokens.css. */
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-hyperlegible-mono-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: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/courier-prime-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/courier-prime-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.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: "Noto Serif Malayalam"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/noto-serif-malayalam.woff2") format("woff2"); unicode-range: U+0D00-0D7F, U+200C-200D, U+20B9; }

:root {
  font: 400 var(--root-size, 112.5%)/1.55 var(--font-ui), var(--font-malayalam);
  color: var(--ink);
  background: var(--page);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  --pad: max(var(--pad-phone), env(safe-area-inset-left));
}
@media (min-width: 600px) { :root { --pad: max(var(--pad-wide), env(safe-area-inset-left)); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
:focus-visible { outline: var(--focus-width) solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4, p { margin: 0 0 var(--space-4); overflow-wrap: anywhere; }
h1 { font-size: var(--text-title); line-height: var(--leading-title); padding-bottom: var(--space-2); border-bottom: var(--rule); }
h2 { font-size: var(--text-section); line-height: var(--leading-section); padding-top: var(--space-4); border-top: var(--rule); }
h3 { font-size: var(--text-sub); line-height: var(--leading-sub); }
h1, h2, h3, h4, b, strong, th { font-weight: 700; }
a { color: var(--ink); text-underline-offset: 4px; }
code, kbd, pre, samp { font-family: var(--font-ui); font-size: .875em; }

/* Long-form reading: the proportional sibling of the interface mono.
   UI chrome, numbers, code and receipts stay in the mono. */
.ls-prose { font-family: var(--font-read), var(--font-malayalam); font-size: var(--text-body); line-height: 1.6; max-width: var(--measure); }
.ls-prose :is(p, li) { max-width: var(--measure); }
::placeholder { color: var(--muted); opacity: 1; }
