/* RSVP flow (Framer component "RSVP flow"). Desktop values are Framer's; tablet and phone are a first pass. */
body.rf { background: var(--color-cream); }
[hidden] { display: none !important; }

/* Shared bits */
.rf-link {
  display: inline-block; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none;
  color: var(--color-deep-olive); text-decoration: none; cursor: pointer;
}
.rf-link--light { color: var(--color-cream); }
.rf-link--ecru { color: var(--color-ecru); }
.rf-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 0; cursor: pointer; }
.rf-btn--dark { background: var(--color-black); color: var(--color-cream); }
.rf-btn--dark:hover { background: color-mix(in srgb, var(--color-black) 85%, white); }
.rf-btn--outline { height: 48px; padding: 0 22px; background: none; border: 1.5px solid var(--color-ecru); color: var(--color-ecru); }
.rf-btn:disabled { opacity: .6; cursor: progress; }
.rf-amp { font-family: var(--font-poetry-night); }

/* ───────── Find ───────── */
.rf-find { min-height: 100vh; min-height: 100svh; padding: 80px 48px 96px;   /* the content keeps its spot under the site navbar (css/nav.css) */
  color: var(--color-cream); }
.rf-find__content { padding-top: 110px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
/* Bea, 24 Nov: the Josh & Bea logo is inside the card, first thing in it, at the size it had in the navbar on this
   screen (the 394 × 332 glyph frame at .3 / .36 / .4). The navbar is hidden on this screen so there's one logo. The
   label above the search box is the style guide's Section style (like "Entourage" on the home page). */
body.rf[data-screen="find"] .site-nav--rsvp { visibility: hidden; }
.rf-find__logo { --s: .3; position: relative; display: block; flex: none; order: -2; color: var(--color-cream);
  width: calc(394.25px * var(--s)); height: calc(332px * var(--s)); }
.rf-find__mark { position: absolute; left: 0; top: 0; width: 394.25px; height: 332px; transform-origin: 0 0; scale: var(--s); }
@media (min-width: 810px) { .rf-find__logo { --s: .36; } }
@media (min-width: 1200px) { .rf-find__logo { --s: .4; } }
/* Title and help line (Bea, 24 Nov): together in .rf-find__head. Phone: above the photo, 2px apart. Tablet and
   desktop: the photo comes first and they keep 12px between them. The whole block sits 24px higher than the
   middle of the screen, so the photo moves up without opening gaps around it. */
.rf-find__head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rf-find__head .rf-search__label, .rf-find__head .rf-search__help { margin: 0; text-align: center; }
/* The card (Thanks screen's .rf-panel) holds the logo, photo, title and search, in the middle of the screen */
.rf-panel.rf-find__panel { padding: 40px 44px 48px; }
.rf-find__panel .rf-search { width: 100%; }
.rf-find__panel .rf-results { text-align: left; }   /* the card centres its text; the results list stays left-aligned */
.rf-find__head .rf-search__label { color: var(--color-ecru); }
.rf-find__panel { margin-inline: auto; }
@media (max-width: 809px) {
  .rf-panel.rf-find__panel { padding: 40px 16px 36px; }
}
@media (min-width: 810px) {
  .rf-bino { order: -1; }
  .rf-find__head { gap: 12px; margin-bottom: -4px; }
}

/* Binoculars with the "rsvp op" photo (Bea, 24 Nov). The dress code's binoculars (css/home.css .att__binoculars,
   784 × 418) redrawn in percentages so they scale with their width: two 418px rings cut where they meet, two
   400px lenses, a bridge between. The photo is one picture across both lenses. */
.rf-bino { position: relative; flex: none; width: min(100%, 340px); aspect-ratio: 784 / 418; margin-bottom: 8px; }
@media (min-width: 810px) { .rf-bino { width: 420px; } }
@media (min-width: 1200px) { .rf-bino { width: 460px; } }
.rf-bino__ring { position: absolute; top: 0; width: 50%; height: 100%; overflow: clip; }
.rf-bino__ring--left { left: 0; }
.rf-bino__ring--right { left: 50%; }
.rf-bino__ring > span { position: absolute; top: 0; width: 106.63%; height: 100%; border: 2px solid var(--color-ecru); border-radius: 50%; }
.rf-bino__ring--left > span { left: 0; }
.rf-bino__ring--right > span { left: -6.63%; }
.rf-bino__lens { position: absolute; top: 2.153%; width: 48.85%; height: 95.69%; overflow: clip; }
.rf-bino__lens--left { left: 1.148%; }
.rf-bino__lens--right { left: 50%; }
.rf-bino__circle { position: absolute; top: 0; left: 0; width: 104.44%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--color-charcoal); }
.rf-bino__lens--right .rf-bino__circle { left: -4.44%; }
/* One photo across both lenses, zoomed in so Josh fills the left lens and Bea the right (Bea, 24 Nov). The two lens
   centres are 366 units apart and their faces are 26.7% of the photo's width apart, so the photo is 1372 units wide
   (343% of a lens), with Josh's face on the left lens's centre and Bea's on the right's. In colour. */
