/* Cupcake party — single-screen homepage */

:root {
  --ink: #111;
  --card-bg: #fff;
  --accent: #c2185b;
  --accent-soft: #fce4ec;
  --radius: 14px;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.45;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  position: relative;
}

.sprinkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("assets/sprinkles/confetti-dots.svg"),
    url("assets/sprinkles/scattered.svg");
  background-size: 200px 156px, 320px 240px;
  background-position: 0 0, 40px 80px;
  background-repeat: repeat;
}

/* Loose confetti — individual cupcakes, not a repeating tile */
.cupcake-scatter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cupcake-scatter img {
  position: absolute;
  width: auto;
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.07));
  transform: translate(-50%, -50%);
}

.cupcake-scatter img:nth-child(1) {
  left: 4%;
  top: 18%;
  width: 38px;
  transform: translate(-50%, -50%) rotate(-22deg);
}
.cupcake-scatter img:nth-child(2) {
  left: 14%;
  top: 72%;
  width: 56px;
  transform: translate(-50%, -50%) rotate(31deg);
}
.cupcake-scatter img:nth-child(3) {
  left: 88%;
  top: 22%;
  width: 48px;
  transform: translate(-50%, -50%) rotate(14deg);
}
.cupcake-scatter img:nth-child(4) {
  left: 78%;
  top: 68%;
  width: 62px;
  transform: translate(-50%, -50%) rotate(-35deg);
}
.cupcake-scatter img:nth-child(5) {
  left: 52%;
  top: 8%;
  width: 44px;
  transform: translate(-50%, -50%) rotate(8deg);
}
.cupcake-scatter img:nth-child(6) {
  left: 6%;
  top: 48%;
  width: 50px;
  transform: translate(-50%, -50%) rotate(-16deg);
}
.cupcake-scatter img:nth-child(7) {
  left: 96%;
  top: 45%;
  width: 58px;
  transform: translate(-50%, -50%) rotate(27deg);
}
.cupcake-scatter img:nth-child(8) {
  left: 24%;
  top: 12%;
  width: 34px;
  transform: translate(-50%, -50%) rotate(19deg);
}
.cupcake-scatter img:nth-child(9) {
  left: 38%;
  top: 88%;
  width: 52px;
  transform: translate(-50%, -50%) rotate(-11deg);
}
.cupcake-scatter img:nth-child(10) {
  left: 68%;
  top: 38%;
  width: 42px;
  transform: translate(-50%, -50%) rotate(-28deg);
}
.cupcake-scatter img:nth-child(11) {
  left: 44%;
  top: 52%;
  width: 64px;
  transform: translate(-50%, -50%) rotate(24deg);
}
.cupcake-scatter img:nth-child(12) {
  left: 12%;
  top: 92%;
  width: 46px;
  transform: translate(-50%, -50%) rotate(-7deg);
}
.cupcake-scatter img:nth-child(13) {
  left: 30%;
  top: 42%;
  width: 40px;
  transform: translate(-50%, -50%) rotate(33deg);
}
.cupcake-scatter img:nth-child(14) {
  left: 62%;
  top: 82%;
  width: 54px;
  transform: translate(-50%, -50%) rotate(-19deg);
}
.cupcake-scatter img:nth-child(15) {
  left: 82%;
  top: 12%;
  width: 36px;
  transform: translate(-50%, -50%) rotate(11deg);
}
.cupcake-scatter img:nth-child(16) {
  left: 18%;
  top: 30%;
  width: 48px;
  transform: translate(-50%, -50%) rotate(-40deg);
}
.cupcake-scatter img:nth-child(17) {
  left: 56%;
  top: 28%;
  width: 58px;
  transform: translate(-50%, -50%) rotate(6deg);
}
.cupcake-scatter img:nth-child(18) {
  left: 72%;
  top: 92%;
  width: 44px;
  transform: translate(-50%, -50%) rotate(-13deg);
}
.cupcake-scatter img:nth-child(19) {
  left: 92%;
  top: 78%;
  width: 52px;
  transform: translate(-50%, -50%) rotate(37deg);
}
.cupcake-scatter img:nth-child(20) {
  left: 48%;
  top: 96%;
  width: 32px;
  transform: translate(-50%, -50%) rotate(-25deg);
}
.cupcake-scatter img:nth-child(21) {
  left: 2%;
  top: 62%;
  width: 56px;
  transform: translate(-50%, -50%) rotate(18deg);
}
.cupcake-scatter img:nth-child(22) {
  left: 34%;
  top: 62%;
  width: 46px;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.site-header,
.cards,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.bunting-wrap {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto 0.75rem;
}

.header-bunting {
  display: block;
  width: 100%;
  height: auto;
}

.header-stars {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(96%, 640px);
  height: auto;
  pointer-events: none;
  margin-top: 0.12rem;
}

.title-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cupcake-deco {
  width: min(18vw, 4.5rem);
  /* Same footprint as the old right-hand icon (~612×792) */
  max-height: min(23vw, 5.85rem);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
  opacity: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}


.title-wrap {
  flex: 1 1 16rem;
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
  color: #444;
}

.party-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.75rem 0 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 1rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}

.rsvp-card {
  background: var(--card-bg);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.06);
}

.card-inner {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  font-family: system-ui, -apple-system, sans-serif;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
}

.card-when {
  margin: 0;
  font-weight: 600;
}

.card-where,
.card-note {
  margin: 0;
  font-size: 0.95rem;
}

.card-note {
  color: #333;
  flex-grow: 1;
}

.rsvp-form {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.label-text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fff;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.submit-btn {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.submit-btn:hover {
  background: #ad1457;
}

.submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 0;
  min-height: 1.25em;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

.form-status.is-ok {
  color: #1b5e20;
}

.form-status.is-warn {
  color: #b71c1c;
}

.site-footer {
  text-align: center;
  padding: 0 1rem 2rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: #444;
}

.site-footer p {
  margin: 0;
}
