/*
 * Sipmate public site — shared stylesheet for every page (D-047 "Spritz" brand).
 * Light/dark via prefers-color-scheme, no dependencies, self-hosted fonts.
 * Landing-only motion lives in landing.css; this file stays calm and static —
 * it is what the legal/support pages use on their own.
 */

@font-face {
  font-family: 'Bricolage Display';
  src: url('fonts/BricolageDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Display';
  src: url('fonts/BricolageDisplay-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Brand — one vivid colour, used deliberately. */
  --spritz: #ff5a1f;
  --spritz-light: #ff8a3d;
  --spritz-deep: #ee3a10;
  --spritz-gradient: radial-gradient(
    circle at 30% 18%,
    var(--spritz-light) 0%,
    var(--spritz) 55%,
    var(--spritz-deep) 100%
  );
  --ink: #16111a; /* text on orange — never white body text on orange */
  --cream: #fff7f0; /* glyph colour on the icon; fine for large display type on orange */
  --lilac: #7355f0; /* social moments only: invites, the match glow */

  /* Cool neutrals — light. */
  --bg: #ffffff;
  --surface: #f4f2f8;
  --raised: #eae7f0;
  --border: #e3e0ea;
  --text: #15121b;
  --muted: #6b6779;
  --link: #c63a07; /* text-safe orange on light */
  --lilac-text: #6244e0; /* text-safe lilac on light */

  --font-system:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bricolage Display', var(--font-system);

  --measure: 720px;
  --header-measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a0f;
    --surface: #17151d;
    --raised: #221f2a;
    --border: #2e2a38;
    --text: #f6f4fa;
    --muted: #9d98ac;
    --link: #ff7a45; /* text-safe orange on dark */
    --lilac-text: #a48fff; /* text-safe lilac on dark */
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

/* Motion off site-wide when asked for. Landing.css relies on this too. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--spritz);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

/* Site header — shared bar. Calm and static by default; index.html adds
   `.site-header--hero` (styled in landing.css) to float it over the hero and
   pick up a translucent background once the page has scrolled. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--header-measure);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  background: var(--spritz-gradient);
}

.brand-mark svg {
  width: 68%;
  height: 68%;
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.get-app-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--spritz);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.get-app-pill:hover {
  background: var(--spritz-deep);
}

.get-app-pill:active {
  transform: scale(0.97);
}

/* Page container ------------------------------------------------------------ */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px 20px 56px;
}

/* Type ------------------------------------------------------------------ */

h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  margin: 40px 0 10px;
}

h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 24px 0 6px;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li > ul,
li > ol {
  margin-top: 8px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--spritz-deep);
}

@media (prefers-color-scheme: dark) {
  a:hover,
  a:focus-visible {
    color: var(--spritz-light);
  }
}

strong {
  color: var(--text);
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
}

.lede {
  font-size: 19px;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--spritz);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 28px;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

.footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0 0 16px;
}

.footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer nav a:hover,
.footer nav a:focus-visible {
  color: var(--link);
  text-decoration: underline;
}

.footer nav li {
  margin: 0;
}

.footer p {
  margin: 0 0 8px;
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 28px 16px 48px;
  }

  h1 {
    font-size: 28px;
  }

  .site-header-inner {
    padding: 10px 16px;
  }
}

/* Headlines break into even lines instead of stranding a word ("…up / for"). */
h1,
h2,
h3 {
  text-wrap: balance;
}
