/* goconvoy.ai: one stylesheet for the four static pages. Tokens follow code/page.css. */

@font-face { font-family: Newsreader; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/newsreader-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ink: oklch(23% 0.03 255);
  --muted: oklch(54% 0.02 255);
  --paper: oklch(97.4% 0.006 85);
  --card: #fff;
  --sunk: oklch(95.6% 0.007 85);
  --line: oklch(91.5% 0.008 85);
  --ember: oklch(64% 0.18 45);
  --ember-ink: oklch(51% 0.16 40);
  --on-ember: #fff;
  --serif: Newsreader, Georgia, serif;
  --ui: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: oklch(96% 0.005 85);
    --muted: oklch(70% 0.02 255);
    --paper: oklch(19% 0.02 255);
    --card: oklch(23.5% 0.024 255);
    --sunk: oklch(21% 0.022 255);
    --line: oklch(100% 0 0 / 9%);
    --ember-ink: oklch(78% 0.13 55);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--ember-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: 42rem; margin: 0 auto; padding: 0 16px; }

/* The wordmark: chevrons stay ember, the letters follow the text color. */
.wordmark { display: inline-block; color: var(--ink); line-height: 0; }
.wordmark svg { display: block; height: 100%; width: auto; }
.wordmark--lg { height: 52px; }
.wordmark--sm { height: 26px; }

/* The top bar on the legal pages and the 404. */
.topbar { padding: 24px 0 0; }

/* The landing page. */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 {
  margin: 36px 0 20px;
  font: 500 clamp(2rem, 1.4rem + 2.6vw, 2.75rem)/1.12 var(--serif);
  letter-spacing: -0.01em;
}
.hero p { margin: 0 0 16px; }
.hero .lead { font-size: 1.1875rem; }
.templates {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.templates h2 { margin: 0 0 8px; font: 500 0.8125rem/1.4 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.templates ul { margin: 0; padding: 0; list-style: none; }
.templates li { margin: 6px 0; }
.templates strong { font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 0; }
.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--on-ember);
  font-weight: 500;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.hero .note, .note { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* The legal pages. */
.legal-head { padding: 40px 0 8px; }
.legal-head h1 { margin: 0 0 6px; font: 500 2.25rem/1.15 var(--serif); }
.effective { margin: 0 0 20px; color: var(--muted); font-size: 0.9375rem; }
.lede { margin: 0; font-size: 1.125rem; }
.toc { margin: 28px 0 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.toc ol { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 0; padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal section { padding-top: 12px; }
.legal h2 { margin: 28px 0 8px; font: 500 1.5rem/1.25 var(--serif); }
.legal h3 { margin: 20px 0 4px; font-size: 1.0625rem; font-weight: 500; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.25em; }
.legal section li { margin: 4px 0; }
.legal strong { font-weight: 500; }
.legal code { font-size: 0.9em; }
.callout { padding: 12px 16px; border-left: 3px solid var(--ember); background: var(--sunk); border-radius: 0 8px 8px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 10px 10px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-weight: 500; color: var(--muted); }
tbody th { font-weight: 500; white-space: nowrap; }

/* The 404. */
.lost { padding-top: 72px; padding-bottom: 72px; }
.lost h1 { margin: 0 0 12px; font: 500 2rem/1.2 var(--serif); }

/* The footer, on every page. */
.footer { margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer .copy { margin: 0 0 0 auto; }

@media (max-width: 560px) {
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .wordmark--lg { height: 42px; }
  .toc ol { columns: 1; }
  .legal-head h1 { font-size: 1.875rem; }
  table, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  tbody th, tbody td { padding: 2px 0; border: 0; }
  tbody th { font-size: 1rem; }
  td::before { content: attr(data-label) ": "; color: var(--muted); }
  .footer .copy { margin-left: 0; width: 100%; }
}
