:root {
  --bg: #f4ede5;
  --bg-deep: #e0c0a1;
  --ink: #261710;
  --ink-soft: rgba(38, 23, 16, 0.74);
  --accent: #8b4a2c;
  --accent-2: #6b7c60;
  --line: rgba(92, 57, 37, 0.18);
  --paper: rgba(255, 250, 244, 0.86);
  --paper-strong: #fff9f3;
  --shadow: 0 24px 80px rgba(59, 31, 18, 0.14);
  --photo-position: center 22%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 243, 226, 0.95), transparent 28%),
    radial-gradient(circle at right 12%, rgba(188, 108, 63, 0.2), transparent 26%),
    linear-gradient(180deg, #f8f0e7 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.invite {
  position: relative;
  overflow: clip;
}

.poster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  min-height: 100svh;
  padding: clamp(1rem, 2vw, 1.6rem);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.poster__media,
.poster__panel {
  min-height: 0;
}

.photo-frame {
  position: relative;
  height: 100%;
  min-height: calc(100svh - clamp(2rem, 4vw, 3.2rem));
  margin: 0;
  overflow: hidden;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.94), rgba(227, 196, 166, 0.92));
}

.photo-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position);
  filter: saturate(0.94) contrast(1.04);
}

.photo-frame__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 17, 12, 0.06), transparent 28%, transparent 68%, rgba(28, 17, 12, 0.26)),
    linear-gradient(90deg, rgba(245, 230, 213, 0.12), transparent 32%, transparent 70%, rgba(38, 23, 16, 0.12));
}

.photo-frame__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 14rem;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.92);
  background: rgba(38, 23, 16, 0.36);
  backdrop-filter: blur(10px);
}

.poster__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin: clamp(2rem, 6vw, 4rem) 0;
  border-radius: 1.6rem;
  border: 1px solid rgba(119, 74, 47, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.9), rgba(255, 246, 237, 0.82)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.poster__panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(139, 74, 44, 0.1);
  border-radius: 1rem;
  pointer-events: none;
}

.eyebrow,
.info-band__label,
.fact-row dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.poster__intro,
.poster__lede,
.fact-row dd,
.details__lead p,
.info-band p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.poster__intro {
  max-width: 24rem;
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

#invite-title,
.details h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-wrap: balance;
}

#invite-title {
  margin-top: 0.8rem;
  font-size: clamp(4rem, 9vw, 7rem);
}

.poster__lede {
  max-width: 27rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.poster__facts {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.fact-row:last-child {
  border-bottom: 1px solid var(--line);
}

.fact-row dd {
  display: grid;
  gap: 0.1rem;
}

.poster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 2px solid rgba(139, 74, 44, 0.22);
  outline-offset: 3px;
}

.button--primary {
  background: var(--ink);
  color: #fff8f0;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #1f130d;
}

.button--secondary,
.button--ghost {
  background: rgba(255, 251, 247, 0.6);
  border-color: rgba(100, 63, 39, 0.14);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 251, 247, 0.94);
}

.details {
  padding: clamp(1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.6rem) 4rem;
}

.details__lead {
  width: min(100%, 40rem);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 2vw, 1.8rem) 0;
}

.details h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
}

#details-note {
  margin-top: 1rem;
  max-width: 34rem;
}

.venue-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}

.venue-spotlight__copy,
.venue-spotlight__media {
  min-height: 0;
}

.venue-spotlight__copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(119, 74, 47, 0.12);
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(244, 233, 221, 0.88)),
    var(--paper-strong);
  box-shadow: var(--shadow);
}

.venue-spotlight__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.venue-spotlight__body,
.venue-spotlight__meta {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.venue-spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.venue-spotlight__meta a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.venue-spotlight__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  min-height: 18rem;
}

.venue-spotlight__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details__bands {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  box-shadow: var(--shadow);
}

.invite-footer {
  padding: 2rem 0 1.6rem;
  text-align: center;
}

.invite-footer p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(38, 23, 16, 0.5);
}

.info-band {
  display: grid;
  gap: 0.85rem;
  padding: 1.45rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(244, 233, 221, 0.88)),
    var(--paper-strong);
}

.info-band__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.info-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(119, 74, 47, 0.14);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 250, 244, 0.92);
}

.info-band__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.info-band p {
  font-size: 1rem;
}

.info-band a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.invite--no-photo .photo-frame {
  display: grid;
  place-items: end start;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(171, 103, 63, 0.38), transparent 22%),
    radial-gradient(circle at 16% 84%, rgba(96, 120, 84, 0.3), transparent 24%),
    linear-gradient(160deg, #f5e6d3, #cda47d);
}

.invite--no-photo .photo-frame__image,
.invite--no-photo .photo-frame__caption {
  display: none;
}

.invite--no-photo .photo-frame::after {
  content: "Autumn & Grayson";
  width: min(18rem, 90%);
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(38, 23, 16, 0.7);
  background: rgba(255, 250, 244, 0.62);
  backdrop-filter: blur(10px);
}

@media (max-width: 920px) {
  .poster {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
    padding: 0;
  }

  .photo-frame {
    min-height: 63svh;
    border-radius: 0 0 1.8rem 1.8rem;
  }

  .poster__panel {
    width: min(100% - 1.5rem, 42rem);
    margin: -3.4rem auto 0;
    padding: 1.35rem;
    border-radius: 1.5rem;
  }

  .poster__panel::before {
    inset: 0.7rem;
  }

  .details {
    padding: 1.4rem 0.75rem 3rem;
  }

  .details__lead {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .venue-spotlight {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
    padding: 0 0.7rem;
  }

  .invite-footer {
    padding: 1.6rem 0 1.8rem;
  }
}

@media (max-width: 640px) {
  .photo-frame {
    min-height: 58svh;
  }

  .photo-frame__caption {
    right: 0.8rem;
    bottom: 0.8rem;
    font-size: 0.66rem;
  }

  #invite-title {
    font-size: clamp(3.25rem, 19vw, 5.2rem);
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.8rem 0;
  }

  .poster__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button--primary {
    grid-column: 1 / -1;
  }

  .button {
    min-height: 3.2rem;
    width: 100%;
  }

  .venue-spotlight__copy {
    padding: 1.2rem 1rem;
  }

  .venue-spotlight__media {
    min-height: 14rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-frame__image {
    animation: settle 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .poster__panel {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .details__lead,
  .info-band {
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .info-band:nth-child(2) {
    animation-delay: 80ms;
  }

  .info-band:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
