:root {
  --ink: #171412;
  --muted: #6f625d;
  --paper: #fff9f1;
  --cream: #fff1d8;
  --coral: #e95d4e;
  --plum: #56375c;
  --mint: #4aa78f;
  --green: #237760;
  --green-dark: #1b6651;
  --gold: #d59b3a;
  --line: rgba(23, 20, 18, 0.13);
  --shadow: 0 18px 54px rgba(55, 37, 28, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 76svh;
  display: grid;
  align-items: end;
  padding: 24px 18px 58px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(19, 33, 22, 0.12), rgba(19, 33, 22, 0.72) 54%, rgba(19, 33, 22, 0.94)),
    url("assets/birthday-bbq-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 15vh;
  background: linear-gradient(0deg, var(--paper), rgba(255, 249, 241, 0));
  pointer-events: none;
}

.hero__content {
  width: min(100%, 560px);
  position: relative;
  z-index: 1;
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(3.05rem, 15vw, 4.6rem);
}

h2 {
  font-size: clamp(2.35rem, 12vw, 3.55rem);
}

.hero__copy {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.hero__copy p {
  margin: 0;
}

.hero__copy p + p {
  margin-top: 6px;
}

.hero__button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--green);
  color: #fffdf8;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(35, 119, 96, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero__button {
  width: 100%;
  margin-top: 28px;
  background: #fffdf8;
  color: var(--green-dark);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.hero__button:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.submit-button:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 18px 38px rgba(35, 119, 96, 0.34);
}

.party-info {
  width: min(100% - 28px, 640px);
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-item {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.info-item:last-child {
  border-bottom: 0;
}

.info-item__label {
  display: block;
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-item strong {
  display: block;
  font-size: 1.2rem;
}

.info-item p,
.rsvp__intro p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.map-link::after {
  content: "→";
  margin-left: 8px;
}

.map-link:hover {
  color: var(--mint);
}

.rsvp {
  width: min(100% - 28px, 640px);
  margin: 54px auto 78px;
  display: grid;
  gap: 26px;
  align-items: start;
}

.rsvp__intro .eyebrow {
  color: var(--coral);
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--plum);
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(86, 55, 92, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  background: #fffaf2;
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(86, 55, 92, 0.12);
}

.submit-button {
  width: 100%;
  margin-top: 2px;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: #ba3d32;
}

.site-footer {
  padding: 0 18px 38px;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 560px) {
  .hero {
    padding: 32px 30px 68px;
  }

  .rsvp-form,
  .info-item {
    padding: 28px;
  }
}

@media (min-width: 700px) {
  .hero__button {
    width: auto;
  }
  
  .field-grid {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 16px;
  }
}

@media (min-width: 840px) {
  .hero {
    min-height: 82svh;
    align-items: center;
    padding: clamp(40px, 5vw, 72px);
    background:
      linear-gradient(90deg, rgba(19, 33, 22, 0.84), rgba(19, 33, 22, 0.5) 43%, rgba(19, 33, 22, 0.08) 76%),
      url("assets/birthday-bbq-hero.png") center / cover no-repeat;
  }

  .hero::after {
    height: 18vh;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.82rem;
  }

  h1 {
    max-width: 10.8ch;
    font-size: clamp(4.8rem, 8.5vw, 7.8rem);
  }

  h2 {
    font-size: clamp(3.6rem, 5.6vw, 5rem);
  }

  .hero__copy {
    margin-top: 24px;
    font-size: clamp(1.08rem, 1.7vw, 1.35rem);
    line-height: 1.65;
  }

  .hero__copy p + p {
    margin-top: 7px;
  }

  .hero__button {
    margin-top: 34px;
  }

  .party-info {
    width: min(1120px, calc(100% - 36px));
    margin-top: -46px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-item {
    min-height: 172px;
    padding: clamp(22px, 3vw, 34px);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .info-item:last-child {
    border-right: 0;
  }

  .rsvp {
    width: min(1120px, calc(100% - 36px));
    margin: clamp(58px, 9vw, 110px) auto;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: clamp(30px, 6vw, 72px);
  }

  .rsvp__intro {
    position: sticky;
    top: 32px;
  }

  .rsvp-form {
    gap: 20px;
    padding: clamp(28px, 4vw, 38px);
  }
}
