/* thm05 v2 — Clay Herbarium / earthy botanical atelier. */

html:has(> body.theme-thm05[data-theme-version="v2"]),
html:has(> body.theme-thm05[data-theme-version="v2"]) > body {
    width: auto !important;
    max-width: 100% !important;
    margin: 0;
}

body.theme-thm05[data-theme-version="v2"] {
    --thm05-paper: #f7f0e6;
    --thm05-paper-high: #fff8ef;
    --thm05-linen: #e3d4c3;
    --thm05-sand: #cbb49b;
    --thm05-clay: #9b5d3d;
    --thm05-leather: #7b4f37;
    --thm05-walnut: #4a3228;
    --thm05-umber: #2a201d;
    --thm05-ink: #261b17;
    --thm05-muted: #5e4d43;
    --thm05-focus: #c06a32;
    /* The couple's own fonts (custom font add-on) take over when set; see x-theme-custom-fonts.
       Labels, numbers and headings take the heading font; body text, buttons and form labels
       take the body font. */
    --thm05-display: var(--invie-font-heading, "Montserrat"), "Arial Black", sans-serif;
    --thm05-body: var(--invie-font-body, "Manrope"), system-ui, sans-serif;
    --thm05-ui: var(--invie-font-body, "Montserrat"), "Arial Black", sans-serif;
    --theme-focus: var(--thm05-focus);
    --theme-font-display: var(--thm05-display);
    --theme-font-body: var(--thm05-body);
    margin: 0;
    overflow-x: hidden;
    background: var(--thm05-paper);
    color: var(--thm05-ink);
    font-family: var(--thm05-body);
    font-size: clamp(0.94rem, 0.9rem + 0.18vw, 1.04rem);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body.theme-thm05[data-theme-version="v2"]:not([data-theme-state="open"]) {
    height: 100dvh;
    overflow: hidden;
}

body.theme-thm05[data-theme-version="v2"][data-theme-state="open"] {
    min-height: 100%;
    overflow-y: auto;
}

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

.theme-thm05 :where(h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul) {
    margin: 0;
}

.theme-thm05 :where(ol, ul) {
    padding: 0;
    list-style: none;
}

.theme-thm05 :where(a) {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.theme-thm05 :where(button, input, select, textarea) {
    color: inherit;
    font: inherit;
}

.theme-thm05 :where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid var(--thm05-focus) !important;
    outline-offset: 4px !important;
}

.theme-thm05 :where(img, iframe) {
    display: block;
    max-width: 100%;
}

.theme-thm05 ::selection {
    background: var(--thm05-leather);
    color: var(--thm05-paper-high);
}

.thm05-page {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    overflow: clip;
    container: thm05-page / inline-size;
    background: var(--thm05-paper);
}

.thm05-invitation,
.thm05-invitation[aria-hidden="true"] {
    width: 100%;
    min-width: 0;
    visibility: visible !important;
    opacity: 1;
    background: var(--thm05-paper);
}

.theme-thm05 .thm05-invitation > [data-theme-section] {
    content-visibility: visible !important;
    contain: none !important;
}

.thm05-label {
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: clamp(0.75rem, 0.62rem + 0.16vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.thm05-section {
    padding: clamp(4.5rem, 11cqw, 8.5rem) clamp(1.25rem, 5cqw, 5rem);
}

.thm05-heading {
    display: grid;
    gap: 1.5rem;
    width: min(100%, 68rem);
    margin: 0 auto clamp(2.75rem, 7cqw, 5.5rem);
}

.thm05-heading h2,
.thm05-events__heading h2,
.thm05-dresscode h2,
.thm05-livestream h2,
.thm05-rsvp h2,
.thm05-gift h2,
.thm05-health h2 {
    max-width: 14ch;
    margin-top: 0.7rem;
    color: inherit;
    font-family: var(--thm05-display);
    font-size: clamp(2.05rem, 1.76rem + 2.35cqw, 4.25rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 0.98;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.thm05-heading > p,
.thm05-couple__intro,
.thm05-events__heading > p:last-child,
.thm05-rsvp__intro > p,
.thm05-gift__heading > p:last-child,
.thm05-health__copy > p:last-child {
    max-width: 37rem;
    color: var(--thm05-muted);
    text-wrap: pretty;
}

.thm05-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.82rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--thm05-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.thm05-button:hover {
    transform: translateY(-2px);
}

.thm05-button--dark {
    border-color: var(--thm05-leather);
    background: var(--thm05-leather);
    color: var(--thm05-paper-high);
}

.thm05-button--light {
    border-color: var(--thm05-paper-high);
    background: var(--thm05-paper-high);
    color: var(--thm05-umber);
}

.thm05-button--outline {
    border-color: currentColor;
    background: transparent;
}

.thm05-text-link {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    font-family: var(--thm05-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

/* Opening: the invitation is already composed beneath this opaque layer. */
.thm05-cover {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--thm05-umber);
    isolation: isolate;
    transform: translateY(0);
    visibility: visible;
    transition: transform 780ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0s;
}

body.theme-thm05[data-theme-state="open"] .thm05-cover {
    pointer-events: none;
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 780ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 780ms;
}

.thm05-cover__media {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
}

.thm05-cover__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.24) saturate(0.78) contrast(1.03);
}

.thm05-cover__media span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31, 22, 18, 0.05) 0%, rgba(31, 22, 18, 0.15) 36%, rgba(31, 22, 18, 0.72) 100%),
        linear-gradient(90deg, rgba(38, 27, 23, 0.2), transparent 64%);
}

.thm05-cover__card {
    position: relative;
    align-self: end;
    width: min(calc(100% - 2rem), 27rem);
    margin: 0 0 1rem 1rem;
    padding: clamp(1.35rem, 5vw, 2.4rem);
    overflow: hidden;
    background:
        linear-gradient(rgba(247, 240, 230, 0.94), rgba(247, 240, 230, 0.94)),
        url("../img/bg/section-3.jpg") center / cover;
    box-shadow: 0 1.4rem 4rem rgba(24, 17, 14, 0.32);
    color: var(--thm05-ink);
}

.thm05-cover__card::before {
    position: absolute;
    inset: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--thm05-leather) 36%, transparent);
    content: "";
    pointer-events: none;
}

.thm05-cover__folio {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--thm05-muted);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.thm05-cover__leaf {
    position: absolute;
    z-index: 0;
    top: -3.5rem;
    right: -5.5rem;
    width: 15rem;
    max-width: none;
    opacity: 0.24;
    rotate: -11deg;
}

.thm05-cover__copy {
    position: relative;
    z-index: 1;
    padding-top: clamp(2rem, 6vh, 3.8rem);
}

