/* The site has no build step, so this is plain CSS. The colours follow the web app's. */
:root {
  --background: #fafafa;
  --foreground: #171717;
  --muted: #5c5c5c;
  --card: #ffffff;
  --border: #e5e5e5;
  --button: #171717;
  --button-text: #fafafa;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f0f0f;
    --foreground: #ededed;
    --muted: #a3a3a3;
    --card: #171717;
    --border: #2a2a2a;
    --button: #ededed;
    --button-text: #0f0f0f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.bar,
main,
.foot {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: var(--button);
  color: var(--button-text);
  font-size: 0.875rem;
  font-weight: 700;
}

main {
  flex: 1;
}

.hero {
  max-width: 40rem;
  padding-block: 5rem 4rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  opacity: 0.85;
}

.button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.button-quiet {
  height: 2.25rem;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.features article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.foot p {
  margin: 0;
}
