:root {
  color-scheme: dark;
  --ink: #f9f1e4;
  --soft-ink: #e4dbcd;
  --night: #151a21;
  --sand: #ecd2b5;
  --line: #f9f1e44d;
  font-family: "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(1.75rem, 5vh, 3.75rem) clamp(1.5rem, 8vw, 9rem) 1.5rem;
}

.backdrop,
.landing::before {
  position: absolute;
  inset: 0;
}

.backdrop {
  z-index: -2;
}

.backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.landing::before {
  z-index: -1;
  background:
    linear-gradient(90deg, #151a21f5 0%, #151a21db 25%, #151a2180 47%, #151a2100 72%),
    linear-gradient(0deg, #151a21c9, #151a2100 36%);
  content: "";
}

.logo {
  display: block;
  width: clamp(10.25rem, 18vw, 14.5rem);
  height: auto;
  filter: invert(1);
}

.content {
  align-self: center;
  min-width: 0;
  width: min(100%, 35rem);
  padding-block: clamp(3rem, 7vh, 7rem);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font: 400 clamp(3.1rem, 6.3vw, 6.5rem) / 0.99 "Goudy Old Style", Georgia, serif;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.announcement p {
  max-width: 35ch;
  margin: 1.4rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.7;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.announcement a {
  color: var(--ink);
  font-weight: 600;
}

form {
  width: min(100%, 27rem);
  margin-top: 2.15rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.form-row {
  display: flex;
  gap: 0.55rem;
}

input,
button {
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.25rem;
  font: inherit;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #f9f1e470;
  background: #151a21b8;
  color: var(--ink);
}

input::placeholder {
  color: var(--soft-ink);
}

button {
  border: 1px solid transparent;
  background: var(--sand);
  color: #282019;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

button:hover {
  background: #f6e2c9;
}

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

.form-error {
  margin: 0.65rem 0 0;
  color: #ffd0be;
  font-size: 0.875rem;
  font-weight: 600;
}

.photo-credit {
  justify-self: end;
  color: var(--soft-ink);
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 55rem) {
  .landing::before {
    background:
      linear-gradient(90deg, #151a21ed, #151a219e 58%, #151a2129),
      linear-gradient(0deg, #151a21d9, #151a2100 40%);
  }
}

@media (max-width: 45rem) {
  .backdrop img {
    object-position: center 62%;
  }

  .landing::before {
    background: linear-gradient(
      180deg, #151a21d3 0%, #151a21b8 46%, #151a21a0 68%, #151a21e8 100%
    );
  }

  .content {
    padding-block: 3rem;
  }

  .photo-credit {
    justify-self: start;
  }
}

@media (max-width: 23rem) {
  .form-row {
    flex-direction: column;
  }
}