.rf-bino__circle img { position: absolute; top: -27%; left: -92.9%; width: 343%; height: auto; max-width: none; }
.rf-bino__lens--right .rf-bino__circle img { left: -184.4%; }
.rf-bino__bridge { position: absolute; left: 49.81%; top: 30.22%; width: 3px; height: 39.57%; background: var(--color-ecru); }
.rf-results__searching { margin: 0; padding: 16px; }
.rf-search .rf-input { flex: none; width: 100%; }   /* the form is a column: flex: 1 would squash it */
/* Tablet and desktop: the search block sits in the middle of the screen, like on the phone */
@media (min-width: 810px) {
  /* Tablet and desktop (Bea, 24 Nov): the card starts near the top, so the logo is near the top and the page isn't bottom-heavy */
  .rf-find { display: flex; flex-direction: column; justify-content: flex-start; padding: 24px 48px 64px; }
  .rf-panel.rf-find__panel { padding-top: 32px; }
  .rf-find__content { padding-top: 0; }
  .rf-search__help { text-align: center; }
}
.rf-search { width: min(520px, 100%); display: flex; flex-direction: column; gap: 8px; }
.rf-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--color-deep-olive); border-radius: 0;
  background: var(--color-cream); color: var(--color-black);
  font-family: var(--font-greenstone); font-size: var(--type-default-size);
}
.rf-input::placeholder { color: var(--color-taupe); }
.rf-search__help { margin: 2px 0 0; }
.rf-results { margin-top: 12px; border: 1px solid var(--color-black); background: var(--color-cream); color: var(--color-black); }
/* Results drop down over the page instead of taking space, so nothing above them moves when they show
   (Bea, 24 Nov: the logo, photo and title were nudged up as the centred block grew) */
.rf-search { position: relative; }
.rf-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 3; }
.rf-results__head { margin: 0; padding: 12px 16px; color: var(--color-charcoal); border-bottom: 1px solid rgba(30, 28, 26, .15); }
.rf-results__list { list-style: none; margin: 0; padding: 0; }
.rf-results__item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; border: 0;
  border-bottom: 1px solid rgba(30, 28, 26, .15); background: none; cursor: pointer; text-align: left;
  font-family: var(--font-greenstone); font-size: var(--type-default-size); color: inherit;
}
.rf-results__item:hover { background: color-mix(in srgb, var(--color-lime) 25%, transparent); }
.rf-results__item svg { width: 14px; height: 14px; }
.rf-results__foot { margin: 0; padding: 12px 16px; color: var(--color-charcoal); }
.rf-results__empty { padding: 16px; }
.rf-results__empty p { margin: 0; }
.rf-results__miss { font-family: var(--font-greenstone); font-size: var(--type-default-size); margin-bottom: 4px !important; }

