/* fakedm.app brand: tokens, fonts and base typography shared by the app and the static pages. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-600-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-800-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;
}

:root {
  color-scheme: dark;
  --ink: #0c0c0d;
  --ink-1: #141416;
  --ink-2: #1c1c1f;
  --line: #2a2a2f;
  --line-2: #3d3d44;
  --paper: #f2eee5;
  --mute: #a5a198;
  --acid: #d6ff3f;
  --acid-2: #c4f01f;
  --acid-ink: #0c0c0d;
  --coral: #ff7b61;
  --font-display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --font-text: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  /* page side padding; viewport-fit=cover puts the page under the notch in landscape */
  --pad-l: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
}

@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 44px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--paper); text-decoration-color: var(--acid); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--acid); }

img, svg, video, canvas { max-width: 100%; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

::selection { background: var(--acid); color: var(--acid-ink); }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--acid); color: var(--acid-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-l) var(--pad-r);
}

/* site header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: calc(10px + env(safe-area-inset-top)) 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 800 21px/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark::before {
  content: '';
  width: 30px;
  height: 30px;
  flex: none;
  margin-right: 8px;
  background: url('/favicon.svg') center / contain no-repeat;
}
.wordmark span { color: var(--mute); font-weight: 600; }
.wordmark:hover { color: var(--paper); }

/* the header menu of every page (header() in src/site/pages.ts, src/app/nav.ts) */
.site-head { position: relative; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a, .nav-apps-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 500 15px/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-nav a:hover, .nav-apps-btn:hover, .nav-apps-btn[aria-expanded='true'] { background: var(--ink-2); color: var(--paper); }
.site-nav a[aria-current='page'], .nav-apps.is-current .nav-apps-btn { color: var(--acid); }
.nav-apps { position: relative; }
.nav-apps-btn { gap: 4px; }
.nav-chev { width: 15px; height: 15px; transition: transform 0.15s ease-out; }
.nav-apps-btn[aria-expanded='true'] .nav-chev { transform: rotate(180deg); }
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--ink-1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  list-style: none;
}
.nav-sub a { display: flex; width: 100%; border-radius: 8px; }
.nav-sub .nav-sub-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-sub .nav-sub-all a { color: var(--mute); }
.site-nav .nav-wide { display: none; }

.nav-burger { display: none; }
.nav-burger .ic { width: 26px; height: 26px; }
.nav-burger[aria-expanded='true'] .ic-open, .nav-burger:not([aria-expanded='true']) .ic-close { display: none; }
.nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 60;
  padding: 4px var(--pad-r) 16px var(--pad-l);
  border-block: 1px solid var(--line);
  background: var(--ink-1);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.65);
}
.nav-panel-links { display: grid; }
.nav-panel-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font: 700 20px/1.2 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-panel-links a:hover, .nav-panel-links a[aria-current='page'] { color: var(--acid); }
.nav-panel-sub { margin: 0; padding: 0 0 0 18px; border-bottom: 1px solid var(--line); list-style: none; }
.nav-panel-sub a { min-height: 46px; border-bottom: 0; color: var(--mute); font: 600 17px/1.2 var(--font-text); }
.nav-panel-sub li + li a { border-top: 1px solid var(--line); }
@media (max-width: 719px) {
  .site-head .site-nav { display: none; }
  .nav-burger {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}
@media (min-width: 720px) {
  .site-nav .nav-wide { display: inline-flex; }
  .nav-panel { display: none !important; }
}

/* site footer */
.site-foot {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-block: 24px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0 36px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); text-decoration: none; }
.site-foot .foot-apps a { color: var(--paper); font-weight: 600; }
.site-foot a:hover { color: var(--paper); }
.site-foot p { margin: 0; }
.site-foot .foot-note { max-width: 72ch; padding-top: 6px; line-height: 1.5; }

/* long text (legal pages) */
.prose {
  max-width: 70ch;
  padding-block: 32px 48px;
  font-size: 17px;
  line-height: 1.65;
}
.prose h1 { font-size: clamp(36px, 9vw, 60px); line-height: 0.98; margin-bottom: 0.4em; }
.prose h2 { font-size: clamp(22px, 5vw, 28px); margin: 1.8em 0 0.5em; }
.prose h3 { font-size: 19px; margin: 1.5em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--acid); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose code { font-size: 0.9em; background: var(--ink-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose .lede, .prose .updated { color: var(--mute); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* the links of the 404 page */
.prose .nf-links { display: grid; gap: 2px; padding: 0; list-style: none; }
.prose .nf-links li { margin: 0; }
.prose .nf-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
