:root {
  color-scheme: dark;
  --background: #050505;
  --text: #f4f1ea;
  --muted: #bdb7aa;
  --link: #ffffff;
  --rule: #3a362f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(calc(100% - 40px), 690px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 1.35rem;
}

.site-title {
  width: min(100%, 15.5rem);
}

.site-title img {
  display: block;
  width: 100%;
  height: auto;
}

h2,
h3 {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  margin-top: 2.15rem;
  margin-bottom: 0.65rem;
}

p,
li {
  font-size: 1rem;
}

p + p {
  margin-top: 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  font: inherit;
}

.copy-email {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--link);
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.copy-email:hover,
.copy-email:focus-visible {
  text-decoration-color: currentColor;
}

.copy-email:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 0.2em;
}

.highlight {
  background: var(--text);
  color: var(--background);
  padding: 0 0.12em;
}

.highlight a {
  color: inherit;
  text-decoration-color: currentColor;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  background: var(--text);
  color: var(--background);
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: calc(100% - 32px);
  opacity: 0;
  padding: 0.55rem 0.7rem;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  main {
    width: min(calc(100% - 32px), 690px);
    padding: 48px 0 112px;
  }

  h1 {
    font-size: 2rem;
  }

  .site-title {
    width: min(100%, 14rem);
  }

  .toast {
    bottom: 32px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  main {
    padding-bottom: 128px;
  }

  .toast {
    bottom: 32px;
  }
}
