/* The Posters Project — landing page */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Commissioner", system-ui, sans-serif;
  color: #fff6e8;
  background-color: #1f2e1c;
}

/* The forest photo, plus a flat wash over it so the text stays readable. */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #1f2e1c;
  background-image: linear-gradient(
      rgba(13, 21, 12, 0.5),
      rgba(13, 21, 12, 0.5)
    ),
    url("/forest.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main {
  /* Wide enough for "Two Way Street" to hold one line at the largest
     headline size. The form is narrowed back down separately below. */
  max-width: 1040px;
  margin: 0 auto;
  /* Bottom padding leaves room for the fixed Instagram link. */
  padding: 7vh 24px 120px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 11vw, 124px);
  font-weight: 600;
  /* Tighter than default, because three big lines stacked need to read as
     one block rather than three separate sentences. */
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* Reflection form */

.reflect {
  max-width: 620px;
  margin: clamp(36px, 6vh, 64px) auto 0;
}

.reflect h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 400;
}

textarea {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  color: #fff6e8;
  background-color: rgba(13, 21, 12, 0.55);
  border: 1px solid rgba(255, 246, 232, 0.45);
  border-radius: 6px;
  resize: vertical;
}

textarea::placeholder {
  color: rgba(255, 246, 232, 0.6);
}

button {
  margin-top: 12px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 16px;
  color: #1f2e1c;
  background-color: #fff6e8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #ffffff;
}

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

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 16px;
}

/* Instagram link, pinned to the bottom of the screen */

.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
}

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  color: #fff6e8;
  text-decoration: none;
  background-color: rgba(13, 21, 12, 0.55);
  border: 1px solid rgba(255, 246, 232, 0.45);
  border-radius: 999px;
}

.instagram:hover {
  background-color: rgba(13, 21, 12, 0.75);
}

.instagram-glyph {
  width: 20px;
  height: 20px;
}
