@import "./fonts.css";
@import "./reset.css";

:root {
  --background: #f1f1f1;
  --the-black: #141414;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--the-black);
  font-family: charter, serif;
  display: flex;
  gap: 32px;
  justify-content: center;
  padding-inline: 16px;
}

canvas {
  width: 192px;
  max-width: 20vw;
}

.content {
  max-width: 65ch;
}

header {
  display: flex;
  align-items: baseline;
  margin-block-end: 32px;

  h1 {
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 5rem;
    font-weight: 800;
  }
}

main {
  p {
    margin-block-start: 8px;
  }

  h2 {
    margin-top: 3rem;
  }

  h2,
  h3,
  h4 {
    font-family: 'Cooper Hewitt', sans-serif;
  }

  aside {
    font-style: italic;
  }
}

footer {
  margin-top: 3rem;
  border-block-start: 2px solid var(--the-black);
  padding: 32px;

  blockquote {
    padding: 0;
    margin: 0;
    font-style: italic;
  }

  .attribution {
    margin-block-start: 0;
    text-align: right;
  }
}

form {
  label {
    margin-block-start: 12px;
    display: block;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 500;
  }

  input,
  textarea {
    border: 2px solid var(--the-black);
    border-radius: 4px;
    padding: 4px;
    width: 50%;
  }

  textarea {
    width: 100%;
    resize: none;
  }

  /* This is a honeypot field in the form. */
  .website {
    display: none;
  }

  button {
    margin-block-start: 12px;
    appearance: none;
    display: block;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 500;
    line-height: 1;
    border: 2px solid var(--the-black);
    border-radius: 4px;
    padding: 8px 8px 5px 8px;

    color: var(--the-black);
    background-color: white;

    &:hover {
      color: white;
      background-color: var(--the-black);
    }

    &:disabled {
      color: color-mix(in srgb, var(--the-black) 20%, transparent);
      background-color: var(--background);
    }
  }
}