:root {
  --cream: #f5eee2;
  --paper: #fffaf1;
  --ink: #151411;
  --muted: #6b6258;
  --line: #211f1a;
  --date-red: #9b3429;
  --focus: #2f6f63;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(245, 238, 226, 0.94)),
    var(--cream);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.page-shell {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 46px 20px 20px;
}

.signup {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--date-red);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 5.6vw, 2.7rem);
  font-style: italic;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 11vw, 5.6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-indent: 0.17em;
}

.subhead {
  max-width: 520px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.08rem, 2.7vw, 1.3rem);
  line-height: 1.8;
}

.email-form {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.email-form input,
.email-form button {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.email-form input {
  width: 100%;
  padding: 0 16px 0 2px;
  font-size: 1rem;
}

.email-form input::placeholder {
  color: rgba(21, 20, 17, 0.48);
}

.email-form button {
  padding: 0 2px 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.email-form button:hover {
  color: var(--date-red);
}

.email-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.email-form input:focus,
.email-form button:focus-visible,
.instagram-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.form-message {
  min-height: 1.2em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-message[data-state="error"] {
  color: var(--date-red);
}

.form-message[data-state="success"] {
  color: var(--focus);
}

.site-footer {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.instagram-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.instagram-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-link:hover {
  color: var(--date-red);
}

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

@media (max-width: 520px) {
  .page-shell {
    min-height: calc(100vh - 74px);
    padding-top: 34px;
  }

  .subhead {
    margin-bottom: 28px;
  }

  .email-form {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .email-form input,
  .email-form button {
    min-height: 48px;
    text-align: center;
    padding: 0 10px;
  }

  .email-form button {
    border-top: 1px solid rgba(21, 20, 17, 0.2);
  }

  .site-footer {
    min-height: 74px;
  }
}
