/*
 * The "notebook" look of the home page (src/App.css) for the small pages
 * outside it: the policy pages, /get/, /chrome/ and the /open/ hand-over
 * pages. Linked LAST in each page's <head>, after the page's own styles, so
 * it restyles what is there without touching the page's markup or text.
 *
 * Light only, like the home page: the tokens below are repeated inside the
 * dark-scheme query to win over a page's own dark values.
 * Fonts: /fonts/fonts-pages.css (Bricolage Grotesque for headings and
 * buttons, DM Sans for reading text).
 */
:root {
  color-scheme: light;
  --teal: #3AAFA9; --teal-dark: #2A8C87; --link: #23807B;
  --ink: #1A1A2E; --ink-soft: rgba(26, 26, 46, 0.74);
  --paper: #F7F3EA; --card: #FFFFFF; --line: rgba(26, 26, 46, 0.2);
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #3AAFA9; --teal-dark: #2A8C87; --link: #23807B;
    --ink: #1A1A2E; --ink-soft: rgba(26, 26, 46, 0.74);
    --paper: #F7F3EA; --card: #FFFFFF; --line: rgba(26, 26, 46, 0.2);
  }
}
html {
  background-color: var(--paper);
  background-image: radial-gradient(circle at center, rgba(26, 26, 46, 0.16) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
}
body { background: transparent; color: var(--ink); }
h1, h2, h3, .brand, .cta, a.button {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800; letter-spacing: -0.025em;
}
h1 { line-height: 1.05; }
.brand { font-size: 22px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark, .brand img {
  width: 32px; height: 32px; border-radius: 8px; background: var(--teal) url(/icon.png) center / cover no-repeat;
}
.cta, a.button {
  background: var(--teal); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 5px 0 var(--ink);
  transition: translate .12s, box-shadow .12s;
}
.cta:hover, a.button:hover { background: var(--teal); translate: -1px -1px; box-shadow: 5px 6px 0 var(--ink); }
.cta:active, a.button:active { translate: 3px 4px; box-shadow: 1px 1px 0 var(--ink); }
a.button.secondary { background: var(--card); color: var(--ink); border: 3px solid var(--ink); }
.buttons { gap: 18px !important; }
.card, .code-box {
  background: var(--card);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 7px 8px 0 rgba(26, 26, 46, 0.14);
}
.icon { border: 3px solid var(--ink); }
footer, body > footer.blurto-footer { border-top: 3px dashed var(--line); }
footer a, body > footer.blurto-footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }

/* A policy page: one white sheet on the paper. */
body.legal {
  box-sizing: border-box;
  width: calc(100% - 24px); max-width: 860px; margin: 24px auto 56px; padding: 28px 20px 40px;
  background: var(--card);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 7px 8px 0 rgba(26, 26, 46, 0.14);
  overflow-wrap: anywhere;
}
@media (min-width: 700px) { body.legal { margin-top: 48px; padding: 44px 48px 56px; } }
body.legal > header { margin-bottom: 28px; }
body.legal a { color: var(--link); }
body.legal .brand { color: var(--ink); }