.thm05-cover h1 {
    display: grid;
    width: min(100%, 11ch);
    margin: 0.6rem 0 1.25rem;
    font-family: var(--thm05-display);
    font-size: clamp(2.35rem, 11vw, 4.7rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.86;
    overflow-wrap: anywhere;
}

.thm05-cover h1 i {
    margin: 0.16em 0;
    color: var(--thm05-clay);
    font-family: var(--thm05-body);
    font-size: 0.44em;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

.thm05-cover--names-long h1 {
    font-size: clamp(2.05rem, 9.5vw, 4rem);
}

.thm05-cover--names-xlong h1 {
    font-size: clamp(1.68rem, 7.6vw, 3.25rem);
    line-height: 0.92;
}

.thm05-cover__guest {
    display: grid;
    gap: 0.05rem;
    width: min(100%, 19rem);
    margin-bottom: 1.15rem;
    padding: 0.78rem 0;
    border-block: 1px solid color-mix(in srgb, var(--thm05-leather) 32%, transparent);
}

.thm05-cover__guest span {
    color: var(--thm05-muted);
    font-size: 0.75rem;
}

.thm05-cover__guest strong {
    font-family: var(--thm05-display);
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Intro */
.thm05-intro {
    min-height: 100dvh;
    background:
        linear-gradient(rgba(247, 240, 230, 0.94), rgba(247, 240, 230, 0.94)),
        url("../img/bg/section-3.jpg") center / cover;
}

.thm05-nav {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 22%, transparent);
    background: color-mix(in srgb, var(--thm05-paper) 92%, transparent);
    backdrop-filter: blur(14px);
}

.thm05-nav__brand {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-family: var(--thm05-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.thm05-nav__brand i {
    margin: 0 0.25rem;
    color: var(--thm05-clay);
    font-style: normal;
}

.thm05-nav__links {
    display: none;
    align-items: center;
    gap: 1.2rem;
}

.thm05-nav__links a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-family: var(--thm05-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.thm05-intro__layout {
    display: grid;
    min-height: calc(100dvh - 4rem);
    align-content: center;
    gap: clamp(2rem, 7cqw, 4.5rem);
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: clamp(4rem, 12cqw, 8rem) clamp(1.25rem, 5cqw, 5rem) clamp(4.5rem, 12cqw, 8rem);
}

.thm05-intro__copy {
    display: grid;
    width: min(100%, 44rem);
    align-content: center;
}

.thm05-intro__layout--photo {
    padding-top: clamp(1.5rem, 6cqw, 3rem);
}

.thm05-intro__photo {
    position: relative;
    width: 100%;
    max-width: 34rem;
    height: min(56svh, 30rem);
    margin: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 24%, transparent);
    box-shadow: 0 1.2rem 3rem rgba(42, 32, 29, 0.16);
}

.thm05-intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.18) saturate(0.82) contrast(1.03);
}

.thm05-intro__copy h2 {
    max-width: 11ch;
    margin: 0.8rem 0 1.6rem;
    font-family: var(--thm05-display);
    font-size: clamp(2.65rem, 2rem + 3.4cqw, 5.8rem);
    font-weight: 760;
    letter-spacing: -0.07em;
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.thm05-intro--names-long .thm05-intro__copy h2 {
    font-size: clamp(2.2rem, 1.7rem + 2.7cqw, 4.8rem);
}

.thm05-intro--names-xlong .thm05-intro__copy h2 {
    font-size: clamp(1.85rem, 1.5rem + 2.1cqw, 3.8rem);
    line-height: 0.98;
}

.thm05-intro__copy > p:not(.thm05-label) {
    max-width: 34rem;
    color: var(--thm05-muted);
}

.thm05-intro__date {
    display: grid;
    gap: 0.15rem;
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--thm05-clay);
}

.thm05-intro__date span,
.thm05-intro__date small {
    color: var(--thm05-muted);
    font-size: 0.75rem;
}

.thm05-intro__date time {
    font-family: var(--thm05-display);
    font-size: clamp(0.95rem, 2.8cqw, 1.25rem);
    font-weight: 700;
}

.thm05-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid color-mix(in srgb, var(--thm05-walnut) 26%, transparent);
}

.thm05-countdown > p {
    grid-column: 1 / -1;
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 22%, transparent);
}

.thm05-countdown > div {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 0.1rem;
    padding: 1rem 0.25rem;
    border-right: 1px solid color-mix(in srgb, var(--thm05-walnut) 22%, transparent);
}

.thm05-countdown > div:last-child {
    border-right: 0;
}

.thm05-countdown strong {
    font-family: var(--thm05-display);
    font-size: clamp(1.35rem, 6cqw, 2.6rem);
    font-weight: 750;
    letter-spacing: -0.06em;
    line-height: 1;
}

.thm05-countdown div span {
    color: var(--thm05-muted);
    font-size: 0.75rem;
}

/* Couple */
.thm05-couple {
    overflow: hidden;
    background:
        linear-gradient(rgba(74, 50, 40, 0.9), rgba(74, 50, 40, 0.9)),
        url("../img/bg/section-2.jpg") center / cover;
    color: var(--thm05-paper-high);
}

.thm05-couple .thm05-label {
    color: var(--thm05-sand);
}

.thm05-couple .thm05-heading > p,
.thm05-couple__intro {
    color: var(--thm05-linen);
}

.thm05-couple .thm05-heading h2 {
    max-width: 22ch;
}

