/* Shared styles for the FreeReps website. The tokens mirror the "Modernist"
   system of the web dashboard (server/web/src/index.css); change them there
   first and copy the values here. */

:root {
  color-scheme: light dark;
  --bg: #edf0f1;
  --surface: #e3e7e9;
  --text: #232c33;
  --accent: #1d5fa8;
  --accent-100: #e9eff7;
  --accent-700: #17477e;
  --divider: color-mix(in srgb, #232c33 28%, transparent);
  --n300: #cfd4d6;
  --n600: #79848c;
  --n700: #5e6a72;
  --page-x: 40px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171c20;
    --surface: #1f262b;
    --text: #e7ebed;
    --accent: #6aa8e8;
    --accent-100: #1b2836;
    --accent-700: #8fc0f2;
    --divider: color-mix(in srgb, #e7ebed 26%, transparent);
    --n300: #343c42;
    --n600: #939ca2;
    --n700: #b1b8bd;
  }
}
@media (max-width: 767px) {
  :root { --page-x: 20px; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration: underline; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, figure, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* Type */
.kicker {
  font-weight: 600; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--n600);
}
.h2 {
  font-weight: 800; font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08; letter-spacing: -.02em;
}
.heading { display: grid; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; white-space: nowrap; flex: none;
  font-weight: 800; font-size: 14px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: .88; color: var(--bg); }
.btn-secondary { border: 1px solid var(--divider); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }

/* Nav */
.site-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding: 16px var(--page-x);
  background: var(--surface); border-bottom: 1px solid var(--divider);
}
.site-nav a { font-size: 13px; font-weight: 500; color: var(--n700); }
.site-nav a:hover { color: var(--text); }
.site-nav .brand {
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--text); margin-right: 16px; text-decoration: none;
}
.site-nav .gh {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
}

/* Footer */
.site-footer {
  padding: 32px var(--page-x) 40px; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--n600);
}
.site-footer .org { font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: var(--n600); }
.site-footer nav a:hover { color: var(--text); }

/* Subpages: FAQ, Privacy Policy, Terms of Service */
.page-header {
  padding: 80px var(--page-x) 48px; max-width: 1100px;
  display: grid; gap: 16px;
}
.page-header h1 {
  font-weight: 800; font-size: clamp(44px, 7vw, 88px);
  line-height: .98; letter-spacing: -.03em;
}
.page-header .meta { font-size: 14px; color: var(--n600); }
.page-body { padding: 0 var(--page-x); }
.page-body > div { max-width: 1100px; border-top: 2px solid var(--text); }
.row {
  display: flex; flex-wrap: wrap; gap: 8px 48px;
  padding: 24px 0; border-bottom: 1px solid var(--n300);
}
.row h2 {
  flex: 1 1 260px;
  font-weight: 800; font-size: 17px; line-height: 1.35; letter-spacing: -.01em;
}
.row > div { flex: 2 1 420px; min-width: 0; display: grid; gap: 12px; }
.row p, .row ul { font-size: 15px; line-height: 1.6; color: var(--n700); }
.row ul { padding-left: 18px; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .875em;
  background: var(--surface); padding: .1em .4em;
}
.page-body + .site-footer { margin-top: 112px; }
