/* Graytrail landing page — a letter.
 *
 * Fonts are self-hosted: the application's Content-Security-Policy is
 * `default-src 'self'`, so a Google Fonts stylesheet or font file would be
 * blocked and the page would silently fall back to system faces. The files
 * are the latin subsets Google serves for each family (SIL Open Font
 * License). Newsreader and Geist Mono are variable fonts, so one file covers
 * every weight used here.
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/public/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/public/fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/public/fonts/geist-mono.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --hairline: #d9d9d9;
  --well: #f4f4f4;
  --link: #0000ee;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 20px;
}

.wordmark {
  font-weight: 500;
}

.topbar-mail {
  color: var(--link);
  text-decoration: none;
}

.headline {
  max-width: 720px;
  padding: 140px 0 72px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 66px;
  letter-spacing: -0.015em;
}

.letter {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 140px;
}

p {
  margin: 0;
}

.queries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.query {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--well);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 24px;
}

.chevron {
  flex-shrink: 0;
  width: 14px;
  font-weight: 500;
  color: var(--link);
}

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

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

.footer {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
    line-height: 28px;
  }
  .page {
    padding: 24px 20px 48px;
  }
  .headline {
    padding: 72px 0 48px;
  }
  h1 {
    font-size: 38px;
    line-height: 44px;
  }
  .letter {
    gap: 24px;
    padding-bottom: 80px;
  }
  .query {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 22px;
  }
}

@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  .headline {
    padding: 48pt 0 24pt;
  }
  h1 {
    font-size: 28pt;
    line-height: 1.15;
  }
  .letter {
    padding-bottom: 36pt;
  }
  .query {
    background: none;
    padding: 0;
  }
  a,
  .topbar-mail,
  .chevron {
    color: var(--ink);
  }
}
