/* pages.css — page layouts for the live site (Direction A · The Pressed Invitation).
   Builds on tokens.css + site.css. */

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 64px);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4.5vw, 60px); align-items: center;
}
.hero-cloud { position: absolute; pointer-events: none; }

.art-card-wrap { position: relative; display: grid; place-items: center; }
.art-card {
  background: #fff; padding: clamp(10px, 1.2vw, 14px); border-radius: var(--r-sm);
  box-shadow: var(--shadow-art); transform: rotate(-1.6deg);
  border: 1px solid rgba(74, 33, 58, 0.06);
}
.art-card img { display: block; width: 100%; border-radius: 4px; }
.art-card-wrap .float-heart { position: absolute; top: -12px; left: 2px; transform: rotate(-12deg); z-index: 2; }
.art-card-wrap .float-flower { position: absolute; bottom: -14px; right: 16px; transform: rotate(14deg); z-index: 2; }

.hero-names {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  line-height: 0.98; letter-spacing: -0.01em; margin: 4px 0 0;
  font-size: clamp(46px, 5.6vw, 78px);
}
.hero-names .amp { font-family: var(--font-script); font-weight: 600; color: var(--rose-deep); font-size: 0.84em; }
.hero-sub { margin: 14px 0 0; font-size: 12.5px; color: var(--green-deep); }
.hero-intro { margin: 20px 0 0; font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.62; color: var(--ink-soft); font-weight: 500; max-width: 520px; }

.chip-row { display: flex; gap: clamp(18px, 2.4vw, 30px); margin-top: 24px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 11px; }
.chip .ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: var(--edge); box-shadow: var(--shadow-sm); color: var(--magenta); font-size: 18px;
}
.chip .tx { display: flex; flex-direction: column; gap: 2px; }
.chip .tx .t { font-size: 10.5px; color: var(--ink-faint); line-height: 1; }
.chip .tx .b { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1; }

.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .chip-row, .cta-row { justify-content: center; }
  .art-card { max-width: 320px; }
}

/* ---------------- Events band ---------------- */
.events-band {
  background: var(--cream); border-top: 1.5px solid rgba(74, 33, 58, 0.10);
  border-bottom: 1.5px solid rgba(74, 33, 58, 0.10);
  padding: 26px 0;
}
.events-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.eb-item { display: flex; align-items: center; gap: 16px; }
.eb-item + .eb-item { border-left: 1.5px solid rgba(74, 33, 58, 0.12); padding-left: 28px; }
.eb-day { text-align: center; line-height: 0.9; }
.eb-day .d { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--magenta); }
.eb-day .m { font-size: 9.5px; color: var(--ink-faint); }
.eb-info { display: flex; flex-direction: column; gap: 3px; }
.eb-info .n { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.eb-info .w { font-weight: 600; font-size: 13px; color: var(--ink-soft); line-height: 1.1; }
.eb-info .h { font-family: var(--font-script); font-size: 18px; color: var(--green-deep); line-height: 1; }
@media (max-width: 880px) {
  .events-band .wrap { grid-template-columns: 1fr; gap: 16px; }
  .eb-item + .eb-item { border-left: none; padding-left: 0; }
}

/* ---------------- Page head (inner pages) ---------------- */
.page-head { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 4vw, 44px); }
.page-head .wrap { position: relative; max-width: 760px; }
.page-head .lede { margin: 16px auto 0; max-width: 600px; font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.62; color: var(--ink-soft); font-weight: 500; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { text-align: center; margin-bottom: clamp(26px, 3.5vw, 40px); }

/* ---------------- Three days (home) ---------------- */
.days-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); align-items: start; }
.day-card { text-align: center; }
.day-card .art-card { transform: rotate(-1.2deg); }
.day-card:nth-child(2) .art-card { transform: rotate(1.4deg); }
.day-card:nth-child(3) .art-card { transform: rotate(-0.8deg); }
.day-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); margin: 18px 0 4px; }
.day-card .when { font-size: 11px; color: var(--ink-faint); margin: 0; }
.day-card .hall { font-family: var(--font-script); font-size: 21px; color: var(--green-deep); margin: 6px 0 0; }
.day-card .note { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; margin: 10px auto 0; max-width: 300px; }
@media (max-width: 880px) { .days-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ---------------- Card grids (registry / donations / collaborators) ---------------- */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); align-items: stretch; }
.gift-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin: 0 auto; gap: clamp(26px, 3vw, 40px); }
.gift-grid-2 .carousel { height: 300px; }
.gift-grid-2 .gift-card .pic { padding: 16px 16px 0; }
.gift-grid-2 .gift-card .body { padding: 22px 28px 28px; gap: 10px; }
.gift-grid-2 .gift-card h3 { font-size: 28px; }
.gift-grid-2 .gift-card p { font-size: 16px; line-height: 1.62; }
@media (max-width: 880px) { .gift-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* Photo carousel (donation cards) */
.carousel { position: relative; width: 100%; height: 210px; overflow: hidden; border-radius: 6px; }
.carousel-track { display: flex; height: 100%; transition: transform .35s ease; }
.carousel-track image-slot { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.gift-card .pic .carousel image-slot { height: 100%; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.88); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 9px rgba(43, 18, 33, 0.22); z-index: 3; transition: background .15s ease; }
.car-nav:hover { background: #fff; color: var(--magenta); }
.car-prev { left: 9px; } .car-next { right: 9px; }
.car-dots { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.car-dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 3px rgba(43, 18, 33, 0.3); cursor: pointer; transition: background .15s ease; }
.car-dot.active { background: #fff; }

.gift-card { display: flex; flex-direction: column; overflow: hidden; }
.gift-card .pic { padding: 12px 12px 0; }
.gift-card .pic image-slot { width: 100%; height: 210px; display: block; }
.gift-card .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gift-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); margin: 0; }
.gift-card p { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); font-weight: 500; }
.gift-card .foot { margin-top: auto; padding-top: 14px; }
.gift-card .tell { margin-top: 12px; }
.tell-link { border: none; background: none; padding: 0; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 14px; color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; letter-spacing: .005em; }
.tell-link:hover { color: var(--ink); }
.tell-done { font-family: var(--font-script); font-size: 18px; color: var(--magenta); line-height: 1.2; }

