/* Branch: the suite laid out on a linen table, as in a stationery flat-lay. The invitation lies slightly turned with the drawn
   corners printed on it; beside it the monogram card on a colored card, loose branches between them. The countdown sits between
   the two halves of the wreath; the RSVP is another card from the set, its corners drawn like the invitation's. */
.esite-skin-branch {
  --sk-accent-font: "Cormorant Garamond", Georgia, serif;
  --sk-photo-shape: none;
  --sk-gap: 88px;
  --sk-measure: 900px;
  --sk-table: color-mix(in srgb, var(--s-band) 70%, var(--s-bg));
  --sk-lift: 0 1px 1px rgba(0, 0, 0, .06), 0 18px 34px -16px rgba(0, 0, 0, .32);
}
.esite-skin-branch .ss-h { font-size: calc(clamp(1.5rem, 2.6vw, 2.1rem) * var(--s-hscale, 1)); letter-spacing: .16em; text-transform: uppercase; }
.esite-skin-branch .cl-names, .esite-skin-branch .ss-closing-names { letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }

/* ---- hero: the flat-lay ---- */
.esite-skin-branch .ss-hero.hs-classic.no-photo { background: var(--sk-table) linear-gradient(90deg, rgba(0, 0, 0, .018) 50%, transparent 50%) 0 0 / 4px 4px; }
.esite-skin-branch .hs-classic.no-photo .cl-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 64px); width: min(1180px, 100%); min-height: 0; margin: 0 auto;
  padding: 116px clamp(24px, 4vw, 48px) 72px; background: none; overflow: visible;
}
/* loose branches on the table, under the cards */
.esite-skin-branch .hs-classic.no-photo .cl-panel::before {
  display: block; inset: 90px auto auto 2vw; width: clamp(170px, 18vw, 280px); height: clamp(290px, 31vw, 480px); z-index: 0;
  background: var(--sk-sprig-l, none) 0 0 / contain no-repeat; transform: rotate(-16deg); transform-origin: 50% 50%;
}
.esite-skin-branch .hs-classic.no-photo .cl-panel::after {
  display: block; inset: auto 4vw 40px auto; width: clamp(150px, 16vw, 240px); height: clamp(250px, 27vw, 400px); z-index: 0;
  background: var(--sk-sprig-r, none) 100% 100% / contain no-repeat; transform: rotate(34deg); transform-origin: 50% 50%;
}
/* the invitation: printed corners, a fine inner rule, slightly turned */
.esite-skin-branch .hs-classic.no-photo .cl-text {
  position: relative; z-index: 2; width: 100%; max-width: 520px; justify-self: end; padding: clamp(84px, 8vw, 110px) clamp(40px, 5vw, 64px);
  background: var(--sk-corner-tl, none) 0 0 / 30% auto no-repeat, var(--sk-corner-br, none) 100% 100% / 30% auto no-repeat, var(--s-bg);
  box-shadow: var(--sk-lift); transform: rotate(-1.6deg); text-align: center;
}
.esite-skin-branch .hs-classic.no-photo .cl-text::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--sk-line); pointer-events: none; }
.esite-skin-branch .hs-classic .cl-names { display: grid; justify-items: center; font-size: calc(clamp(1.9rem, 3.4vw, 3rem) * var(--s-hscale, 1)); line-height: 1.25; }
.esite-skin-branch .hs-classic .cl-names .cn-1, .esite-skin-branch .hs-classic .cl-names .cn-2 { justify-self: center; padding: 0 0 0 .1em; }
.esite-skin-branch .hs-classic .cl-names .cn-amp { margin: .1em 0; font-size: .9em; letter-spacing: 0; text-transform: none; }
.esite-skin-branch .cl-panel .h-kicker { font-size: 1.25rem; }
.esite-skin-branch .hs-classic .cl-sub { letter-spacing: .2em; font-size: .75rem; }
.esite-skin-branch .cl-facts b { font-family: var(--s-fhead); font-size: .9375rem; font-weight: 400; letter-spacing: .16em; }
/* beside it: the monogram card on a colored card */
.esite-skin-branch .hs-classic.no-photo .cl-visual { position: relative; z-index: 1; width: 100%; height: clamp(380px, 40vw, 560px); align-self: center; }
.esite-skin-branch .hs-classic.no-photo .cl-visual::after { display: none; }
.esite-skin-branch .hs-classic.no-photo .cl-card { width: min(300px, 70%); aspect-ratio: 5 / 7; padding: 34px 26px; border-radius: 0; box-shadow: var(--sk-lift); }
.esite-skin-branch .hs-classic.no-photo .cl-card.back {
  background: var(--sk-on-card, none) 108% -6% / 82% auto no-repeat, var(--sk-deep); transform: translate(-30%, -58%) rotate(8deg);
}
.esite-skin-branch .hs-classic.no-photo .cl-card.front {
  justify-content: flex-start; gap: 4px; padding-top: 27% !important;
  background: var(--sk-half-l, none) 14% 13% / auto 40% no-repeat, var(--sk-half-r, none) 86% 13% / auto 40% no-repeat, var(--s-bg);
  color: var(--s-text); transform: translate(-62%, -42%) rotate(-5deg);
}
.esite-skin-branch .hs-classic.no-photo .cl-mono { margin-top: -10px; font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: .04em; color: var(--s-text); }
.esite-skin-branch .hs-classic.no-photo .cl-rule { width: 44px; height: 1px; margin: 26% auto 12px; background: var(--sk-line); }
.esite-skin-branch .hs-classic.no-photo .cl-card-date { font-family: var(--s-fhead); font-size: .625rem; font-weight: 400; letter-spacing: .18em; }
.esite-skin-branch .hs-classic.no-photo .cl-card-place { font-style: italic; font-size: .875rem; opacity: .8; }
/* with a photo: the photo is a print lying on the table, a branch over its corner */
.esite-skin-branch .hs-classic:not(.no-photo):not(.hv-cover) .cl-photo, .esite-skin-branch .ss-story-img img { border-radius: 0; border: 12px solid var(--s-bg); box-shadow: var(--sk-lift); }
.esite-skin-branch .hs-classic:not(.no-photo):not(.hv-cover) .cl-photo { transform: rotate(1.6deg); }
.esite-skin-branch .hs-classic:not(.no-photo):not(.hv-cover) .cl-visual { overflow: visible; }
.esite-skin-branch .hs-classic:not(.no-photo):not(.hv-cover) .cl-visual::after { inset: -8% auto auto -10%; width: 44%; aspect-ratio: 1; z-index: 3; background: var(--sk-corner-tl, none) 0 0 / contain no-repeat; }
.esite-skin-branch .hs-classic:not(.no-photo):not(.hv-cover) .cl-panel::after { display: none; }
.esite-skin-branch .hv-cover:not(.no-photo) .cl-panel::after { display: none; }

