/* Shared by every page: fonts, palette, header, footer and the text pages (privacy, changelog). */

/* Inter, Latin subset (local/store-listing/fonts, SIL OFL). */
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-regular.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-semibold.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/inter-bold.woff2) format('woff2');
}

/* The app's dark palette and module accents (apps/mobile/src/ui/tokens.ts). */
:root {
  --bg: #191817;
  --surface: #22211f;
  --surface-muted: #2b2927;
  --border: #383532;
  --text: #f2efea;
  --text-muted: #a59e95;
  --text-faint: #77716a;
  --brand: #b9b6f2;
  --on-brand: #1a1840;
  --habits: #6fc28f;
  --journal: #9a9af2;
  --mood: #f2c94c;
  --people: #f08c73;
  --quotes: #e6b04a;
  --timer: #f08db8;
  --countdowns: #6fb0e8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: var(--brand);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}
.muted {
  color: var(--text-muted);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 600;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 32px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a {
  color: inherit;
}
.site-footer a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

/* Text pages: a title band across the page's width, then a readable column under it. */
.page-head {
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.page-head p {
  max-width: 36em;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--text-muted);
}
/* As wide as the header, like the home page. */
.prose {
  padding-block: 48px 96px;
  font-size: 17px;
  line-height: 1.65;
}
.prose h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 8px;
}
.prose li::marker {
  color: var(--text-faint);
}
.summary {
  margin: 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
