:root {
  color-scheme: light dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui,
    sans-serif;
  background: #f7f5fb;
  color: #252131;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.55;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

/* The mark and the name lead back to the public page. They used to link to
   the current page, from the months when the root was the password-gated
   diary and there was nothing to go back to; support and privacy were dead
   ends for anyone who arrived from the App Store listing. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

/* Three links no longer fit on one phone line. */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

a {
  color: #654eb5;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

p,
li,
label,
input,
textarea,
button {
  font-size: 17px;
}

.lead,
.muted {
  color: #686273;
}

.notice,
.card {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e2ddec;
  border-radius: 22px;
  background: #ffffff;
}

.notice {
  border-color: #d7c8a0;
  background: #fff9e9;
}

ul {
  padding-left: 22px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

label.checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 450;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfc8dc;
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  color: #252131;
}

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

button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  background: #aa98ee;
  color: #201744;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.honeypot {
  display: none;
}

#result[role="alert"] {
  min-height: 26px;
  margin: 0;
  font-weight: 650;
}

/* Beside the mark, three links wrap into a ragged second line. Stacked, the
   way back reads as a row of its own. */
@media (max-width: 560px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111016;
    color: #f2eef8;
  }

  .lead,
  .muted {
    color: #aaa4b4;
  }

  .card {
    border-color: #383341;
    background: #1b191f;
  }

  .notice {
    border-color: #5d5030;
    background: #292315;
  }

  input,
  textarea {
    border-color: #4a4453;
    background: #17151b;
    color: #f2eef8;
  }

  a {
    color: #bdadff;
  }
}
