:root {
  --ink: #162421;
  --ink-soft: #45534f;
  --paper: #f5f2e8;
  --paper-strong: #fffaf0;
  --garden: #1f5b43;
  --garden-dark: #0d2b25;
  --pool: #0c8ba0;
  --fire: #e45f2f;
  --beer: #f2b84b;
  --line: rgba(22, 36, 33, 0.16);
  --success: #197a57;
  --error: #b83333;
  --shadow: 0 20px 48px rgba(13, 43, 37, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

.invite-body {
  background: var(--paper);
}

.invite-hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 1rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 21, 18, 0.25), rgba(7, 21, 18, 0.78)),
    linear-gradient(90deg, rgba(7, 21, 18, 0.78), rgba(7, 21, 18, 0.16) 64%);
}

.hero-content {
  width: min(100%, 42rem);
  color: #fff8ed;
  padding: 0 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow,
.pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.8rem;
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.eyebrow {
  color: #fff8ed;
  background: rgba(255, 248, 237, 0.18);
  border: 1px solid rgba(255, 248, 237, 0.32);
}

.eyebrow.dark,
.pill {
  color: var(--garden-dark);
  background: rgba(242, 184, 75, 0.28);
  border: 1px solid rgba(242, 184, 75, 0.44);
  text-shadow: none;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  max-width: 11ch;
  font-size: 3.15rem;
}

h2 {
  font-size: 2rem;
}

p {
  line-height: 1.6;
}

.hero-copy {
  max-width: 34rem;
  margin: clamp(2.2rem, 6svh, 4.6rem) 0 0;
  font-size: 1.05rem;
  color: rgba(255, 248, 237, 0.92);
}

.hero-facts {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.hero-facts div {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 248, 237, 0.28);
}

.hero-facts dt {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 248, 237, 0.72);
}

.hero-facts dd {
  margin: 0.18rem 0 0;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire), var(--beer));
  color: #1d1208;
  box-shadow: 0 12px 26px rgba(228, 95, 47, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 15px 34px rgba(228, 95, 47, 0.44);
}

.btn-primary:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--paper-strong);
  color: var(--garden-dark);
  border: 1px solid var(--line);
}

.btn-calendar {
  background: rgba(255, 248, 237, 0.14);
  color: #fff8ed;
  border: 1px solid rgba(255, 248, 237, 0.42);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.hero-cta {
  width: 100%;
}

.section-band {
  padding: 3rem 1rem;
  background:
    linear-gradient(180deg, rgba(12, 139, 160, 0.08), rgba(31, 91, 67, 0.1)),
    #eef3eb;
}

.section-band-muted {
  background:
    linear-gradient(180deg, rgba(12, 139, 160, 0.08), rgba(31, 91, 67, 0.1)),
    #eef3eb;
}

.content-grid {
  width: min(100%, 68rem);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}

.section-copy {
  max-width: 35rem;
}

.section-copy p,
.plain-list {
  color: var(--ink-soft);
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-content: start;
}

.memory-list span {
  min-height: 3.2rem;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 243, 235, 0.72);
  font-weight: 800;
  text-align: center;
}

.detail-grid {
  align-items: center;
}

.detail-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.rsvp-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(13, 43, 37, 0.94), rgba(12, 139, 160, 0.74)),
    var(--garden-dark);
}

.rsvp-page {
  width: min(100%, 70rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  align-items: center;
}

.rsvp-shell {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.rsvp-art {
  min-height: 13rem;
  background: var(--garden-dark);
}

.rsvp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-card {
  width: 100%;
  padding: 1.2rem;
}

.form-card h1 {
  max-width: none;
  font-size: 2.05rem;
}

.note {
  color: var(--ink-soft);
}

.rsvp-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.form-actions {
  display: grid;
  gap: 0.7rem;
}

label {
  font-weight: 800;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.82rem 0.9rem;
  font: inherit;
  color: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(12, 139, 160, 0.18);
  border-color: var(--pool);
}

.form-message {
  min-height: 1.35rem;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.form-message.is-error {
  color: var(--error);
}

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

.success-card {
  margin-top: 1.2rem;
  border-radius: 8px;
  padding: 1rem;
  background: #edf8f2;
  border: 1px solid rgba(25, 122, 87, 0.24);
}

.success-card h2 {
  font-size: 1.35rem;
}

.page {
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  min-height: 100vh;
  align-items: center;
}

.page-neutral {
  width: min(100%, 34rem);
}

.card {
  width: 100%;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.neutral-card h1 {
  max-width: none;
  font-size: 2rem;
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(12, 139, 160, 0.08), rgba(31, 91, 67, 0.12)),
    var(--paper);
}

.admin-page {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 1rem;
}

.admin-header {
  padding: 2rem 0 1.2rem;
}

.admin-header h1 {
  max-width: none;
  font-size: 2.6rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.rsvp-entry,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 12px 28px rgba(13, 43, 37, 0.08);
}

.rsvp-entry {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.rsvp-entry h2 {
  font-size: 1.25rem;
}

.rsvp-entry p {
  margin: 0.2rem 0 0;
}

.entry-note {
  color: var(--ink-soft);
}

.rsvp-entry time {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.attendee-entry {
  gap: 0;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 21, 18, 0.05) 0%, rgba(7, 21, 18, 0.2) 38%, rgba(7, 21, 18, 0.86) 76%),
      linear-gradient(90deg, rgba(7, 21, 18, 0.32), rgba(7, 21, 18, 0.08) 68%);
  }
}

@media (min-width: 760px) {
  .invite-hero {
    min-height: 94svh;
    padding: 2rem;
    align-items: center;
  }

  .hero-content {
    padding-left: 1rem;
    padding-top: 0;
  }

  h1 {
    font-size: 4.85rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1.16rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 45rem;
  }

  .hero-cta {
    width: auto;
    min-width: 13rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .form-actions {
    grid-template-columns: 1fr 1fr;
  }

  .section-band {
    padding: 4.5rem 2rem;
  }

  .content-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .memory-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .rsvp-page {
    padding: 2rem;
  }

  .rsvp-shell {
    grid-template-columns: 1fr 0.9fr;
  }

  .rsvp-art {
    min-height: 38rem;
  }

  .form-card {
    padding: 2rem;
    align-self: center;
  }
}

@media (min-width: 1180px) {
  .hero-content {
    margin-left: calc((100vw - 68rem) / 2);
  }
}
