:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #9a9a9a;
  --paper: #ffffff;
  --link: rgb(0 0 0 / 45%);
  --blue: #2891df;
  --selection: #e8f6ff;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--blue);
  background: var(--selection);
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Geist, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  padding-left: max(20px, calc(env(safe-area-inset-left) + 20px));
  padding-right: max(20px, calc(env(safe-area-inset-right) + 20px));
}

main {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: max(clamp(64px, 16svh, 128px), calc(env(safe-area-inset-top) + 24px)) 0 128px;
}

.content {
  font-size: 15px;
  line-height: 24px;
}

.content p {
  margin: 0;
}

.subtle-text {
  color: rgb(0 0 0 / 45%);
}

.content p + p {
  margin-top: 0;
}

.space-tight {
  height: 2px;
}

.space-paragraph {
  height: 10px;
}

.space-section {
  height: 20px;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

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

@media (min-width: 640px) {
  body {
    padding-left: max(32px, calc(env(safe-area-inset-left) + 20px));
    padding-right: max(32px, calc(env(safe-area-inset-right) + 20px));
  }

  main {
    padding-top: max(clamp(64px, 18svh, 160px), calc(env(safe-area-inset-top) + 24px));
  }
}
