@font-face {
  font-family: "Nunito";
  src: local("Nunito");
}

:root {
  color-scheme: light;
  font-family: "Nunito", system-ui, sans-serif;
  background: #f4efe3;
  color: #24352a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(255 255 255 / 72%), transparent 32rem),
    linear-gradient(145deg, #f8f3e8, #e8f0df);
}

.invite-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.invite-card {
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #bfd0b8;
  border-radius: 1.5rem;
  background: rgb(255 253 247 / 96%);
  box-shadow: 0 1.5rem 4rem rgb(52 74 55 / 14%);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #4d754c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #315c3b;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  color: #315c3b;
  font-size: 1.45rem;
}

.access-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dbe3d5;
}

.invitation-section {
  margin-top: 2.25rem;
}

.recovery-section summary {
  cursor: pointer;
  color: #315c3b;
  font-weight: 750;
  font-size: 1.05rem;
}

.recovery-section[open] summary {
  margin-bottom: 1rem;
}

.intro,
.safety-note {
  line-height: 1.6;
}

form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

label {
  margin-top: 0.65rem;
  font-weight: 800;
}

input,
button {
  min-height: 3rem;
  border-radius: 0.8rem;
  font: inherit;
}

input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9eb49a;
  background: #fff;
  color: #24352a;
}

input:focus-visible,
button:focus-visible {
  outline: 0.2rem solid #d99a38;
  outline-offset: 0.18rem;
}

button {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: #3f7548;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #315f39;
}

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

.status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: #8a3f33;
  font-weight: 700;
}

.safety-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #dbe3d5;
  color: #526456;
  font-size: 0.9rem;
}

@media (max-width: 32rem) {
  .invite-shell {
    align-items: start;
    padding: 0.75rem;
  }

  .invite-card {
    border-radius: 1rem;
  }
}
