/*
 * The VotePeer look for the static pages (/privacy/, /support/), which are
 * plain HTML outside the Vue app. The colours and type follow src/ui
 * (tokens.css, base.css); the fonts are the media kit's (/media/fonts/).
 */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/media/fonts/InstrumentSerif-Regular-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/media/fonts/InstrumentSerif-Italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/media/fonts/Geist-Variable.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/media/fonts/GeistMono-Variable.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0e0e10;
  --mist: #f4f4f1;
  --rule: #e4e4df;
  --line: #c9c9c3;
  --cobalt: #1f3be0;
  --cobalt-hover: #1028b8;
  --muted: #5c5c63;
  --muted-strong: #3b3b41;
  --gutter: 32px;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

/* Dark theme, as in src/ui/tokens.css: the system setting or the choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0e0e10;
    --ink: #f2f2ee;
    --mist: #1e1e22;
    --rule: #2a2a2f;
    --line: #4a4a52;
    --cobalt: #8293ff;
    --cobalt-hover: #a5b2ff;
    --muted: #a4a4ab;
    --muted-strong: #c8c8c2;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0e0e10;
  --ink: #f2f2ee;
  --mist: #1e1e22;
  --rule: #2a2a2f;
  --line: #4a4a52;
  --cobalt: #8293ff;
  --cobalt-hover: #a5b2ff;
  --muted: #a4a4ab;
  --muted-strong: #c8c8c2;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Geist Variable', 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--cobalt-hover);
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.pill:hover {
  opacity: 0.88;
  color: var(--bg);
}

.brand svg .tile {
  fill: var(--ink);
}

.brand svg .check {
  fill: var(--bg);
}

main.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr);
  padding-top: 72px;
  padding-bottom: 96px;
}

main > * {
  grid-column: 2;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

h1 em {
  color: var(--cobalt);
}

.meta {
  margin: 0 0 40px;
  color: var(--muted);
}

h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

p,
li {
  color: var(--muted-strong);
}

li + li {
  margin-top: 6px;
}

strong {
  color: var(--ink);
}

code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--mist);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

@media (max-width: 640px) {
  main.wrap {
    padding-top: 40px;
    padding-bottom: 64px;
  }
}