.thm05-couple__intro {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.thm05-couple__intro > p {
    margin: 0;
}

.thm05-couple__grid {
    display: grid;
    gap: clamp(3.5rem, 9cqw, 7rem);
    width: min(100%, 72rem);
    margin: 0 auto;
}

.thm05-person {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 1.75rem;
}

.thm05-person__portrait {
    position: relative;
    width: min(78cqw, 16rem);
    aspect-ratio: 1 / 1.1;
    justify-self: center;
}

.thm05-person__photo,
.thm05-person__fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.thm05-person__photo {
    object-fit: cover;
    object-position: center 28%;
    filter: sepia(0.12) saturate(0.82) contrast(1.02);
}

.thm05-person__fallback {
    display: grid;
    place-items: center;
    border: 1px solid var(--thm05-sand);
    background: var(--thm05-umber);
    color: var(--thm05-linen);
    font-family: var(--thm05-display);
    font-size: 5rem;
    font-weight: 750;
}

.thm05-person__frame {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.thm05-person__copy {
    min-width: 0;
    text-align: center;
}

.thm05-person__copy h3 {
    max-width: 100%;
    margin: 0.65rem auto 0.85rem;
    font-family: var(--thm05-display);
    font-size: clamp(1.7rem, 6.5cqw, 3.4rem);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 1;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.thm05-person--medium .thm05-person__copy h3 {
    font-size: clamp(1.5rem, 5.5cqw, 2.8rem);
}

.thm05-person--long .thm05-person__copy h3,
.thm05-person--xlong .thm05-person__copy h3 {
    font-size: clamp(1.25rem, 4.6cqw, 2.25rem);
    line-height: 1.08;
}

.thm05-person__copy > p:not(.thm05-label) {
    max-width: 31rem;
    margin: 0 auto;
    color: var(--thm05-linen);
}

.thm05-person .thm05-text-link {
    margin-top: 1rem;
}

/* Events */
.thm05-events {
    padding: clamp(4.5rem, 11cqw, 8rem) clamp(1.25rem, 5cqw, 5rem);
    background:
        linear-gradient(rgba(247, 240, 230, 0.94), rgba(247, 240, 230, 0.94)),
        url("../img/bg/section-3.jpg") center / cover;
}

.thm05-events__heading {
    display: grid;
    gap: 1rem;
    width: min(100%, 62rem);
    margin: 0 auto clamp(2.5rem, 7cqw, 5rem);
}

.thm05-events__list {
    display: grid;
    gap: 1.35rem;
    width: min(100%, 62rem);
    margin: 0 auto;
}

.thm05-event {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(5.2rem, 0.38fr) minmax(0, 1fr);
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 34%, transparent);
    background: var(--thm05-paper-high);
}

.thm05-event__index {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.thm05-event__date {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 1.25rem 0.65rem;
    background: var(--thm05-walnut);
    color: var(--thm05-paper-high);
    text-align: center;
}

.thm05-event__date span,
.thm05-event__date small {
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.thm05-event__date strong {
    margin: 0.2rem 0;
    font-family: var(--thm05-display);
    font-size: clamp(2.45rem, 10cqw, 4.7rem);
    font-weight: 760;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.thm05-event__copy {
    display: grid;
    min-width: 0;
    align-content: center;
    padding: clamp(1.4rem, 5cqw, 2.5rem);
}

.thm05-event__copy h3 {
    margin: 0.55rem 0 0.8rem;
    font-family: var(--thm05-display);
    font-size: clamp(1.35rem, 4.8cqw, 2.35rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.thm05-event__copy time,
.thm05-event__copy > strong {
    font-size: 0.86rem;
}

.thm05-event__copy > strong {
    margin-top: 0.75rem;
}

.thm05-event address {
    margin-top: 0.25rem;
    color: var(--thm05-muted);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.55;
}

.thm05-event__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
}

.thm05-event__map {
    grid-column: 1 / -1;
    border-top: 1px solid color-mix(in srgb, var(--thm05-walnut) 24%, transparent);
}

.thm05-event__map summary {
    min-height: 48px;
    align-content: center;
    padding: 0.5rem 1rem;
    font-family: var(--thm05-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.thm05-event__map iframe {
    width: 100%;
    height: min(56cqw, 22rem);
    border: 0;
}

/* Dresscode and livestream */
.thm05-dresscode {
    display: grid;
    gap: 2.5rem;
    padding: clamp(4rem, 10cqw, 7rem) clamp(1.25rem, 5cqw, 5rem);
    background: var(--thm05-linen);
}

.thm05-dresscode > *,
.thm05-health > * {
    width: min(100%, 68rem);
    min-width: 0;
    margin-inline: auto;
}

.thm05-dresscode__copy > p:not(.thm05-label) {
    max-width: 35rem;
    margin-top: 1rem;
    color: var(--thm05-walnut);
}

.thm05-dresscode__copy small {
    display: block;
    margin-top: 1rem;
    color: var(--thm05-walnut);
    font-size: 0.75rem;
}

.thm05-dresscode ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid color-mix(in srgb, var(--thm05-walnut) 26%, transparent);
}

.thm05-dresscode li {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
    padding: 0.8rem;
    border-right: 1px solid color-mix(in srgb, var(--thm05-walnut) 26%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 26%, transparent);
}

.thm05-dresscode li:nth-child(2n) {
    border-right: 0;
}

.thm05-dresscode li > span {
    width: 100%;
    aspect-ratio: 1.8;
    margin-bottom: 0.45rem;
    background: var(--thm05-swatch);
}

.thm05-dresscode li strong {
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thm05-dresscode li small {
    color: var(--thm05-walnut);
    font-size: 0.75rem;
}

.thm05-livestream {
    display: grid;
    gap: 2rem;
    padding: clamp(4rem, 10cqw, 7rem) clamp(1.25rem, 5cqw, 5rem);
    background:
        linear-gradient(rgba(42, 32, 29, 0.96), rgba(42, 32, 29, 0.96)),
        url("../img/bg/section-5.jpg") center / cover;
    color: var(--thm05-paper-high);
}

.thm05-livestream .thm05-label {
    color: var(--thm05-sand);
}

.thm05-livestream__stamp {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 0.7rem;
    padding: 0 0.9rem;
    border: 1px solid color-mix(in srgb, var(--thm05-linen) 45%, transparent);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thm05-livestream__stamp i {
    width: 0.55rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #df6b4b;
    box-shadow: 0 0 0 0.3rem rgba(223, 107, 75, 0.18);
}

.thm05-livestream__copy p:last-child {
    max-width: 35rem;
    margin-top: 1.2rem;
    color: var(--thm05-linen);
}

.thm05-livestream__access {
    display: grid;
    align-content: end;
    gap: 1.5rem;
}

.thm05-livestream dl {
    display: grid;
    gap: 0.7rem;
}

.thm05-livestream dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-linen) 30%, transparent);
}

.thm05-livestream dt {
    color: var(--thm05-sand);
    font-size: 0.72rem;
}

.thm05-livestream dd {
    font-family: var(--thm05-display);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Quote */
.thm05-quote {
    display: grid;
    min-height: clamp(34rem, 75dvh, 48rem);
    place-items: center;
    padding: clamp(4rem, 10cqw, 8rem) clamp(1.25rem, 5cqw, 5rem);
    background: var(--thm05-sand);
}

.thm05-quote__paper {
    position: relative;
    width: min(100%, 54rem);
    padding: clamp(2.25rem, 7cqw, 5.5rem) clamp(1.5rem, 6cqw, 5rem);
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 28%, transparent);
    background:
        linear-gradient(rgba(255, 248, 239, 0.96), rgba(255, 248, 239, 0.96)),
        url("../img/bg/section-3.jpg") center / cover;
    box-shadow: 0 1.2rem 3rem rgba(74, 50, 40, 0.14);
    text-align: center;
}

.thm05-quote blockquote {
    display: grid;
    justify-items: center;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.thm05-quote blockquote > span {
    color: var(--thm05-clay);
    font-family: var(--invie-font-heading, Georgia), serif;
    font-size: 4rem;
    line-height: 0.55;
}

.thm05-quote blockquote p {
    max-width: 34ch;
    font-family: var(--thm05-display);
    font-size: clamp(1.35rem, 1.05rem + 1.7cqw, 2.5rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.2;
    text-wrap: balance;
}

.thm05-quote cite {
    color: var(--thm05-muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Story */
.thm05-story {
    background:
        linear-gradient(rgba(247, 240, 230, 0.95), rgba(247, 240, 230, 0.95)),
        url("../img/bg/section-3.jpg") center / cover;
}

.thm05-story__timeline {
    position: relative;
    display: grid;
    gap: 1.25rem;
    width: min(100%, 58rem);
    margin: 0 auto;
}

.thm05-story__timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.25rem;
    width: 1px;
    background: color-mix(in srgb, var(--thm05-walnut) 28%, transparent);
    content: "";
}

.thm05-story-card {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 1rem;
    padding: 1.2rem 1.2rem 1.2rem 3.6rem;
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 25%, transparent);
    background: var(--thm05-paper-high);
}

.thm05-story-card__number {
    position: absolute;
    z-index: 1;
    top: 1.1rem;
    left: 0.62rem;
    display: grid;
    width: 1.3rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--thm05-leather);
    color: var(--thm05-paper-high);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.thm05-story-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--thm05-linen);
}

.thm05-story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.12) saturate(0.82);
}

.thm05-story-card__copy {
    min-width: 0;
}

.thm05-story-card time {
    color: var(--thm05-leather);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thm05-story-card h3 {
    margin: 0.4rem 0 0.65rem;
    font-family: var(--thm05-display);
    font-size: clamp(1.2rem, 3.8cqw, 1.8rem);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.thm05-story-card p {
    color: var(--thm05-muted);
    font-size: 0.9375rem;
    text-wrap: pretty;
}

/* Gallery */
/* Rows come from the shared gallery layout in theme-system.css. */
.thm05-gallery {
    --theme-gallery-gap: 0.7rem;
    background:
        linear-gradient(rgba(42, 32, 29, 0.94), rgba(42, 32, 29, 0.94)),
        url("../img/bg/section-5.jpg") center / cover;
    color: var(--thm05-paper-high);
}

.thm05-gallery .thm05-label {
    color: var(--thm05-sand);
}

.thm05-gallery .thm05-heading > p {
    color: var(--thm05-linen);
}

.thm05-gallery__grid {
    width: min(100%, 64rem);
    margin: 0 auto;
}

.thm05-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--thm05-walnut);
    color: inherit;
    font: inherit;
    cursor: zoom-in;
}

.thm05-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.1) saturate(0.85);
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.thm05-gallery__item:hover img {
    filter: sepia(0) saturate(1);
    transform: scale(1.025);
}

.thm05-gallery__item span {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    padding: 0.3rem 0.45rem;
    background: rgba(42, 32, 29, 0.78);
    color: var(--thm05-paper-high);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* A dark herbarium mount with a botanical seal and specimen label. */
.thm05-gallery-dialog {
    box-sizing: border-box;
    width: min(980px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--thm05-sand);
    background: var(--thm05-umber);
    color: var(--thm05-paper-high);
    box-shadow: 0 30px 100px rgba(20, 12, 8, 0.5);
}
.thm05-gallery-dialog::backdrop {
    background: rgba(26, 18, 14, 0.9);
    backdrop-filter: blur(7px);
}
.thm05-gallery-dialog__bar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(203, 180, 155, 0.3);
}
.thm05-gallery-dialog__seal {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--thm05-sand);
    border-radius: 50%;
    color: var(--thm05-sand);
    font-size: 22px;
}
.thm05-gallery-dialog__bar p { margin: 0; }
.thm05-gallery-dialog__label {
    color: var(--thm05-sand);
    font: 700 12px/1.5 var(--thm05-display);
    letter-spacing: 0.14em;
}
.thm05-gallery-dialog__bar p:last-child {
    margin-top: 4px;
    font: 700 clamp(14px, 2.4vw, 20px)/1.3 var(--thm05-display);
    letter-spacing: -0.03em;
}
.thm05-gallery-dialog button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(203, 180, 155, 0.5);
    background: transparent;
    color: var(--thm05-paper-high);
    font: 700 12px/1.35 var(--thm05-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.thm05-gallery-dialog .thm05-gallery-dialog__close {
    width: 44px;
    padding: 0;
    font-size: 28px;
    font-weight: 400;
}
.thm05-gallery-dialog button:focus-visible {
    outline: 3px solid var(--thm05-sand);
    outline-offset: 3px;
}
.thm05-gallery-dialog button:disabled { opacity: 0.4; cursor: default; }
.thm05-gallery-dialog__specimen { margin: 0; padding: 18px 24px 0; }
.thm05-gallery-dialog__specimen img {
    box-sizing: border-box;
    width: 100%;
    height: min(60dvh, 640px);
    max-height: calc(100dvh - 230px);
    border: 1px solid rgba(203, 180, 155, 0.2);
    background: var(--thm05-walnut);
    object-fit: contain;
    filter: none;
}
.thm05-gallery-dialog__specimen figcaption {
    padding-top: 14px;
    color: var(--thm05-linen);
    font: 400 12px/1.6 var(--thm05-body);
    overflow-wrap: anywhere;
}
.thm05-gallery-dialog[data-gallery-loading="true"] [data-theme-gallery-image] { opacity: 0.4; }
.thm05-gallery-dialog__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px 24px 22px;
}
.thm05-gallery-dialog__controls [data-theme-gallery-counter] {
    color: var(--thm05-sand);
    font: 700 12px/1.4 var(--thm05-display);
    white-space: nowrap;
}
@media (max-width: 479px) {
    .thm05-gallery-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
    .thm05-gallery-dialog__bar { grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 10px; padding: 14px; }
    .thm05-gallery-dialog__seal { width: 28px; height: 28px; font-size: 18px; }
    .thm05-gallery-dialog__specimen { padding: 14px 14px 0; }
    .thm05-gallery-dialog__controls { gap: 12px; padding: 14px 16px 18px; }
    .thm05-gallery-dialog__button-label { display: none; }
}

/* Forms */
.thm05-rsvp {
    display: grid;
    gap: clamp(2rem, 6cqw, 3.5rem);
    padding: clamp(4.5rem, 11cqw, 8rem) clamp(1.25rem, 5cqw, 5rem);
    background: var(--thm05-clay);
    color: var(--thm05-paper-high);
}

.thm05-rsvp__intro,
.thm05-rsvp > .thm05-form {
    width: min(100%, 64rem);
    margin-inline: auto;
}

.thm05-rsvp__intro {
    display: grid;
    gap: 1.25rem;
}

.thm05-rsvp .thm05-label {
    color: var(--thm05-paper-high);
}

.thm05-rsvp h2 {
    max-width: 17ch;
    font-size: clamp(2rem, 1.72rem + 2.15cqw, 3.6rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
}

.thm05-rsvp__intro > p {
    max-width: 31rem;
    margin: 0;
    color: var(--thm05-paper-high);
}

.thm05-form {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
    padding: clamp(1.3rem, 5cqw, 2.6rem);
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 14%, transparent);
    background: var(--thm05-paper-high);
    box-shadow: 0 1.4rem 3rem rgba(42, 32, 29, 0.1);
    color: var(--thm05-ink);
}

.thm05-field {
    display: grid;
    min-width: 0;
    gap: 0.4rem;
}

.thm05-field label {
    font-family: var(--thm05-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thm05-field :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 42%, transparent);
    border-radius: 0;
    outline: 0;
    background: transparent;
}

.thm05-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.thm05-field :is(input, select, textarea):focus {
    border-color: var(--thm05-leather);
    box-shadow: 0 2px 0 var(--thm05-leather);
}

.thm05-form__status {
    min-height: 1.6em;
    color: var(--thm05-muted);
    font-size: 0.76rem;
}

.thm05-form__status:empty {
    min-height: 0;
}

.thm05-form__status[data-status="error"] {
    color: #983a2c;
}

.thm05-form__status[data-status="success"] {
    color: #386347;
}

/* Wishes */
.thm05-wishes {
    background:
        linear-gradient(rgba(247, 240, 230, 0.95), rgba(247, 240, 230, 0.95)),
        url("../img/bg/section-3.jpg") center / cover;
}

.thm05-wishes__featured {
    display: grid;
    grid-auto-columns: minmax(17rem, calc(100% - 2rem));
    grid-auto-flow: column;
    gap: 0.9rem;
    width: min(100%, 68rem);
    margin: 0 auto 3rem;
    padding: 0.2rem 0.15rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--thm05-clay) transparent;
}

.thm05-wish-card {
    display: grid;
    min-height: 18rem;
    align-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 28%, transparent);
    background: var(--thm05-paper-high);
    scroll-snap-align: start;
}

