:root {
  --bg: #efebb5;
  --ink: #1a1714;
  --muted: #5c574f;
  --rule: #c8c6b8;
  --measure: 30.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  font-optical-sizing: auto;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
}

main {
  width: min(100% - 2.4rem, 46.4rem);
  margin: 0 auto;
  padding: 12vh 0 18vh;
}

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

h1 {
  font-size: clamp(2.05rem, 6vw, 3.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

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

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

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.intro {
  max-width: none;
}

.intro h1 {
  margin-bottom: 2.25rem;
}

.tagline {
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.intro p + p {
  margin-top: 1.15rem;
}

.location {
  color: var(--muted);
}

.bio {
  max-width: 40rem;
}

.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.paths h2 {
  color: var(--muted);
}

.paths section p + p {
  margin-top: 1.15rem;
}

.areas {
  margin: 0;
  padding: 0;
  list-style: none;
}

.areas li + li {
  margin-top: 1.45rem;
}

.area-name {
  font-weight: 500;
  line-height: 1.35;
}

.areas .area-note {
  margin-top: 0.1rem;
  color: var(--muted);
  line-height: 1.35;
}

.paths .art-invite {
  margin-top: 0.1rem;
  color: var(--muted);
  line-height: 1.35;
}

#art {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule);
}

footer {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 1.8rem, 46.4rem);
    padding: 10vh 0 14vh;
  }

  .paths {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  #art {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
  }

  footer {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message-window {
  width: min(22rem, calc(100% - 2rem));
  height: 16.5rem;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}

.message-window::backdrop {
  background: rgb(26 23 20 / 0.2);
}

.message-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.message-form textarea {
  flex: 1;
  width: 100%;
  padding: 0.9rem 1rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
}

.message-form textarea:focus,
.message-form input:focus {
  outline: none;
}

.message-form textarea::placeholder,
.message-form input::placeholder {
  color: var(--muted);
}

.message-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
}

.message-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
}

.message-form button {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.message-form button:hover,
.message-form button:focus-visible {
  text-decoration-thickness: 2px;
}

.message-form button:disabled {
  opacity: 0.5;
}

.message-status {
  min-height: 0;
  padding: 0 1rem 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.message-status:empty {
  display: none;
}

.cursor-ball {
  display: none;
}

@media (pointer: fine) {
  html,
  body,
  a {
    cursor: none;
  }

  .cursor-ball {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  .cursor-ball.is-on {
    opacity: 1;
  }

  body.is-messaging,
  body.is-messaging a,
  body.is-messaging button {
    cursor: auto;
  }

  body.is-messaging textarea,
  body.is-messaging input {
    cursor: text;
  }

  body.is-messaging .cursor-ball {
    display: none;
  }
}