/* ───────── Reply: invite on the left, form on the right ───────── */
.rf-reply { display: grid; grid-template-columns: 600px 1fr; min-height: 100vh; }
.rf-invite {
  position: relative; padding: var(--nav-h) 56px 48px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--color-black) url("../assets/img/rsvp/invite-bg.jpg") center / cover no-repeat;
  align-self: start; position: sticky; top: 0; min-height: 100vh;
}
.rf-invite > .rf-link { align-self: flex-start; }
/* The card is Framer's 616 × 616 volvelle cover; it's scaled to fit on smaller screens (--card-s) */
.rf-card-fit { width: calc(616px * var(--card-s, 1)); height: calc(616px * var(--card-s, 1)); flex: none; }
.rf-card { position: relative; width: 616px; height: 616px; transform-origin: 0 0; scale: var(--card-s, 1); color: var(--color-black); }
.rf-card > * { position: absolute; margin: 0; }
.rf-card__paper { inset: 0; width: 616px; height: 616px; }
/* Invite card = artwork drawn at 616px and scaled as a whole; its own sizes are multiples of 4 (Bea, 23 Nov) */
.rf-card__dear { left: 71px; top: 64px; font-family: var(--font-greenstone); font-size: 32px; line-height: 1.2; }
.rf-card__together, .rf-card__request, .rf-card__itinerary { font-family: var(--font-greenstone); font-size: 20px; line-height: 1.3; }
.rf-card__together { left: 66px; top: 104px; width: 180px; text-align: center; font-size: 20px; }
.rf-card__request { left: 46px; top: 264px; width: 230px; text-align: center; font-size: 20px; }
.rf-card__itinerary { left: 270px; top: 500px; width: 300px; font-size: 20px; }
.rf-card__name {
  font-family: var(--font-poetry-night); font-size: 64px; line-height: 1.32; color: var(--color-indigo); white-space: nowrap;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
}
.rf-card__name span { font-size: 48px; }
.rf-card__name--1 { left: 30px; top: 128px; }
.rf-card__name--2 { right: 48px; top: 184px; }
.rf-card__shell { left: 337px; top: 78px; width: 106px; height: 96px; object-fit: cover; }
.rf-card__caps { left: 454px; top: 81px; width: 74px; text-align: center; font-family: var(--font-redward-mono); font-size: 12px; line-height: 1; color: var(--color-magenta); }
/* Lower half (Bea, 23 Nov, from her screenshot): Inara on the left, the details box to its right with "in the
   afternoon" tucked beside the time on one line, and the itinerary note under the box, never overlapping it */
.rf-card__inara { left: 92px; top: 368px; width: 129px; height: 180px; object-fit: cover; }
.rf-card__details { left: 270px; top: 343px; width: 240px; padding: 18px 16px 18px 16px; background: var(--color-off-white); display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px rgba(30, 28, 26, .08); }
.rf-card__details p { margin: 0; }
.rf-mono { font-family: var(--font-redward-mono); font-size: 16px; font-weight: 800; font-variation-settings: "wght" 800, "slnt" 0; letter-spacing: .08em; }
.rf-card__time { font-family: var(--font-greenstone); font-size: 24px; line-height: 1.2; white-space: nowrap; display: flex; align-items: flex-start; gap: 5px; }
.rf-card__time small { display: inline-block; font-size: 12px; line-height: 1; padding-top: 3px; }