/* Donation modal */
.tell-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 18, 33, 0.42); backdrop-filter: blur(3px); animation: tellFade .16s ease; }
.tell-modal { position: relative; width: 100%; max-width: 384px; background: var(--paper, #fff); border: var(--edge); border-radius: 16px; padding: 30px 28px 28px; box-shadow: 0 24px 60px rgba(43, 18, 33, 0.28); animation: tellPop .18s ease; }
.tell-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 2px 6px; }
.tell-x:hover { color: var(--magenta); }
.tell-eyebrow { margin: 0; font-family: var(--font-script); font-size: 20px; color: var(--magenta); line-height: 1; }
.tell-title { margin: 4px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); }
.tell-fields { display: flex; flex-direction: column; gap: 14px; }
.tell-fields label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.tell-fields input { width: 100%; box-sizing: border-box; border: var(--edge); border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--ink); background: #fff; outline: none; }
.tell-fields input:focus { border-color: var(--magenta); }
.tell-amt { position: relative; display: flex; align-items: center; }
.tell-amt .tell-cur { position: absolute; left: 13px; font-weight: 700; font-size: 15px; color: var(--ink-soft); pointer-events: none; }
.tell-amt input { padding-left: 28px; }
.tell-fields .btn { margin-top: 6px; width: 100%; justify-content: center; }
@keyframes tellFade { from { opacity: 0; } }
@keyframes tellPop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Donate QR modal */
.donate-modal .tell-title { margin-bottom: 14px; }
.qr-wrap { width: 232px; aspect-ratio: 298 / 414; margin: 0 auto; background: #fff; border: var(--edge); border-radius: 10px; padding: 5px; box-sizing: border-box; }
.qr-wrap image-slot { width: 100%; height: 100%; display: block; }
.qr-hint { margin: 14px 0 18px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; text-align: center; text-wrap: pretty; }
.tell-thanks { text-align: center; padding: 8px 0 4px; }
.tell-heart { font-size: 40px; color: var(--magenta); line-height: 1; animation: tellPop .3s ease; }
.tell-thanks .tell-title { margin: 12px 0 6px; }
.tell-thanks .qr-hint { margin-bottom: 0; }

.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
@media (max-width: 980px) { .collab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .collab-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.collab-card { text-align: center; padding: 28px 24px 26px; }
.collab-card image-slot { width: 110px; height: 110px; margin: 0 auto; display: block; }
.collab-card .role { font-size: 10.5px; color: var(--ink-faint); margin: 16px 0 0; }
.collab-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin: 4px 0 0; }
.collab-card .note { font-family: var(--font-script); font-size: 19px; color: var(--magenta); margin: 6px 0 0; line-height: 1.25; }
.collab-card .handle { display: inline-block; font-size: 12px; font-weight: 600; color: var(--magenta); text-decoration: none; margin: 6px 0 0; letter-spacing: .01em; }
.collab-card .handle:hover { text-decoration: underline; }
.collab-card .bio { font-size: 13.5px; line-height: 1.62; color: var(--ink-soft); margin: 12px 0 0; text-wrap: pretty; }

/* ---------------- Mother Squad ---------------- */
.mother-squad { padding: clamp(10px, 3vw, 30px) 0 clamp(40px, 6vw, 72px); }
.mother-squad .wrap { max-width: 1040px; }
.ms-card { background: #fff; border: var(--edge); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ms-figure { margin: 0; background: #fffdfa; border-bottom: var(--edge); }
.ms-figure img { display: block; width: 100%; height: auto; }
.ms-body { padding: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 56px) clamp(28px, 3.8vw, 44px); text-align: center; }
.ms-body .role { font-size: 11px; color: var(--ink-faint); margin: 0; }
.ms-title { font-family: var(--font-script); font-weight: 600; color: var(--magenta); font-size: clamp(38px, 5vw, 60px); line-height: 1; margin: 6px 0 0; }
.ms-text { max-width: 680px; margin: 18px auto 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.66; color: var(--ink-soft); font-weight: 500; text-wrap: pretty; }
.ms-text strong { color: var(--magenta); font-weight: 800; letter-spacing: .01em; }
.ms-caption { max-width: 620px; margin: 16px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); font-weight: 600; font-style: italic; }

