/* Same tokens as the app (web/src/styles/tokens.css). Fonts are served from this site. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  --surface: #fbfaf8;
  --line: #e6e4df;
  --ink: #1b1b1a;
  --text-2: #4a4844;
  --muted: #6b6964;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 6px;
}

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

html,
body {
  margin: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

.top,
main,
.bottom {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.mark {
  font-weight: 600;
  font-size: 21px;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.intro {
  border-top: none;
  padding-top: 48px;
}

h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
  color: var(--text-2);
}

.lead {
  font-size: 19px;
  max-width: 60ch;
}

.note {
  font-size: 15px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}

.btn:hover {
  background: var(--surface);
}

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn.primary:hover {
  background: #33332f;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 32px;
  margin: 0;
}

.features dt {
  font-weight: 600;
}

.features dd {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 16px;
}

pre {
  margin: 0 0 16px;
  padding: 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

code {
  font-family: var(--font-mono);
  font-size: 15px;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 560px) {
  h1 {
    font-size: 28px;
  }
}