.rf-form-panel { padding: calc(var(--nav-h) + 24px) 48px 96px 40px; background: var(--color-chocolate); color: var(--color-cream); }
.rf-form { display: flex; flex-direction: column; gap: 32px; }
.rf-form__title { margin: 0; font-family: var(--font-greenstone); font-style: italic; font-weight: 400; font-size: var(--type-poem-size); line-height: 1.1; }
.rf-form__replied { margin: -20px 0 0; color: var(--color-sand); }
.rf-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; }
.rf-group__title {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 6px;
  font-family: var(--font-greenstone); font-style: italic; font-size: var(--type-title-size); color: var(--color-cream);   /* Title */
}
.rf-group__aside { font-style: normal; color: var(--color-sand); }
.rf-check {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px;
  border-bottom: 1px solid rgba(220, 195, 165, .14); cursor: pointer;
}
.rf-check input { position: absolute; opacity: 0; pointer-events: none; }
.rf-check__box { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--color-sand); border-radius: 3px; display: grid; place-items: center; }
.rf-check input:checked + .rf-check__box { background: var(--color-sand); }
.rf-check input:checked + .rf-check__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--color-chocolate); border-bottom: 2px solid var(--color-chocolate); rotate: -45deg; translate: 0 -1px; }
.rf-check input:focus-visible + .rf-check__box { outline: 2px solid var(--color-cream); outline-offset: 2px; }
.rf-check__label { flex: 1; font-family: var(--font-greenstone); font-size: var(--type-default-size); line-height: var(--type-default-lh); }   /* Default */
.rf-check__when { font-family: var(--font-favorit); font-size: var(--type-eyebrow-size); font-weight: 500; letter-spacing: var(--type-eyebrow-ls);   /* Eyebrow */ text-transform: uppercase; color: var(--color-sand); white-space: nowrap; }
.rf-check--regrets { margin-top: 14px; border-top: 0; }
.rf-field { display: flex; align-items: flex-end; gap: 14px; padding-top: 6px; }
.rf-field__label {
  flex: none; width: 132px; padding-bottom: 14px; margin: 0;
  font-family: var(--font-favorit); font-size: var(--type-eyebrow-size); font-weight: 500; letter-spacing: var(--type-eyebrow-ls); text-transform: uppercase; color: var(--color-sand);   /* Eyebrow */
}
.rf-line {
  flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; border-bottom: 1px solid rgba(220, 195, 165, .45); border-radius: 0;
  background: none; color: var(--color-cream); font-family: var(--font-greenstone); font-style: italic; font-size: var(--type-input-size);   /* Input */
  color-scheme: dark;
}
.rf-line::placeholder { color: rgba(247, 239, 216, .55); }
.rf-line--time { flex: 0 0 128px; }
.rf-line.is-invalid { border-bottom-color: var(--color-brick); }
.rf-error { margin: 8px 0 0; color: #FF8A73; }
.rf-after { padding-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.rf-after .rf-field__label { width: auto; padding: 0; }
.rf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-pill { position: relative; cursor: pointer; }
.rf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.rf-pill span {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border: 1px solid rgba(220, 195, 165, .45); border-radius: 999px; font-family: var(--font-greenstone); font-style: italic; font-size: var(--type-choice-size);   /* Choice */
}
.rf-pill span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--color-sand); border-radius: 50%; }
.rf-pill input:checked + span { border-color: var(--color-sand); background: rgba(220, 195, 165, .12); }
.rf-pill input:checked + span::before { background: var(--color-sand); box-shadow: inset 0 0 0 3px var(--color-chocolate); }
.rf-pill input:focus-visible + span { outline: 2px solid var(--color-cream); outline-offset: 2px; }
.rf-note { margin: 0; color: var(--color-sand); }
.rf-message { padding-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.rf-message .rf-field__label { padding: 0; }
.rf-box {
  min-height: 128px; padding: 14px; resize: vertical; border: 1px solid rgba(220, 195, 165, .45); border-radius: 0; background: none;
  color: var(--color-cream); font-family: var(--font-greenstone); font-style: italic; font-size: var(--type-input-size);   /* Input */
}
.rf-box::placeholder { color: rgba(247, 239, 216, .55); }
.rf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-submit { padding-top: 24px; border-top: 1px solid rgba(247, 239, 216, .2); }
.rf-submit .rf-btn { height: 54px; padding: 0 34px; }

/* ───────── Thanks ───────── */
.rf-thanks {
  min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 24px) 16px 48px; display: grid; place-items: center;
}
/* Find and Thanks share this background (Bea, 24 Nov) */
.rf-find, .rf-thanks {
  background-color: var(--color-dark-olive);
  /* Rivet grid (Framer "Rivet grid"): panel seams with a small rivet pair at each crossing */
  background-image:
    radial-gradient(circle, rgba(28, 22, 8, .55) 1.4px, transparent 1.6px),
    linear-gradient(rgba(28, 22, 8, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 22, 8, .35) 1px, transparent 1px);
  background-size: 133px 54px, 133px 54px, 133px 54px;
  background-position: 66px 0, 0 0, 0 0;
}
/* Find (Bea, 24 Nov): the grid is fixed to the window, so scrolling down a long list of search results never
   uncovers the page's cream or cuts the grid off. The page itself is Dark olive on this screen. */
body.rf[data-screen="find"] { background: var(--color-dark-olive); }
.rf-find { background: none; }
.rf-find::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--color-dark-olive);
  background-image:
    radial-gradient(circle, rgba(28, 22, 8, .55) 1.4px, transparent 1.6px),
    linear-gradient(rgba(28, 22, 8, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 22, 8, .35) 1px, transparent 1px);
  background-size: 133px 54px, 133px 54px, 133px 54px;
  background-position: 66px 0, 0 0, 0 0;
}
.rf-panel { position: relative; width: min(620px, 100%); padding: 64px 56px 56px; border: 1px solid rgba(28, 22, 8, .45); background: var(--color-dark-olive); text-align: center; }
.rf-rivet { position: absolute; width: 9px; height: 9px; background: var(--color-deep-olive); }
.rf-rivet:nth-child(1) { left: 8px; top: 8px; } .rf-rivet:nth-child(2) { right: 8px; top: 8px; }
.rf-rivet:nth-child(3) { left: 8px; bottom: 8px; } .rf-rivet:nth-child(4) { right: 8px; bottom: 8px; }
.rf-thanks__title { margin: 0; font-family: var(--font-poetry-night); font-weight: 400; font-size: var(--type-xl-size); line-height: 1; color: var(--color-ecru); font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; }
.rf-thanks__message { margin: 0; padding-top: 18px; color: var(--color-cream); }
.rf-thanks__actions { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 28px; }