/* ---------------- Closing strip ---------------- */
.closing { text-align: center; padding: clamp(36px, 5vw, 60px) 0; }
.closing .big-script { font-family: var(--font-script); font-weight: 600; color: var(--magenta); font-size: clamp(34px, 4.4vw, 52px); margin: 0; line-height: 1.1; }
.closing .sub { margin: 10px 0 0; color: var(--ink-soft); font-weight: 500; font-size: 15px; }

/* ---------------- Registry items ---------------- */
.reg-cat { margin-top: clamp(30px, 4vw, 48px); }
.reg-cat:first-child { margin-top: 0; }
.cat-title {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(25px, 2.8vw, 32px); margin: 0;
  display: flex; align-items: center; gap: 16px;
}
.cat-title::after { content: ""; flex: 1; height: 1.5px; background: rgba(74, 33, 58, 0.12); border-radius: 1px; }
.sub-label { font-size: 11px; color: var(--ink-faint); margin: 22px 0 0; }

.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.reg-card { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; transition: background 0.2s; }
.reg-card .emo { font-size: 26px; line-height: 1; margin-bottom: 2px; }
.reg-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0; line-height: 1.15; }
.reg-card .d { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); font-weight: 500; }
.reg-card .see { font-weight: 800; font-size: 13px; color: var(--magenta); text-decoration: none; }
.reg-card .see:hover { text-decoration: underline; }
.reg-card .see-placeholder { color: var(--ink-faint); font-weight: 700; border-bottom: 1.5px dashed rgba(74, 33, 58, 0.25); align-self: flex-start; }
.reg-card .see-placeholder:hover { color: var(--magenta); border-bottom-color: var(--magenta); text-decoration: none; }
.reg-card .reserve { margin-top: auto; padding-top: 14px; }
.reg-card.reserved { background: var(--cream); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.rsv-form { display: flex; gap: 8px; }
.rsv-form input {
  flex: 1; min-width: 0; border: var(--edge); border-radius: 999px; padding: 9px 14px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--ink); background: #fff; outline: none;
}
.rsv-form input:focus { border-color: var(--magenta); }
.claimed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.claimed .nm { font-family: var(--font-script); font-weight: 600; font-size: 19px; color: var(--magenta); line-height: 1.1; }
.claimed .undo { border: none; background: none; font-family: var(--font-body); font-size: 11px; color: var(--ink-faint); cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------------- Sprig divider ---------------- */
.sprig { display: flex; align-items: center; justify-content: center; gap: 12px; }