.thm05-wish-card > span {
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.thm05-wish-card blockquote {
    font-family: var(--thm05-display);
    font-size: clamp(1.1rem, 3.4cqw, 1.45rem);
    font-weight: 630;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.thm05-wish-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.thm05-wish-card figcaption > img,
.thm05-wish-card__initial {
    display: grid;
    width: 2.8rem;
    aspect-ratio: 1;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--thm05-linen);
    object-fit: cover;
    font-family: var(--thm05-display);
    font-weight: 750;
}

.thm05-wish-card figcaption > span:last-child {
    display: grid;
}

.thm05-wish-card figcaption strong {
    font-family: var(--thm05-display);
    font-size: 0.76rem;
}

.thm05-wish-card figcaption small {
    color: var(--thm05-muted);
    font-size: 0.75rem;
}

.thm05-wishes__guestbook {
    display: grid;
    align-items: start;
    gap: clamp(1.25rem, 4cqw, 2rem);
    width: min(100%, 48rem);
    margin: 0 auto;
}

.thm05-wishes__guestbook .thm05-form {
    grid-template-columns: minmax(0, 1fr);
}

.thm05-wishes__messages {
    min-width: 0;
    padding: clamp(1.3rem, 5cqw, 2.6rem);
    background: var(--thm05-linen);
}

.thm05-wishes__messages > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.thm05-wishes__messages ul {
    display: grid;
    max-height: 26rem;
    overflow-y: auto;
}

.thm05-wishes__messages li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.2rem 0.7rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 22%, transparent);
}

