/* HearMark — the public website's skin (web only; never in the native bundle).

   Loaded after hm.css on every page a visitor reaches without signing in: the
   landing page, signup, the email and password pages, Terms, Privacy, Privacy
   choices, account deletion and the 404. It does two things:

   1. Re-points hm.css's tokens at the site's palette, so every hm-* component
      the pages use (buttons, inputs, modals, badges) takes it on without a
      second copy of it. `:root[data-site]` (0,2,0) out-ranks both hm.css
      themes and its prefers-color-scheme rule, so the visitor's stored app
      theme cannot change the site.
   2. Holds the parts every site page shares: the headline face, the bar, the
      footer, the site buttons and store buttons, focus, and the
      visually-hidden helper.

   The palette is the block of --site- tokens below: the page, text, hairlines,
   green for every button that starts or creates something, and a highlighter yellow for words being read: --site-mark as a fill
   behind text, --site-mark-ink for lines and dots, which a light palette has to
   darken to be seen. listen.css restates the block for the share page. */

/* GitHub's Mona Sans (SIL OFL 1.1, Reserved Font Name "Mona Sans"), the
   unmodified variable web font: width, optical size and weight axes. The site
   sets its headlines in it, slightly expanded. */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/static/assets/fonts/MonaSans-VF.woff2") format("woff2");
}

:root[data-site] {
  color-scheme: light;

  --site-bg: #f1eff8;
  --site-raised: #ffffff;
  --site-raised-2: #f8f7fc;
  --site-line: #dbd6ea;
  --site-text: #1b1730;
  --site-text-2: #352f4d;
  --site-muted: #5e5978;
  --site-muted-2: #827c9c;
  --site-go: #1d9b55;
  --site-go-2: #25ad63;
  --site-go-bg: #dff2e6;
  --site-ok: #0f6b3a;
  --site-on-go: #1b1730;
  --site-mark: #ffe46b;
  --site-on-mark: #2a2108;
  --site-mark-ink: #b98a00;
  --site-lamp: 255, 255, 255;
  --site-glow: 29, 155, 85;
  --site-shade: 40, 32, 70;
  --site-text-rgb: 27, 23, 48;
  --site-bar-bg: rgba(241, 239, 248, 0.88);
  --site-store-hover: #352f4d;
  --site-bezel: linear-gradient(160deg, #403b52, #1e1b29 40%, #100e16);
  --site-display-stretch: 112%;

  /* hm.css's tokens, re-pointed */
  --font-heading: "Mona Sans", "Geist", sans-serif;
  --paper: var(--site-bg);
  --paper-2: var(--site-raised);
  --paper-3: var(--site-raised-2);
  --rule: #c8c1de;
  --rule-soft: var(--site-line);
  --ink: var(--site-text);
  --ink-2: var(--site-text-2);
  --ink-3: var(--site-muted);
  --ink-4: var(--site-muted);
  --amber: var(--site-go);
  --amber-2: var(--site-go-2);
  --amber-bg: var(--site-go-bg);
  --on-accent: var(--site-on-go);
  --plum: #5b3fa8;
  --plum-2: #4a3290;
  --plum-bg: #ece6fa;
  --ok: var(--site-ok);
  --ok-bg: var(--site-go-bg);
  --warn: var(--site-mark-ink);
  --warn-bg: #fbf1c8;
  --err: #b3261e;
  --err-bg: #fbe3e0;
  --shadow-sm: 0 1px 0 rgb(var(--site-shade));
  --shadow: 0 1px 2px rgba(var(--site-shade), 0.6), 0 10px 30px rgba(var(--site-shade), 0.5);
  --shadow-lg: 0 2px 8px rgba(var(--site-shade), 0.6), 0 28px 70px rgba(var(--site-shade), 0.65);

  --site-gutter: clamp(20px, 5vw, 72px);
  --site-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* Every headline in the site's display face, a little wider than normal. */
.site h1,
.site h2,
.site h3 { font-stretch: var(--site-display-stretch); }

body.site {
  background: var(--site-bg);
  color: var(--site-text);
  font-size: 17px;
  line-height: 1.55;
}
body.site ::selection { background: var(--site-mark); color: var(--site-on-mark); }

/* :where() keeps this under any class that sets a link's colour. */
:where(.site) a { color: inherit; }
.site :focus-visible { outline: 2px solid var(--site-text); outline-offset: 3px; }
/* hm-consent.js focuses the banner's full-width wrapper; its ring is on the card inside. */
.site .hm-consent:focus-visible { outline: none; }

.site-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--site-mark);
  color: var(--site-on-mark);
  font-weight: 600;
  text-decoration: none;
}
.site-skip:focus { top: 12px; }

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

/* ---- The bar ---- */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--site-gutter);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-bar.is-scrolled,
.site-bar--solid {
  background: var(--site-bar-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--site-line);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--site-text);
}
.site-brand-mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.site-brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.site-brand--small .site-brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.site-brand--small .site-brand-name { font-size: 16px; }

.site-nav { display: flex; gap: 26px; margin-left: 12px; }
.site-nav a {
  font-size: 15px;
  color: var(--site-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--site-text); }
.site-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-link-quiet { font-size: 15px; color: var(--site-muted); text-decoration: none; }
.site-link-quiet:hover { color: var(--site-text); }

/* ---- Buttons: pills, green for the ones that start something ---- */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--site-text);
  font: 500 15px/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.site-btn:hover { border-color: var(--site-muted-2); }
.site-btn:active { transform: translateY(1px); }
.site-btn--go {
  background: var(--site-go);
  border-color: var(--site-go);
  color: var(--site-on-go);
  font-weight: 600;
}
.site-btn--go:hover { background: var(--site-go-2); border-color: var(--site-go-2); }
.site-btn--quiet { border-color: var(--site-line); color: var(--site-text-2); }
.site-btn--lg { padding: 15px 26px; font-size: 16px; }

/* ---- Store buttons (shown by hm-landing.js once a store URL is configured) ---- */
.site-store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 20px 9px;
  min-width: 156px;
  border-radius: 14px;
  background: var(--site-text);
  color: var(--site-bg);
  text-decoration: none;
  line-height: 1.1;
  transition: background 0.15s ease, transform 0.15s ease;
}
.site-store:hover { background: var(--site-store-hover); }
.site-store:active { transform: translateY(1px); }
.site-store-small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.site-store-big { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.site-store--lg { padding: 11px 26px 12px; min-width: 190px; }
.site-store--lg .site-store-big { font-size: 22px; }

/* ---- Footer ---- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 40px var(--site-gutter) 52px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 14px;
}
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer-nav a { color: var(--site-muted); text-decoration: none; }
.site-footer-nav a:hover { color: var(--site-text); }
.site-footer-legal { margin: 0 0 0 auto; color: var(--site-muted); }

/* ---- hm-* components in the site's voice ---- */
.site .hm-btn { border-radius: 999px; }
.site .hm-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--site-text-2);
}
/* 16px so iOS does not zoom the page on focus; a border a control can be seen by. */
.site .hm-input { font-size: 16px; background: var(--site-raised); border-color: var(--site-muted-2); }
.site .hm-input:focus { border-color: var(--site-text); }
.site .hm-consent-check { accent-color: var(--site-ok); }
.site .hm-modal { background: var(--site-raised); border-color: var(--site-line); }
.site .hm-link { color: var(--site-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-bar { gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .site-bar-actions { gap: 14px; }
  .site-footer-legal { margin-left: 0; width: 100%; }
}
