/* Nod Web — Base */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.47;
  color: var(--color-label);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-quick);
}
a:hover { opacity: 0.75; }

h1, h2, h3, h4 {
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.07;
  color: var(--color-label);
  text-wrap: balance;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-large-title); }
h3 { font-size: var(--text-title-2); font-weight: var(--weight-semibold); }

p {
  color: var(--color-label-secondary);
  max-width: 62ch;
  text-wrap: pretty;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 122, 255, 0.18);
  color: var(--color-ink);
}

/* Legal prose */
.prose {
  max-width: var(--max-content);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-label-secondary);
}
.prose h2 {
  font-size: var(--text-title-2);
  margin: var(--space-5) 0 var(--space-2);
  color: var(--color-label);
}
.prose h3 {
  font-size: var(--text-headline);
  margin: var(--space-4) 0 var(--space-1);
  color: var(--color-label);
}
.prose p { margin-bottom: var(--space-2); max-width: none; }
.prose ul { margin: 0 0 var(--space-3); padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose hr {
  border: none;
  border-top: 1px solid var(--color-separator);
  margin: var(--space-5) 0;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-label); font-weight: var(--weight-semibold); }
.prose small { font-size: var(--text-caption); color: var(--color-label-tertiary); }
