:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */

header.site,
footer.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

header.site {
  padding: 28px 0;
  border-bottom: 1px solid #000;
}

header.site .name {
  font-weight: 700;
  text-decoration: none;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

header.site nav a {
  text-decoration: none;
}

header.site nav a:hover {
  text-decoration: underline;
}

footer.site {
  padding: 28px 0 56px;
  border-top: 1px solid #000;
  font-size: 15px;
}

/* Home page */

.intro {
  padding: 80px 0 72px;
}

.intro h1 {
  margin: 0 0 28px;
  max-width: 19em;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.intro p {
  margin: 0;
  max-width: 36em;
  font-size: 19px;
}

section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 40px;
  padding: 44px 0;
  border-top: 1px solid #000;
  scroll-margin-top: 16px;
}

section h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

section .body {
  max-width: 36em;
}

section .body > :first-child {
  margin-top: 0;
}

section .body > :last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 1em;
}

ul.plain {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

ul.plain li {
  padding: 14px 0;
  border-top: 1px solid #000;
}

ul.plain li:last-child {
  border-bottom: 1px solid #000;
}

dl {
  display: grid;
  grid-template-columns: 13em minmax(0, 1fr);
  gap: 6px 24px;
  margin: 0 0 1.4em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

a.email {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Text pages (privacy policy, 404) */

main.doc {
  max-width: 36em;
  padding: 64px 0 72px;
}

main.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.8vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main.doc h2 {
  margin: 2.2em 0 0.5em;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .intro {
    padding: 52px 0 48px;
  }

  .intro p {
    font-size: 17px;
  }

  section {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0;
  }

  section h2 {
    margin-bottom: 14px;
  }

  dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  dd {
    margin-bottom: 12px;
  }

  main.doc {
    padding: 44px 0 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