/* ---- sections: a small branch above the headings, corners at the edges ---- */
.esite-skin-branch .ss-scope:not([data-type="hero"]):not([data-type="countdown"]):not([data-type="none"]) .ss-h::before { width: 60px; height: 90px; transform: rotate(-90deg); margin: -10px auto -6px; }
.esite-skin-branch .ss-closing::before { width: 300px; height: 120px; background: var(--sk-half-l, none) 30% 50% / auto 100% no-repeat, var(--sk-half-r, none) 70% 50% / auto 100% no-repeat; }
.esite-skin-branch .ss-scope[data-type="story"]::before, .esite-skin-branch .ss-scope[data-type="faq"]::before { width: clamp(150px, 15vw, 240px); top: 0; right: 0; }
.esite-skin-branch .ss-scope[data-type="schedule"]::before { width: clamp(150px, 15vw, 240px); bottom: 0; left: 0; }

/* ---- countdown: held between the wreath's two halves ---- */
.esite-skin-branch .ss-scope[data-type="countdown"]:has(.cdv-boxes) { background-color: var(--sk-sec-bg, var(--s-bg)); color: var(--s-text); }
.esite-skin-branch .cdv-boxes { position: relative; display: flex; flex-direction: column; align-items: center; width: min(520px, calc(100% - 2 * clamp(70px, 12vw, 150px))); margin: 0 auto; padding: 0; border: 0; }
.esite-skin-branch .cdv-boxes .ss-cd { display: flex; flex-wrap: nowrap; justify-content: center; width: 100%; }
.esite-skin-branch .cdv-boxes .cd-unit { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.esite-skin-branch .cdv-boxes::before, .esite-skin-branch .cdv-boxes::after { content: ""; position: absolute; top: 50%; width: clamp(80px, 11vw, 140px); aspect-ratio: 1 / 1.7; transform: translateY(-50%); pointer-events: none; background: 50% 50% / contain no-repeat; }
.esite-skin-branch .cdv-boxes::before { left: 0; transform: translate(-112%, -50%); background-image: var(--sk-half-l, none); }
.esite-skin-branch .cdv-boxes::after { right: 0; transform: translate(112%, -50%); background-image: var(--sk-half-r, none); }
.esite-skin-branch .cdv-boxes .ss-h, .esite-skin-branch .cdv-boxes .cd-n, .esite-skin-branch .cdv-boxes .cd-l { color: var(--s-text); }
.esite-skin-branch .cdv-boxes .ss-h { color: var(--s-accent); font-family: var(--sk-accent-font); font-style: italic; font-size: 1.75rem; letter-spacing: 0; text-transform: none; }
.esite-skin-branch .cdv-boxes .cd-unit { border: 0; background: none; }
.esite-skin-branch .cdv-boxes .cd-unit + .cd-unit { border-left: 1px solid var(--sk-line); }
.esite-skin-branch .ss-countdown .cd-n { font-family: var(--s-fhead) !important; font-weight: 400; }
.esite-skin-branch .cd-l { text-transform: uppercase; letter-spacing: .18em; font-size: .625rem; }

/* ---- the day ---- */
.esite-skin-branch .schv-wide .ss-tl-time { font-family: var(--s-fhead); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-style: normal; }
.esite-skin-branch .ss-tl-title { font-family: var(--s-fhead); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.esite-skin-branch .ss-faq-q { font-family: var(--s-fbody); font-size: 1.25rem; font-weight: 500; }

/* ---- registry ---- */
.esite-skin-branch .gftv-panel .ss-wrap { aspect-ratio: auto; width: min(600px, 100%); padding: 0; background: none; }
.esite-skin-branch .gftv-panel .ss-h::before { display: block !important; }

/* ---- RSVP: another card of the set, on the table ---- */
.esite-skin-branch .ss-scope[data-type="rsvp"]:has(.rsv-tint) { background-color: var(--sk-table); }
.esite-skin-branch .ss-scope[data-type="rsvp"]::before, .esite-skin-branch .ss-scope[data-type="rsvp"]::after { display: none; }
.esite-skin-branch .ss-rsvp-form {
  position: relative; max-width: 600px; padding: 150px 48px 140px; border-radius: 0; box-shadow: var(--sk-lift);
  background: var(--sk-corner-tl, none) 0 0 / 28% auto no-repeat, var(--sk-corner-br, none) 100% 100% / 28% auto no-repeat, var(--sk-paper);
}
.esite-skin-branch .ss-rsvp-form::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--sk-line); pointer-events: none; }