.thm05-wishes__messages li > span {
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.thm05-wishes__messages li strong {
    font-size: 0.78rem;
}

.thm05-wishes__messages li time {
    color: var(--thm05-muted);
    font-size: 0.75rem;
}

.thm05-wishes__messages li p {
    grid-column: 2 / -1;
    color: var(--thm05-muted);
    font-size: 0.9375rem;
}

.thm05-wishes__messages .thm05-wishes__empty {
    display: block;
    color: var(--thm05-muted);
    font-size: 0.8rem;
}

/* Gift */
.thm05-gift {
    display: grid;
    gap: 2.5rem;
    padding: clamp(4.5rem, 11cqw, 8rem) clamp(1.25rem, 5cqw, 5rem);
    background: var(--thm05-sand);
}

.thm05-gift__heading > p:last-child {
    margin-top: 1rem;
    color: var(--thm05-walnut);
}

.thm05-gift .thm05-label {
    color: var(--thm05-walnut);
}

.thm05-gift-card {
    display: grid;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 34%, transparent);
    background: var(--thm05-paper-high);
}

.thm05-gift-card > * {
    min-width: 0;
    padding: clamp(1.3rem, 5cqw, 2.5rem);
}

.thm05-gift-card__select {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.thm05-gift-card__select img {
    width: auto;
    max-width: 5.5rem;
    max-height: 2rem;
}

.thm05-gift-card__account {
    display: grid;
    align-content: center;
    gap: 0.4rem;
    background: var(--thm05-walnut);
    color: var(--thm05-paper-high);
}

.thm05-gift-card__account > span,
.thm05-gift-card__account > small {
    color: var(--thm05-linen);
    font-size: 0.75rem;
}

.thm05-gift-card__account > strong {
    font-family: var(--thm05-display);
    font-size: clamp(1.25rem, 5cqw, 2rem);
    font-weight: 720;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.thm05-gift-card__account .thm05-button {
    width: fit-content;
    margin-top: 1rem;
}

/* Health */
.thm05-health {
    display: grid;
    gap: 2.5rem;
    padding: clamp(4rem, 10cqw, 7rem) clamp(1.25rem, 5cqw, 5rem);
    background: var(--thm05-linen);
}

.thm05-health__copy > p:last-child {
    margin-top: 1rem;
    color: var(--thm05-walnut);
}

.thm05-health ol {
    display: grid;
    border-top: 1px solid color-mix(in srgb, var(--thm05-walnut) 28%, transparent);
}

.thm05-health li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--thm05-walnut) 28%, transparent);
}

.thm05-health li span {
    color: var(--thm05-walnut);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.thm05-health li p {
    color: var(--thm05-walnut);
    font-size: 0.9375rem;
}

/* Closing */
.thm05-closing {
    position: relative;
    display: grid;
    min-height: clamp(37rem, 84dvh, 54rem);
    place-items: center;
    padding: clamp(4.5rem, 12cqw, 9rem) clamp(1.25rem, 5cqw, 5rem);
    overflow: hidden;
    background:
        linear-gradient(rgba(42, 32, 29, 0.95), rgba(42, 32, 29, 0.95)),
        url("../img/bg/section-5.jpg") center / cover;
    color: var(--thm05-paper-high);
}

.thm05-closing__leaf {
    position: absolute;
    top: 50%;
    left: -7rem;
    width: min(72cqw, 28rem);
    max-width: none;
    opacity: 0.2;
    transform: translateY(-50%) rotate(12deg);
}

.thm05-closing__copy {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 46rem);
    justify-items: center;
    text-align: center;
}

.thm05-closing .thm05-label {
    color: var(--thm05-sand);
}

