* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 14px/20px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 608px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

nav {
  display: flex;
  gap: 16px;
}

a {
  color: inherit;
  text-underline-offset: 8px;
}

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

nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.wordmark {
  font: 30px/36px ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  text-decoration: none;
}

p {
  margin: 32px 0;
}

p a {
  text-underline-offset: 4px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.optional {
  color: #686868;
  font-weight: 400;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #d4d3cb;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 16px/20px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  transition: border-color 0.15s;
}

input:hover,
textarea:hover {
  border-color: #c0bdad;
}

input:focus,
textarea:focus {
  border-color: #000;
  outline: none;
  box-shadow: 3px 3px 0 #000;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Spam trap: hidden from people, filled in by bots. */
.trap {
  position: absolute;
  left: -9999px;
}

button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  box-shadow: 3px 3px 0 #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

button:hover {
  box-shadow: 5px 5px 0 #000;
}

button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  main {
    max-width: 672px;
    padding: 0 48px 48px;
  }

  header {
    padding: 48px 48px 24px;
  }

  input,
  textarea {
    font-size: 14px;
  }
}