/* ───────── Tablet and phone: invite on top, form below ───────── */
@media (max-width: 1199px) {
  .rf-reply { grid-template-columns: minmax(0, 1fr); }
  .rf-invite { position: relative; min-height: 0; padding: var(--nav-h) 24px 32px; }
  .rf-form-panel { padding: 48px 32px 72px; }
}
@media (max-width: 809px) {
  .rf-find { padding: 68px 20px 72px; }
  .rf-find__content { padding-top: 72px; }
  .rf-form-panel { padding: 40px 20px 64px; }
  .rf-field { flex-wrap: wrap; gap: 0 12px; }
  .rf-field__label { width: 100%; padding: 8px 0 0; }
  .rf-line--time { flex-basis: 110px; }
  .rf-check__when { display: block; width: 100%; padding-left: 32px; margin-top: -10px; padding-bottom: 10px; }
  .rf-check { flex-wrap: wrap; }
  .rf-panel { padding: 48px 24px 40px; }
  .rf-thanks__actions { flex-direction: column; gap: 16px; }
}

/* ───────── Phone reply (Bea, 23 Nov) ─────────
   The invite fills 70% of the window, the card almost edge to edge (8px each side, js/rsvp.js), "Not your invite?"
   under it, and "RSVP by December 2026 ↓" at the foot takes you down to the form (which then drops its own title) */
.rf-to-form { display: none; }
@media (max-width: 809px) {
  .rf-invite { min-height: 70vh; min-height: 70svh; padding: calc(var(--nav-h) + 8px) 0 24px; gap: 16px; justify-content: center; overflow-x: clip; }
  .rf-invite > .rf-link { align-self: center; }
  .rf-to-form {
    display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 20px;
    border: 1px solid currentColor; color: var(--color-cream); text-decoration: none;
    font-family: var(--font-redward-mono); font-size: var(--type-red-eye-thick-size); letter-spacing: .1em; text-transform: uppercase;
    font-weight: 800; font-variation-settings: "wght" 800, "slnt" 0; line-height: 1;
  }
  .rf-to-form svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: rf-nudge 1.6s var(--ease-swing) infinite; }
  @keyframes rf-nudge { 50% { translate: 0 3px; } }
  .rf-form__title { display: none; }
  .rf-form-panel { padding: 40px 20px 72px; scroll-margin-top: 0; }
  .rf-form { gap: 40px; }
  .rf-group__title { flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; }
  .rf-field { padding-top: 12px; }
  .rf-check { padding-block: 12px; }
  .rf-pills { gap: 8px; }
  .rf-submit .rf-btn { width: 100%; }
}
/* Find, phone (Bea, 23 Nov: it looked broken). The input had collapsed to 26px (flex: 1 in a column), and RSVP ran
   off the right edge. Now: the title fits, the search block sits a little above the middle, full-size controls */
@media (max-width: 809px) {
  .rf-find { display: flex; flex-direction: column; justify-content: center; padding: 24px 16px 48px; }
  .rf-find__content { padding-top: 0; gap: 32px; }
  .rf-search { gap: 12px; }
  .rf-search__label { text-align: center; }
  .rf-input { flex: none; width: 100%; height: 56px; }
  .rf-search__help { text-align: center; }
}
/* RSVP pages (Bea, 23 Nov): the navbar is just the Josh & Bea logo, centred. In the two-panel reply view (desktop)
   the logo goes upper left and "RSVP by December 2026" upper right, in the navbar's Redward style (like "Menu"),
   replacing the form's own title */
.site-nav--rsvp .nav__note { display: none; margin: 0; grid-area: right; justify-self: end;
  font-family: var(--font-redward-mono); font-size: var(--type-nav-size); line-height: 1; font-weight: 503; font-variation-settings: "wght" 503, "slnt" 0; }   /* Nav */
@media (min-width: 1200px) {
  body.rf[data-screen="reply"] .site-nav--rsvp .nav__brand { grid-area: left; justify-self: start; }
  body.rf[data-screen="reply"] .site-nav--rsvp .nav__note { display: block; }
  body.rf[data-screen="reply"] .rf-form__title { display: none; }
}