.thm05-closing__copy > span {
    margin-top: clamp(2rem, 7cqw, 4rem);
    color: var(--thm05-linen);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm05-closing h2 {
    display: grid;
    max-width: 100%;
    margin: 0.8rem 0 1.4rem;
    font-family: var(--thm05-display);
    font-size: clamp(2.4rem, 10cqw, 5.6rem);
    font-weight: 750;
    letter-spacing: -0.07em;
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.thm05-closing h2 b {
    font-weight: inherit;
}

.thm05-closing h2 i {
    margin: 0.18em 0;
    color: var(--thm05-clay);
    font-family: var(--thm05-body);
    font-size: 0.38em;
    font-style: normal;
    font-weight: 400;
}

.thm05-closing--names-long h2 {
    font-size: clamp(2rem, 8.2cqw, 4.4rem);
}

.thm05-closing--names-xlong h2 {
    font-size: clamp(1.65rem, 6.8cqw, 3.6rem);
    line-height: 0.98;
}

.thm05-closing__copy > p {
    max-width: 34rem;
    color: var(--thm05-linen);
}

.thm05-closing time {
    margin-top: 1.5rem;
    color: var(--thm05-sand);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm05-closing small {
    margin-top: clamp(3rem, 10cqw, 6rem);
    color: var(--thm05-sand);
    font-size: 0.75rem;
}

.thm05-closing small a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Copy status */

/* The copy status is read out only: the kernel's own toast (.theme-v2-toast) already shows
   the message, and this second, theme-drawn bar doubled it over the section beneath. */
.thm05-sr-status {
    position: fixed;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

@container thm05-page (min-width: 36rem) {
    .thm05-nav__links {
        display: flex;
    }

    .thm05-couple__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(2rem, 5cqw, 4rem);
    }

    .thm05-person {
        grid-template-rows: auto 1fr;
        align-content: start;
    }

    .thm05-person__portrait {
        width: min(100%, 15rem);
    }

    .thm05-person__copy h3 {
        font-size: clamp(1.5rem, 4cqw, 2.7rem);
    }

    .thm05-person--medium .thm05-person__copy h3 {
        font-size: clamp(1.35rem, 3.4cqw, 2.25rem);
    }

    .thm05-person--long .thm05-person__copy h3,
    .thm05-person--xlong .thm05-person__copy h3 {
        font-size: clamp(1.12rem, 2.8cqw, 1.85rem);
    }

    .thm05-event {
        grid-template-columns: minmax(7.5rem, 0.34fr) minmax(0, 1fr);
    }

    .thm05-gift {
        grid-template-columns: 1fr;
    }

    .thm05-dresscode ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .thm05-dresscode li,
    .thm05-dresscode li:nth-child(2n) {
        border-right: 1px solid color-mix(in srgb, var(--thm05-walnut) 26%, transparent);
    }

    .thm05-dresscode li:last-child {
        border-right: 0;
    }

    .thm05-story-card {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        align-items: center;
    }

    .thm05-story-card:not(:has(.thm05-story-card__media)) {
        grid-template-columns: 1fr;
    }

    .thm05-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thm05-form > .thm05-label,
    .thm05-field--wide,
    .thm05-form > .thm05-button,
    .thm05-form > .thm05-form__status {
        grid-column: 1 / -1;
    }

    .thm05-gift-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    }

    .thm05-gift-card__account > strong {
        font-size: clamp(1.2rem, 4cqw, 1.8rem);
        overflow-wrap: normal;
        word-break: break-word;
    }

    .thm05-gift-card__account .thm05-button {
        white-space: normal;
    }
}

@media (max-width: 359px), (max-height: 620px) {
    .thm05-cover__card {
        padding: 1.1rem;
    }

    .thm05-cover__copy {
        padding-top: 1.35rem;
    }

    .thm05-cover h1 {
        margin-bottom: 0.8rem;
        font-size: clamp(1.9rem, 10vw, 2.75rem);
    }

    .thm05-cover__guest {
        margin-bottom: 0.75rem;
        padding: 0.45rem 0;
    }

    .thm05-cover__guest span {
        font-size: 0.66rem;
    }

    .thm05-cover__guest strong {
        font-size: 0.92rem;
    }

    .thm05-cover .thm05-button {
        min-height: 44px;
        padding-block: 0.65rem;
    }
}

@media (min-width: 1024px) {
    body.theme-thm05:is(.desktop-invitation-preview, .desktop-invitation-presentation) {
        height: 100dvh !important;
        min-height: 100dvh !important;
        overflow: hidden !important;
    }

    body.theme-thm05 .desktop-invitation-shell--enabled > .desktop-invitation-shell__invitation {
        scrollbar-gutter: stable;
    }

    body.theme-thm05:not([data-theme-state="open"])
        .desktop-invitation-shell--enabled > .desktop-invitation-shell__invitation {
        overflow-y: hidden !important;
    }

    body.theme-thm05[data-theme-state="open"]
        .desktop-invitation-shell--enabled > .desktop-invitation-shell__invitation {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-color: var(--thm05-clay) var(--thm05-paper);
    }

    body.theme-thm05 .desktop-invitation-shell__invitation > .thm05-page {
        min-height: 100%;
        overflow: clip;
    }

    body.theme-thm05 .thm05-cover {
        position: absolute;
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        background: var(--thm05-paper);
    }

    body.theme-thm05 .thm05-cover__media {
        display: none;
    }

    body.theme-thm05 .thm05-cover__card {
        align-self: center;
        width: min(calc(100% - 4rem), 29rem);
        margin: auto;
        padding: clamp(2rem, 4cqw, 3.3rem);
        border: 1px solid color-mix(in srgb, var(--thm05-walnut) 25%, transparent);
        box-shadow: 0 1rem 3rem rgba(42, 32, 29, 0.12);
    }

    body.theme-thm05 .thm05-cover h1 {
        font-size: clamp(2.7rem, 9cqw, 4.6rem);
    }

    body.theme-thm05 .desktop-invitation-shell__photo {
        filter: sepia(0.32) saturate(0.7) contrast(1.02);
    }

    body.theme-thm05 .desktop-invitation-shell__visual::before {
        background:
            linear-gradient(90deg, rgba(42, 32, 29, 0.12), transparent 55%),
            linear-gradient(180deg, rgba(42, 32, 29, 0.03), rgba(42, 32, 29, 0.72));
    }

    body.theme-thm05 .desktop-invitation-shell__copy {
        top: auto;
        bottom: clamp(2rem, 7vh, 5.5rem);
        left: clamp(2rem, 6vw, 6rem);
        width: min(72%, 42rem);
        text-align: left;
        transform: none;
        translate: 0;
    }

    body.theme-thm05 .desktop-invitation-shell__eyebrow,
    body.theme-thm05 .desktop-invitation-shell__names,
    body.theme-thm05 .desktop-invitation-shell__date {
        font-family: var(--thm05-display);
    }

    body.theme-thm05 .desktop-invitation-shell__eyebrow {
        color: var(--thm05-sand);
        font-size: 0.72rem;
    }

    body.theme-thm05 .desktop-invitation-shell__names {
        max-width: 13ch;
        font-size: clamp(2.5rem, 4.3vw, 5.4rem);
        font-weight: 740;
        letter-spacing: -0.06em;
        line-height: 0.96;
        overflow-wrap: anywhere;
    }

    body.theme-thm05 .desktop-invitation-shell__date {
        font-size: clamp(0.82rem, 1.1vw, 1.15rem);
        font-weight: 650;
        letter-spacing: 0.08em;
    }

    body.theme-thm05 .desktop-invitation-shell__monogram {
        top: clamp(2rem, 6vh, 5rem);
        left: clamp(2rem, 6vw, 6rem);
        color: var(--thm05-sand);
        font-family: var(--thm05-display);
        font-size: clamp(2.5rem, 5vw, 6rem);
        font-weight: 750;
        opacity: 0.24;
        translate: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .theme-thm05 *,
    .theme-thm05 *::before,
    .theme-thm05 *::after {
        scroll-behavior: auto !important;
        animation-delay: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .theme-thm05 :focus-visible {
        outline-color: Highlight !important;
    }
}

/* Floating controls use the shared dock (theme-system.css), coloured for this theme. */
.thm05-dock {
    --theme-dock-bg: #4a3228;
    --theme-dock-fg: #fff8ef;
    --theme-dock-border: rgba(255, 248, 239, 0.35);
    --theme-dock-bg-on-dark: rgba(255, 248, 239, 0.95);
    --theme-dock-fg-on-dark: #4a3228;
    --theme-dock-border-on-dark: rgba(74, 50, 40, 0.26);
}

/* Portrait phones and tablets: the photo sits above the card instead of
   behind it, so the couple is not hidden by the card. */
@media (max-width: 1023px) and (orientation: portrait) {
    .thm05-cover__media {
        inset: 0 0 auto;
        height: 64svh;
    }

    .thm05-cover__media span {
        background:
            linear-gradient(180deg, rgba(31, 22, 18, 0) 55%, var(--thm05-umber) 100%),
            linear-gradient(90deg, rgba(38, 27, 23, 0.16), transparent 64%);
    }
}

/* The desktop companion already shows the photo beside the invitation. */
@media (min-width: 1024px) {
    .thm05-intro__photo {
        display: none;
    }

    .thm05-intro__layout--photo {
        padding-top: clamp(4rem, 12cqw, 8rem);
    }
}


/* Revisions after the 2026-10-12 review ------------------------------------ */
/* Choco Walnut reads as a herbarium, not a second Ainsley: a garamond serif for
   headings and italic names, and a pressed sprig over each section heading. */
body.theme-thm05 {
    --thm05-serif: var(--invie-font-heading, "Cormorant Garamond"), "Iowan Old Style", Georgia, serif;
    --thm05-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg fill='none' stroke='%237b4f37' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M8 12h104'/%3E%3Cpath d='M60 12c-5-7-13-9-21-8 4 6 11 9 21 8zM60 12c5-7 13-9 21-8-4 6-11 9-21 8zM38 12c-4-5-9-6-14-5 3 4 8 6 14 5zM82 12c4-5 9-6 14-5-3 4-8 6-14 5zM60 12c-4 5-10 7-16 7M60 12c4 5 10 7 16 7'/%3E%3C/g%3E%3C/svg%3E");
}

.thm05-heading h2,
.thm05-events__heading h2,
.thm05-dresscode h2,
.thm05-livestream h2,
.thm05-rsvp h2,
.thm05-gift h2,
.thm05-health h2 {
    max-width: 16ch;
    font-family: var(--thm05-serif);
    font-size: clamp(2.4rem, 2rem + 2.6cqw, 4.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.02;
}

.thm05-cover h1,
.thm05-intro__copy h2,
.thm05-person__copy h3,
.thm05-closing h2 {
    font-family: var(--thm05-serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.thm05-cover h1 {
    font-size: clamp(3rem, 14vw, 5.6rem);
    line-height: 0.92;
}

.thm05-cover h1 i,
.thm05-closing h2 i {
    font-family: var(--thm05-serif);
    font-style: italic;
}

.thm05-intro__copy h2 {
    max-width: 12ch;
    font-size: clamp(3rem, 2.3rem + 3.6cqw, 6.2rem);
    line-height: 0.95;
}

.thm05-intro--names-long .thm05-intro__copy h2 {
    font-size: clamp(2.6rem, 2rem + 3cqw, 5.2rem);
}

.thm05-intro--names-xlong .thm05-intro__copy h2 {
    font-size: clamp(2.2rem, 1.8rem + 2.4cqw, 4.2rem);
}

.thm05-person__copy h3 {
    font-size: clamp(2rem, 7.5cqw, 3.8rem);
    line-height: 1.02;
}

.thm05-person--medium .thm05-person__copy h3 {
    font-size: clamp(1.8rem, 6.4cqw, 3.2rem);
}

.thm05-person--long .thm05-person__copy h3,
.thm05-person--xlong .thm05-person__copy h3 {
    font-size: clamp(1.5rem, 5.4cqw, 2.6rem);
}

.thm05-closing h2 {
    font-size: clamp(2.9rem, 12cqw, 6.2rem);
    line-height: 0.95;
}

.thm05-heading > .thm05-label::before,
.thm05-events__heading > .thm05-label::before,
.thm05-rsvp__heading > .thm05-label::before,
.thm05-gift__heading > .thm05-label::before,
.thm05-health__copy > .thm05-label::before,
.thm05-dresscode__copy > .thm05-label::before {
    display: block;
    width: 7.5rem;
    height: 1.5rem;
    margin-bottom: 0.6rem;
    background: var(--thm05-sprig) left center / contain no-repeat;
    content: "";
}

/* Dress palette: names, and an outline so linen shows on the paper. */
.thm05-dresscode li > span {
    box-shadow: inset 0 0 0 1px rgba(42, 32, 29, 0.18);
}

/* One map control per event. */
.thm05-map .theme-v2-map__panel iframe {
    filter: sepia(0.2) saturate(0.85);
}

/* Prayers and guests' words are set in the garamond too. */
.thm05-quote blockquote p {
    font-family: var(--thm05-serif);
    font-size: clamp(1.6rem, 1.25rem + 1.8cqw, 2.6rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.25;
}

.thm05-wish-card blockquote {
    font-family: var(--thm05-serif);
    font-size: clamp(1.3rem, 4cqw, 1.65rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.32;
}

/* Desktop: the companion photograph carries no second set of names. */
@media (min-width: 1024px) {
    body.theme-thm05 .desktop-invitation-shell--enabled:not(.desktop-invitation-shell--without-photo) .desktop-invitation-shell__copy,
    body.theme-thm05 .desktop-invitation-shell--enabled:not(.desktop-invitation-shell--without-photo) .desktop-invitation-shell__monogram {
        display: none;
    }

    body.theme-thm05 .desktop-invitation-shell__names {
        font-family: var(--thm05-serif);
        font-style: italic;
        font-weight: 500;
        letter-spacing: -0.005em;
    }
}

/* Portrait cover: a compact card with the names on one line, so the couple in
   the photograph stays above it. */
@media (max-width: 1023px) and (orientation: portrait) {
    .thm05-cover__copy {
        padding-top: 1.35rem;
    }

    .thm05-cover h1 {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 0.22em;
        margin-bottom: 0.9rem;
        font-size: clamp(2.5rem, 11.5vw, 3.4rem);
        line-height: 1;
    }

    .thm05-cover h1 i {
        margin: 0;
        font-size: 0.6em;
    }

    .thm05-cover--names-long h1 {
        font-size: clamp(2.1rem, 9.5vw, 2.9rem);
    }
}

/* Revisions after the 2026-10-14 review ------------------------------------ */

/* Portraits: the photograph fills the wreath's ring exactly, with no paper
   showing between photo and line. Centre and size are measured from the
   frame artwork (contained in the 1:1.1 portrait box); the photo edge tucks
   just under the drawn ring. */
.thm05-person--left :is(.thm05-person__photo, .thm05-person__fallback) {
    top: 44.6%;
    left: 52.9%;
    width: 84.6%;
}

.thm05-person--right :is(.thm05-person__photo, .thm05-person__fallback) {
    top: 45.1%;
    left: 46.5%;
    width: 83.9%;
}

/* Closing: the ampersand joins the names instead of floating as a speck. */
.thm05-closing h2 i {
    margin: 0.05em 0 0.08em;
    color: var(--thm05-sand);
    font-family: var(--thm05-serif);
    font-size: 0.6em;
    font-style: italic;
    line-height: 1;
}

/* Phones: the opening paragraph keeps clear of the floating music control. */
@media (max-width: 479px) {
    .thm05-intro__copy > p:not(.thm05-label) {
        padding-right: 3rem;
    }
}

/* Names wrap only between words: a name shrinks to its line instead (the templates estimate --thm05-name-em). */
.thm05-cover h1,
.thm05-intro h2 {
    container-type: inline-size;
}

.thm05-cover h1 > span,
.thm05-intro h2 > span {
    font-size: min(1em, max(1rem, 92cqi / var(--thm05-name-em, 3)));
    overflow-wrap: break-word;
}

/* Video ----------------------------------------------------------------------
   Herbarium plates on a linen band: each poster mounted on cream with a walnut hairline and a
   leather play seal. One film per row in the invitation column, two to a row on a wide page. */
.thm05-video {
    --theme-video-gap: clamp(1.75rem, 6cqw, 2.75rem);
    --theme-video-radius: 0;
    --theme-video-border: color-mix(in srgb, var(--thm05-walnut) 40%, transparent);
    --theme-video-frame: var(--thm05-umber);
    --theme-video-button: var(--thm05-leather);
    --theme-video-button-text: var(--thm05-paper-high);
    background: var(--thm05-linen);
}

.thm05-video.theme-video .theme-video__list {
    --theme-video-max: 52rem;
    display: flex;
    flex-direction: column;
}

.thm05-video .theme-video__item {
    padding: clamp(0.55rem, 2cqw, 0.85rem);
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 34%, transparent);
    background: var(--thm05-paper-high);
    box-shadow: 0 1.1rem 2.4rem rgba(42, 32, 29, 0.1);
}

.thm05-video .theme-video__play {
    --theme-focus: var(--thm05-paper-high);
}

.thm05-video .theme-video__play:focus-visible .theme-video__play-icon {
    box-shadow: 0 0 0 4px var(--thm05-focus), 0 12px 32px rgba(0, 0, 0, 0.28);
}

body[data-theme-version="v2"] .thm05-video .theme-video__play,
body[data-theme-version="v2"] .thm05-video .theme-video__frame--link {
    font-family: var(--thm05-display);
    font-weight: 700;
}

body[data-theme-version="v2"] .thm05-video .theme-video__caption {
    margin: 0.75rem 0 0.2rem;
    color: var(--thm05-walnut);
    font-family: var(--thm05-serif);
    font-size: clamp(1.2rem, 4cqw, 1.5rem);
    font-style: italic;
    font-weight: 600;
}

@container thm05-page (min-width: 48rem) {
    .thm05-video.theme-video:not([data-video-count="1"]) .theme-video__list {
        --theme-video-max: 68rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .thm05-video:not([data-video-count="1"]) .theme-video__item {
        flex: 0 1 calc((100% - var(--theme-video-gap)) / 2);
    }
}

/* Kirim Kado -----------------------------------------------------------------
   After the digital envelope, each address takes the gift card's two tones: cream for the
   recipient and a walnut band holding the copy button. */
.thm05-gift-address {
    --theme-focus: var(--thm05-focus);
}

.thm05-gift-address .theme-gift-address__list {
    justify-content: flex-start;
    gap: 1.25rem;
    width: min(100%, 68rem);
}

.thm05-gift-address .theme-gift-address__card {
    position: relative;
    flex: 1 1 18rem;
    max-width: 32rem;
    align-items: flex-start;
    gap: 0.3rem;
    padding: clamp(1.4rem, 5cqw, 2.3rem) clamp(1.3rem, 5cqw, 2.3rem) 0;
    border: 1px solid color-mix(in srgb, var(--thm05-walnut) 34%, transparent);
    background: var(--thm05-paper-high);
    color: var(--thm05-ink);
    text-align: left;
    isolation: isolate;
}

.thm05-gift-address .theme-gift-address__card::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(48px + 2 * clamp(1rem, 4cqw, 1.4rem));
    background: var(--thm05-walnut);
    content: "";
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__label {
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 1;
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__name {
    margin-bottom: 0.35rem;
    color: var(--thm05-umber);
    font-family: var(--thm05-serif);
    font-size: clamp(1.7rem, 6cqw, 2.3rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.05;
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__phone a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--thm05-leather);
    font-family: var(--thm05-display);
    font-size: 0.9rem;
    font-weight: 700;
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__address {
    max-width: 40ch;
    color: var(--thm05-muted);
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__note {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--thm05-walnut) 22%, transparent);
    color: var(--thm05-muted);
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__copy {
    margin: auto 0 clamp(1rem, 4cqw, 1.4rem);
    color: var(--thm05-paper-high);
}

body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__card > :nth-last-child(2) {
    margin-bottom: calc(clamp(1rem, 4cqw, 1.4rem) * 2);
}

/* Scoped like the base rule above, which otherwise kept the cream label on the cream fill:
   hovering "Salin alamat", or its "Tersalin" state, read as a blank box. */
body[data-theme-version="v2"] .thm05-gift-address .theme-gift-address__copy:is(:hover, [data-copy-state="copied"]) {
    background: var(--thm05-paper-high);
    color: var(--thm05-walnut);
}

@media (forced-colors: active) {
    .thm05-gift-address .theme-gift-address__card,
    .thm05-video .theme-video__item {
        border: 1px solid CanvasText;
    }
}

/* Teks & Font: the RSVP heading is sized in ch, so shrinking it (text-fit.js) shrinks its box as well
   and a long word never fits; like the other headings it breaks the word instead. The theme's own
   words fit their lines, so they wrap as before. */
.thm05-rsvp h2 {
    overflow-wrap: anywhere;
}

/* Teks & Font: a text the couple writes may hold one long word (Bapak/Ibu/Saudara/i). This theme
   needs no extra wrapping rule: its text inherits overflow-wrap: anywhere from the body, which
   already breaks such a word, and a break-word rule here would let a long word widen the
   columns of its grids. */
