/* Round 55 (core/keeps.php): invitation card, monogram, the ending, countdown line, guest count, suppliers, gallery
   albums. Coloured by each design's own variables, so every palette and dark design follows. */
.mono { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: .02em; color: var(--accent); }
.mono b { font-weight: 400; }
.mono i { margin: 0 .1em; font-family: var(--script, var(--display)); font-style: italic; font-size: .5em; opacity: .85; }
.mono:not(.mono-own) { width: 92px; height: 92px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent); }
.mono-own img { display: block; width: auto; height: 88px; max-width: 190px; object-fit: contain; }

.s-invite { padding-top: 56px; padding-bottom: 56px; }
.ic { position: relative; max-width: 420px; margin: 0 auto; padding: 44px 26px 40px; text-align: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .55); }
.ic::before { content: ""; position: absolute; inset: 9px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: inherit; pointer-events: none; }
.ic > * { position: relative; }
.ic-m { margin-bottom: 18px; }
.ic-open { margin: 0 0 14px; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.ic-names { margin: 0 0 14px; font-family: var(--script, var(--display)); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.05; }
.ic-names span { display: block; }
.ic-names i { display: block; margin: 4px 0; font-size: .45em; font-style: italic; color: var(--accent); }
.ic-req { max-width: 28ch; margin: 0 auto; font-size: .76rem; letter-spacing: .16em; line-height: 1.9; text-transform: uppercase; color: var(--muted); }
.ic-rule { display: block; width: 150px; height: 9px; margin: 22px auto; color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(currentColor, currentColor) left center / 62px 1px no-repeat, linear-gradient(currentColor, currentColor) right center / 62px 1px no-repeat, radial-gradient(circle, currentColor 3px, transparent 3.5px) center / 9px 9px no-repeat; }
.ic-date { margin: 0; }
.ic-date span { display: block; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ic-date b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; }
.ic-ev { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.ic-ev.is-one { grid-template-columns: 1fr; }
.ic-ev div { padding: 0 10px; }
.ic-ev div + div { border-left: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.ic-ev span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ic-ev b { display: block; margin: 2px 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.ic-ev em { display: block; font-family: var(--display); font-style: italic; font-size: .95rem; line-height: 1.35; color: var(--muted); text-wrap: balance; }
.ic-place { margin: 14px 0 0; color: var(--muted); }
.ic-verse { margin: 0; }
.ic-verse p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.6; }
.ic-verse cite { display: block; margin-top: 10px; font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ic-plain :is(.ic-open, .ic-date b, .ic-ev b, .ic-ev em, .ic-verse p), .ic-plain .mono { font-family: var(--text); }
.ic-plain .ic-names { font-size: clamp(2.6rem, 12vw, 3.4rem); }
.t-darkroom .ic { color: #2a2520; --muted: #6b635a; }   /* a print on light paper in a dark room */
.ic-arch { border-radius: 210px 210px 6px 6px; padding-top: 72px; }
.ic-plaque { border-radius: 4px; }
.ic-pane { border: 3px double color-mix(in srgb, var(--accent) 55%, transparent); background-image: linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px); background-size: 100% 20%, 25% 100%; }
.ic-pane::before { inset: 6px; }
.ic-ticket { border-radius: 14px; }
.ic-ticket::before { content: none; }
.ic-ticket .ic-rule { position: relative; width: auto; height: 0; margin: 24px -27px; background: none; border-top: 2px dashed var(--line); }
.ic-ticket .ic-rule::before, .ic-ticket .ic-rule::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ic-ticket .ic-rule::before { left: -11px; } .ic-ticket .ic-rule::after { right: -11px; }
.ic-glass { border-radius: 22px; background: color-mix(in srgb, var(--paper) 58%, transparent); border-color: color-mix(in srgb, var(--ink) 20%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.fin { display: grid; justify-items: center; gap: 12px; margin-bottom: 24px; }
.fin .mono { color: inherit; border-color: currentColor; box-shadow: none; }
.fin-d { font-size: .74rem; letter-spacing: .3em; opacity: .7; }
.cd-line { max-width: 30ch; margin: 18px auto 0; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--accent); }
.rs-said { display: table; margin: 0 auto 18px; padding: 6px 16px 6px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.rs-said b { display: inline-block; min-width: 32px; margin-right: 8px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-align: center; font-variant-numeric: tabular-nums; }
.sup-intro { max-width: 34ch; margin: 0 auto 18px; text-align: center; color: var(--muted); }
.sup { max-width: 440px; margin: 0 auto; }
.sup-i { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sup dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sup dd { margin: 0; font-family: var(--display); font-size: 1.1rem; text-align: right; }
.sup a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ga-cover { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: none; cursor: pointer; }
.ga-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ga-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(20, 20, 20, .62); color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.ga-tabs { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.ga-tabs::-webkit-scrollbar { display: none; }
.ga-tab { flex: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ga-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ga-tab sup { margin-left: 5px; opacity: .7; }
[data-ga-off] { display: none !important; }

/* Tonal rhythm (designs listed in RHYTHM_THEMES): every second section is a shade away from its neighbours. The tint is
   the design's own ink at low strength, so it darkens a light design and lifts a dark one, and textures show through. */
html.rh .inv > .s:nth-of-type(even):not(.s-hero):not(.s-invite):not(.s-photo):not(.s-closing) { background-color: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 9%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ink) 9%, transparent); }

/* Ink bands (INK_BANDS): the countdown and the ending in the design's own ink, with its paper colour as the type.
   The design's variables are swapped inside the band, so its own rules follow. */
html.ib { --ib-bg: var(--ink); --ib-ink: var(--bg); --ib-acc: var(--accent); }
html.ib .inv > .s-countdown, html.ib .inv > .s-closing {
  --bg: var(--ib-bg); --ink: var(--ib-ink); --paper: color-mix(in srgb, var(--ib-ink) 9%, var(--ib-bg)); --muted: color-mix(in srgb, var(--ib-ink) 70%, var(--ib-bg));
  --line: color-mix(in srgb, var(--ib-ink) 24%, transparent); --accent: color-mix(in srgb, var(--ib-acc) 45%, var(--ib-ink)); --accent-ink: var(--ib-bg);
  background: var(--bg); background-image: none; color: var(--ink); box-shadow: none; }
html.ib .inv > .s-countdown :is(.sh-t, .sh-k, .cd-u b, .cd-u span, .cd-line), html.ib .inv > .s-closing :is(.cl-line, .cl-sign, .cl-tag, .fin-d) { color: inherit; }
html.ib .inv > :is(.s-countdown, .s-closing) .sh-k, html.ib .inv > .s-closing .cl-tag, html.ib .inv > .s-countdown .cd-line { color: var(--accent); }
html.ib .inv > :is(.s-countdown, .s-closing) .btn-line { background: none; border-color: color-mix(in srgb, var(--ink) 55%, transparent); color: var(--ink); }
html.ib .inv > .s-countdown .cd-u { background: none; border-color: var(--line); }
html.ib .inv > .s-countdown .cd { background: none; border-color: var(--line); box-shadow: none; }
html.ib .inv > .s-countdown .cd-u b, html.ib .inv > .s-countdown .cd-u span { color: var(--ink); opacity: 1; }

/* Round 58, second pass: the palest designs read their small grey text at 4:1 or less. Their muted tone is now the
   ink at three quarters strength (about 6:1). */
html.ib { --muted: color-mix(in srgb, var(--ink) 74%, var(--bg)) !important; }

/* round 59: designs whose heading face is a script or a heavy display set small running text in the reading face */
:is(.t-acrylic, .t-akwarela, .t-diamond, .t-ribbon, .t-darkroom, .t-keepsake, .t-parol, .t-photobooth) :is(.sup dd, .cd-line) { font-family: var(--text); font-style: normal; }
.t-parol .ic-names { line-height: 1.2; }

/* Round 61: the story as chapters. The year stands large in the design's heading face, the photo runs wider, and the
   story can end on a line that hands over to the day. */
html:root .inv .tml .tml-i .tml-d { margin: 0 0 6px; font-family: var(--display); font-size: clamp(1.9rem, 8.5vw, 2.5rem); font-style: italic; line-height: 1; letter-spacing: 0; text-transform: none; }
.tml-i { padding-bottom: 40px; }
.tml-dot { top: 13px; }
.tml-t { font-size: 1.45rem; }
html:root .inv .tml .tml-img { max-width: min(100%, 340px); margin-top: 16px; }
.st-end { max-width: 26ch; margin: 30px auto 0; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--accent); }
.st-end::before { content: ""; display: block; width: 1px; height: 34px; margin: 0 auto 14px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
/* The reply button that follows the guest: shown after the cover, hidden at the reply form and once they have replied. */
.rv-fab { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 .78rem var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6); transition: opacity .3s ease, transform .3s ease; }
.rv-fab[hidden] { display: inline-flex; opacity: 0; transform: translateY(12px); pointer-events: none; }
body.is-demo .rv-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .rv-fab { transition: none; } }
