/* The document pages (privacy, support): the app's paper-and-ink reading
   style — Polymath, hairline rules, a 720px measure. */

@font-face {
  font-family: "Polymath Display";
  src: url("/assets/fonts/polymath-display-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Polymath Display";
  src: url("/assets/fonts/polymath-display-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Polymath";
  src: url("/assets/fonts/polymath-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Polymath";
  src: url("/assets/fonts/polymath-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #222222;
  --ink-muted: rgba(0, 0, 0, 0.5); /* black at 50%, same as the app */
  --accent: #4f6aff;
  --paper: #ffffff;
  --hairline: rgba(34, 34, 34, 0.1);
  --display: "Polymath Display", "Polymath", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --text: "Polymath", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus-visible {
  top: 16px;
  text-decoration: none;
}

.site-header {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.01em;
}

.wordmark:hover,
.wordmark:focus-visible {
  text-decoration: none;
  color: var(--accent);
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--ink-muted);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.document {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.document-title {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.document-meta {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 20px;
}

.document-intro {
  margin-top: 24px;
}

.document section {
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
}

.document section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

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

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

ul:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 10px;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

.button {
  display: inline-flex;
  height: 56px;
  padding: 0 32px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 28px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
  background: var(--accent);
}

.site-footer {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 600px) {
  .site-header {
    padding: 24px;
  }

  .document {
    padding-top: 16px;
  }
}