@media (max-width: 1200px) {
  .esite-skin-branch .ss-scope[data-type="story"]::before { display: none; }
}
@media (max-width: 900px) {
  .esite-skin-branch .hs-classic.no-photo .cl-panel { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 96px 18px 40px; }
  .esite-skin-branch .hs-classic.no-photo .cl-text { justify-self: center; max-width: 100%; }
  .esite-skin-branch .hs-classic .cl-names { font-size: calc(1.75rem * var(--s-hscale, 1)); }
  .esite-skin-branch .cl-facts b { font-size: .8125rem; letter-spacing: .08em; }
  .esite-skin-branch .hs-classic.no-photo .cl-visual { order: 2 !important; grid-area: auto !important; height: 330px; }
  .esite-skin-branch .hs-classic.no-photo .cl-text { order: 1 !important; padding: 80px 30px; background-size: 36% auto, 36% auto, auto; }
  .esite-skin-branch .hs-classic.no-photo .cl-card { width: min(220px, 58%); padding: 24px 18px; }
  .esite-skin-branch .hs-classic.no-photo .cl-card.back { transform: translate(-22%, -56%) rotate(8deg); }
  .esite-skin-branch .hs-classic.no-photo .cl-card.front { transform: translate(-74%, -44%) rotate(-5deg); }
  .esite-skin-branch .hs-classic.no-photo .cl-panel::before { inset: 60px auto auto -16%; width: 150px; height: 260px; }
  .esite-skin-branch .hs-classic.no-photo .cl-panel::after { right: -8%; width: 160px; height: 270px; }
  .esite-skin-branch .cdv-boxes { width: calc(100% - 110px); }
  .esite-skin-branch .cdv-boxes::before, .esite-skin-branch .cdv-boxes::after { width: 50px; }
  .esite-skin-branch .ss-rsvp-form { padding: 110px 24px 110px; background-size: 34% auto, 34% auto, auto; }
  .esite-skin-branch .ss-scope[data-type="schedule"]::before, .esite-skin-branch .ss-scope[data-type="story"]::before { display: none; }
}
@media (max-width: 640px) {
  .esite-skin-branch .cdv-boxes .ss-cd { flex-wrap: nowrap; }
  .esite-skin-branch .cdv-boxes .cd-unit { min-width: 0; padding: 10px 4px; }
}
