/*
 * InVie Theme 06 / Formal Registry
 * Native Theme System v2 presentation. No legacy theme stylesheet is required.
 */

:root {
    scrollbar-gutter: stable;
}

html:has(body.theme-thm06) {
    background: #f5f1e9;
    scroll-behavior: smooth;
}

body.theme-thm06 {
    --thm06-paper: #f5f1e9;
    --thm06-paper-high: #fbfaf7;
    --thm06-paper-low: #e9e2d6;
    --thm06-ink: #20211f;
    --thm06-muted: #625f58;
    --thm06-accent: #795c3b;
    --thm06-accent-deep: #5f452c;
    --thm06-line: rgba(32, 33, 31, 0.2);
    --thm06-line-light: rgba(251, 250, 247, 0.24);
    --thm06-dark: #252522;
    /* The couple's own fonts (custom font add-on) take over when set; see x-theme-custom-fonts. */
    --thm06-serif: var(--invie-font-heading, "Noto Serif"), Georgia, serif;
    --thm06-sans: var(--invie-font-body, "Manrope"), system-ui, sans-serif;
    --thm06-gutter: clamp(1.25rem, 4.2vw, 5rem);
    --thm06-section-y: clamp(5rem, 10vw, 9rem);
    --thm06-content: 86rem;
    --theme-focus: #1264a3;
    min-width: 0;
    margin: 0;
    background: var(--thm06-paper);
    color: var(--thm06-ink);
    font-family: var(--thm06-sans);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.7;
    overflow-x: clip;
    overflow-wrap: normal;
}

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

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

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

body.theme-thm06 :where(h1, h2, h3, p, figure, blockquote, address, ul, ol) {
    margin: 0;
}

body.theme-thm06 :where(ul, ol) {
    padding: 0;
}

body.theme-thm06 a {
    color: inherit;
    text-decoration: none;
}

body.theme-thm06 button,
body.theme-thm06 input,
body.theme-thm06 select,
body.theme-thm06 textarea {
    border: 0;
    border-radius: 0;
    font: inherit;
}

body.theme-thm06 button,
body.theme-thm06 select {
    cursor: pointer;
}

body.theme-thm06 img,
body.theme-thm06 video,
body.theme-thm06 iframe {
    display: block;
    max-width: 100%;
}

body.theme-thm06 address {
    font-style: normal;
}

body.theme-thm06 ::selection {
    background: var(--thm06-accent);
    color: var(--thm06-paper-high);
}

body.theme-thm06 [hidden] {
    display: none !important;
}

.theme-thm06 .thm06-page,
.theme-thm06 .thm06-invitation {
    min-width: 0;
    width: 100%;
}

.theme-thm06 .thm06-page {
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-invitation {
    position: relative;
    z-index: 1;
    background: var(--thm06-paper);
    color: var(--thm06-ink);
    opacity: 1;
    visibility: visible;
}

/* The invitation is composed before opening. It remains inert and inaccessible,
   while the opaque cover masks all loading work and leaves without a blank frame. */
.theme-thm06 [data-theme-content][aria-hidden="true"] {
    visibility: visible;
}

.theme-thm06 [data-theme-section]:not([data-theme-section="cover"]) {
    contain: none;
    content-visibility: visible;
}

.theme-thm06 .thm06-section {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: var(--thm06-section-y) var(--thm06-gutter);
    scroll-margin-top: 1rem;
}

.theme-thm06 .thm06-section > * {
    width: min(100%, var(--thm06-content));
    margin-inline: auto;
}

.theme-thm06 .thm06-kicker {
    color: var(--thm06-accent);
    font-family: var(--thm06-sans);
    font-size: clamp(0.75rem, 0.64rem + 0.16vw, 0.8125rem);
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theme-thm06 .thm06-heading h2,
.theme-thm06 .thm06-heading h3,
.theme-thm06 .thm06-person h3,
.theme-thm06 .thm06-event h3,
.theme-thm06 .thm06-gift-card h3 {
    color: inherit;
    font-family: var(--thm06-serif);
    font-weight: 450;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.theme-thm06 .thm06-heading h2 {
    max-width: 13ch;
    margin-top: 0.9rem;
    font-size: clamp(2.65rem, 5.8vw, 6rem);
}

.theme-thm06 .thm06-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-heading--split > p,
.theme-thm06 .thm06-couple__intro {
    max-width: 38rem;
    color: var(--thm06-muted);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.8;
}

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

.theme-thm06 .thm06-couple__intro > p {
    margin: 0;
}

.theme-thm06 .thm06-rule {
    display: flex;
    width: min(100%, 23rem);
    align-items: center;
    gap: 0.8rem;
}

.theme-thm06 .thm06-rule::before,
.theme-thm06 .thm06-rule::after {
    height: 1px;
    background: currentColor;
    content: "";
}

.theme-thm06 .thm06-rule::before {
    width: 2.2rem;
}

.theme-thm06 .thm06-rule::after {
    flex: 1;
    opacity: 0.3;
}

.theme-thm06 .thm06-rule span {
    width: 0.38rem;
    height: 0.38rem;
    border: 1px solid currentColor;
    transform: rotate(45deg);
}

.theme-thm06 .thm06-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--thm06-ink);
    background: transparent;
    color: var(--thm06-ink);
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.theme-thm06 .thm06-button:hover {
    background: var(--thm06-ink);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-button--solid {
    border-color: var(--thm06-ink);
    background: var(--thm06-ink);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-button--solid:hover {
    border-color: var(--thm06-accent);
    background: var(--thm06-accent);
}

.theme-thm06 .thm06-button--light {
    border-color: var(--thm06-paper-high);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-button--light:hover {
    background: var(--thm06-paper-high);
    color: var(--thm06-dark);
}

.theme-thm06 .thm06-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    border-bottom: 1px solid currentColor;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-text-link:hover {
    color: var(--thm06-accent);
}

/* Cover */
.theme-thm06 .thm06-cover {
    position: fixed;
    z-index: 5000;
    inset: 0;
    min-width: 0;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--thm06-paper-high);
    color: var(--thm06-ink);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        transform 880ms cubic-bezier(0.76, 0, 0.24, 1),
        visibility 0s linear 0s;
    visibility: visible;
    will-change: transform;
}

.theme-thm06[data-theme-state="open"] .thm06-cover {
    transform: translate3d(0, -105%, 0);
    transition-delay: 0s, 900ms;
    visibility: hidden;
}

.theme-thm06 .thm06-cover__registry {
    position: absolute;
    z-index: 3;
    inset: clamp(1rem, 2.2vw, 2rem) clamp(1.25rem, 3vw, 3rem) auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(251, 250, 247, 0.38);
    color: var(--thm06-paper-high);
    font-size: clamp(0.75rem, 0.55rem + 0.12vw, 0.8125rem);
    font-weight: 750;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

.theme-thm06 .thm06-cover--monogram .thm06-cover__registry {
    border-color: var(--thm06-line);
    color: var(--thm06-muted);
}

.theme-thm06 .thm06-cover__composition {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: minmax(32rem, 0.95fr) minmax(24rem, 1.05fr);
}

.theme-thm06 .thm06-cover__copy {
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(5.5rem, 9vh, 8rem) clamp(2rem, 6vw, 7rem) clamp(2.5rem, 5vh, 4rem);
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-cover__copy .thm06-kicker {
    margin-bottom: clamp(1.4rem, 3vh, 2.5rem);
}

.theme-thm06 .thm06-cover h1 {
    display: flex;
    max-width: 9.8ch;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.24em;
    font-family: var(--thm06-serif);
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-weight: 420;
    letter-spacing: -0.065em;
    line-height: 0.92;
    text-wrap: balance;
}

.theme-thm06 .thm06-cover h1 span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-cover h1 i {
    color: var(--thm06-accent);
    font-size: 0.58em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.theme-thm06 .thm06-cover--names-long h1 {
    font-size: clamp(2.9rem, 5.6vw, 6.4rem);
}

.theme-thm06 .thm06-cover--names-xlong h1 {
    font-size: clamp(2.3rem, 4.5vw, 5rem);
    line-height: 0.98;
}

.theme-thm06 .thm06-cover .thm06-rule {
    margin-block: clamp(1.4rem, 2.8vh, 2.3rem) 1.2rem;
    color: var(--thm06-accent);
}

.theme-thm06 .thm06-cover__date {
    color: var(--thm06-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-cover__guest {
    display: grid;
    width: min(100%, 28rem);
    gap: 0.15rem;
    margin-top: clamp(1.4rem, 3vh, 2.4rem);
    padding: 0.9rem 0 0.95rem 1rem;
    border-left: 2px solid var(--thm06-accent);
}

.theme-thm06 .thm06-cover__guest span {
    color: var(--thm06-muted);
    font-size: 0.76rem;
}

.theme-thm06 .thm06-cover__guest strong {
    min-width: 0;
    font-family: var(--thm06-serif);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-cover .thm06-button {
    margin-top: clamp(1.4rem, 3vh, 2.2rem);
}

.theme-thm06 .thm06-cover__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: var(--thm06-dark);
}

.theme-thm06 .thm06-cover__media::before,
.theme-thm06 .thm06-cover__media::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    content: "";
}

.theme-thm06 .thm06-cover__media::before {
    background: linear-gradient(180deg, rgba(20, 20, 18, 0.28), transparent 32%, rgba(20, 20, 18, 0.24));
}

.theme-thm06 .thm06-cover__media::after {
    inset: 1.5rem;
    border: 1px solid rgba(251, 250, 247, 0.45);
}

.theme-thm06 .thm06-cover__media img {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    object-fit: cover;
    filter: saturate(0.62) contrast(1.04) sepia(0.07);
}

.theme-thm06 .thm06-cover--monogram .thm06-cover__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    background:
        linear-gradient(135deg, transparent 49.8%, rgba(245, 241, 233, 0.08) 50%, transparent 50.2%),
        var(--thm06-dark);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-cover--monogram .thm06-cover__media small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.7;
    text-align: center;
    text-transform: uppercase;
}

.theme-thm06 .thm06-cover__monogram {
    display: grid;
    width: clamp(8rem, 18vw, 14rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(251, 250, 247, 0.55);
    border-radius: 50%;
    font-family: var(--thm06-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 350;
    letter-spacing: -0.07em;
}

/* Intro and navigation */
.theme-thm06 .thm06-intro {
    display: grid;
    min-height: max(52rem, 100dvh);
    align-content: space-between;
    gap: clamp(4rem, 8vw, 7rem);
    padding-top: 0;
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-nav {
    display: grid;
    width: calc(100% + (var(--thm06-gutter) * 2));
    max-width: none;
    min-height: 5.2rem;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    margin-inline: calc(var(--thm06-gutter) * -1);
    padding-inline: var(--thm06-gutter);
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-nav__brand {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--thm06-serif);
    font-size: 1.1rem;
    font-weight: 650;
}

.theme-thm06 .thm06-nav__brand i {
    color: var(--thm06-accent);
    font-size: 0.75rem;
    font-style: normal;
}

.theme-thm06 .thm06-nav__folio {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
}

.theme-thm06 .thm06-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.2rem);
}

.theme-thm06 .thm06-nav__links a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--thm06-muted);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-nav__links a:hover {
    color: var(--thm06-accent);
}

.theme-thm06 .thm06-intro__statement {
    display: grid;
    width: min(100%, var(--thm06-content));
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.32fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: end;
    margin-inline: auto;
}

.theme-thm06 .thm06-intro__statement .thm06-kicker {
    grid-column: 1 / -1;
    margin-bottom: -1rem;
}

.theme-thm06 .thm06-intro__statement h2 {
    max-width: 13ch;
    font-family: var(--thm06-serif);
    font-size: clamp(3.4rem, 7.5vw, 8.4rem);
    font-weight: 380;
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.theme-thm06 .thm06-intro__statement h2 em {
    color: var(--thm06-accent);
    font-style: italic;
    font-weight: 380;
}

.theme-thm06 .thm06-intro--names-long .thm06-intro__statement h2 {
    font-size: clamp(3rem, 6.5vw, 7.3rem);
}

.theme-thm06 .thm06-intro--names-xlong .thm06-intro__statement h2 {
    font-size: clamp(2.6rem, 5.7vw, 6.3rem);
}

.theme-thm06 .thm06-intro__lead {
    max-width: 29rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--thm06-line);
    color: var(--thm06-muted);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.theme-thm06 .thm06-intro__event {
    display: grid;
    width: min(100%, var(--thm06-content));
    grid-template-columns: minmax(8rem, 0.25fr) 1fr minmax(12rem, 0.5fr);
    gap: 1rem 2rem;
    align-items: center;
    margin-inline: auto;
    padding-block: 1.5rem;
    border-block: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-intro__event > span,
.theme-thm06 .thm06-intro__event > small {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-intro__event time {
    font-family: var(--thm06-serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 450;
}

.theme-thm06 .thm06-intro__event small {
    text-align: right;
}

.theme-thm06 .thm06-countdown {
    display: grid;
    width: min(100%, var(--thm06-content));
    grid-template-columns: minmax(10rem, 1fr) repeat(4, minmax(5rem, 0.45fr));
    margin-inline: auto;
    border-block: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-countdown > * {
    min-width: 0;
}

.theme-thm06 .thm06-countdown > .thm06-kicker {
    display: flex;
    align-items: center;
    padding: 1.4rem 1.2rem 1.4rem 0;
}

.theme-thm06 .thm06-countdown > div {
    display: grid;
    min-height: 7rem;
    place-content: center;
    padding: 1rem;
    border-left: 1px solid var(--thm06-line);
    text-align: center;
}

.theme-thm06 .thm06-countdown strong {
    font-family: var(--thm06-serif);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1;
}

.theme-thm06 .thm06-countdown span {
    margin-top: 0.55rem;
    color: var(--thm06-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Couple */
.theme-thm06 .thm06-couple {
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-couple__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 7vw, 7rem);
    padding-top: clamp(3rem, 7vw, 6.5rem);
}

.theme-thm06 .thm06-person {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(11rem, 0.92fr) minmax(12rem, 1.08fr);
    gap: clamp(1.3rem, 3vw, 2.5rem);
    align-items: start;
}

.theme-thm06 .thm06-person:nth-child(even) {
    padding-top: 0;
}

.theme-thm06 .thm06-person__media {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--thm06-paper-low);
}

.theme-thm06 .thm06-person__media::after {
    position: absolute;
    inset: 0.7rem;
    border: 1px solid rgba(251, 250, 247, 0.62);
    pointer-events: none;
    content: "";
}

.theme-thm06 .thm06-person__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.02);
}

.theme-thm06 .thm06-person__monogram {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: var(--thm06-dark);
    color: var(--thm06-paper-high);
    font-family: var(--thm06-serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 350;
}

.theme-thm06 .thm06-person__copy {
    min-width: 0;
    padding-bottom: 0.25rem;
}

.theme-thm06 .thm06-person h3 {
    max-width: 100%;
    margin-block: 0.7rem 1rem;
    font-size: clamp(2.25rem, 4.1vw, 4.7rem);
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-person--medium h3 {
    font-size: clamp(2rem, 3.5vw, 4rem);
}

.theme-thm06 .thm06-person--long h3 {
    font-size: clamp(1.65rem, 2.4vw, 2.9rem);
    line-height: 1.08;
}

.theme-thm06 .thm06-person--xlong h3 {
    font-size: clamp(1.45rem, 2.1vw, 2.4rem);
    line-height: 1.12;
}

.theme-thm06 .thm06-person__copy > p:not(.thm06-kicker) {
    color: var(--thm06-muted);
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: 1.75;
}

.theme-thm06 .thm06-person .thm06-text-link {
    margin-top: 1.1rem;
}

/* Event ledger */
.theme-thm06 .thm06-events {
    background: var(--thm06-dark);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-events .thm06-kicker {
    color: #c9a97f;
}

.theme-thm06 .thm06-events__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.5fr);
    gap: 1rem 5rem;
    align-items: end;
    padding-bottom: clamp(2.7rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--thm06-line-light);
}

.theme-thm06 .thm06-events__heading .thm06-kicker {
    grid-column: 1 / -1;
}

.theme-thm06 .thm06-events__heading h2 {
    max-width: none;
}

.theme-thm06 .thm06-events__heading > p:last-child {
    color: rgba(251, 250, 247, 0.7);
}

.theme-thm06 .thm06-events__ledger {
    display: grid;
}

.theme-thm06 .thm06-event {
    display: grid;
    grid-template-columns: 5rem minmax(10rem, 0.5fr) minmax(18rem, 1.3fr);
    gap: clamp(1.2rem, 4vw, 4rem);
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--thm06-line-light);
}

.theme-thm06 .thm06-event__folio {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-right: 1px solid var(--thm06-line-light);
}

.theme-thm06 .thm06-event__folio span {
    font-family: var(--thm06-serif);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    font-weight: 350;
    line-height: 1;
}

.theme-thm06 .thm06-event__folio small,
.theme-thm06 .thm06-event__date :where(span, small) {
    color: rgba(251, 250, 247, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-event__date time {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.theme-thm06 .thm06-event__date strong {
    font-family: var(--thm06-serif);
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: 380;
    letter-spacing: -0.06em;
    line-height: 0.85;
}

.theme-thm06 .thm06-event__copy {
    min-width: 0;
}

.theme-thm06 .thm06-event h3 {
    max-width: 13ch;
    margin-block: 0.55rem 1.2rem;
    font-size: clamp(2.25rem, 4.8vw, 5rem);
}

.theme-thm06 .thm06-event__copy > time,
.theme-thm06 .thm06-event__copy > strong,
.theme-thm06 .thm06-event address {
    display: block;
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-event__copy > time {
    margin-bottom: 0.8rem;
    color: #c9a97f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-event__copy > strong {
    font-size: 1rem;
    font-weight: 650;
}

.theme-thm06 .thm06-event address {
    max-width: 42rem;
    margin-top: 0.35rem;
    color: rgba(251, 250, 247, 0.66);
}

.theme-thm06 .thm06-event__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
    align-items: center;
    margin-top: 1.4rem;
}

.theme-thm06 .thm06-event .thm06-button--outline {
    border-color: rgba(251, 250, 247, 0.72);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-event .thm06-button--outline:hover {
    background: var(--thm06-paper-high);
    color: var(--thm06-dark);
}

.theme-thm06 .thm06-event__map {
    grid-column: 3;
    overflow: hidden;
    border-top: 1px solid var(--thm06-line-light);
}

.theme-thm06 .thm06-event__map summary {
    min-height: 44px;
    padding-block: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-event__map iframe {
    width: 100%;
    height: 20rem;
    border: 0;
    filter: grayscale(1) contrast(0.9);
}

/* Attire */
.theme-thm06 .thm06-dresscode {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: center;
    background: var(--thm06-paper-low);
}

.theme-thm06 .thm06-dresscode__copy h2,
.theme-thm06 .thm06-livestream__copy h2,
.theme-thm06 .thm06-rsvp__intro h2,
.theme-thm06 .thm06-gift__heading h2,
.theme-thm06 .thm06-health__copy h2 {
    margin-block: 0.85rem 1.3rem;
    font-family: var(--thm06-serif);
    font-size: clamp(2.65rem, 5.4vw, 5.8rem);
    font-weight: 420;
    letter-spacing: -0.055em;
    line-height: 1;
    text-wrap: balance;
}

.theme-thm06 .thm06-dresscode__copy > p:not(.thm06-kicker),
.theme-thm06 .thm06-livestream__copy > p:not(.thm06-kicker),
.theme-thm06 .thm06-rsvp__intro > p:not(.thm06-kicker),
.theme-thm06 .thm06-gift__heading > p:not(.thm06-kicker),
.theme-thm06 .thm06-health__copy > p:not(.thm06-kicker) {
    max-width: 38rem;
    color: var(--thm06-muted);
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
}

.theme-thm06 .thm06-dresscode__copy > small {
    display: block;
    margin-top: 1.2rem;
    color: var(--thm06-muted);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
}

.theme-thm06 .thm06-dresscode__palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    border-top: 1px solid var(--thm06-line);
    border-left: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-dresscode__swatch {
    display: grid;
    min-width: 0;
    grid-template-columns: 3.2rem 1fr;
    gap: 0 1rem;
    align-items: center;
    padding: 1.15rem;
    border-right: 1px solid var(--thm06-line);
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-dresscode__swatch > span {
    width: 3.2rem;
    aspect-ratio: 1;
    /* One row: the colour's name now stands alone and centres on its chip. */
    grid-row: 1;
    background: var(--thm06-swatch);
    box-shadow: inset 0 0 0 1px rgba(32, 33, 31, 0.16);
}

.theme-thm06 .thm06-dresscode__swatch strong {
    min-width: 0;
    font-family: var(--thm06-serif);
    font-size: 1rem;
    font-weight: 550;
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-dresscode__swatch small {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* Livestream */
.theme-thm06 .thm06-livestream {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.65fr);
    gap: clamp(3rem, 10vw, 10rem);
    align-items: end;
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-livestream__copy h2 {
    max-width: 12ch;
}

.theme-thm06 .thm06-livestream__access {
    display: grid;
    align-content: end;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--thm06-line);
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-livestream__access > p {
    color: var(--thm06-muted);
}

.theme-thm06 .thm06-livestream__meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.theme-thm06 .thm06-livestream__meta > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) 1fr;
    gap: 1rem;
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-livestream__meta dt {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-livestream__meta dd {
    min-width: 0;
    margin: 0;
    font-family: var(--thm06-serif);
    font-weight: 550;
    overflow-wrap: anywhere;
}

/* Centered formal reading */
.theme-thm06 .thm06-quote {
    display: grid;
    min-height: min(56rem, 100dvh);
    align-content: center;
    background: var(--thm06-accent-deep);
    color: var(--thm06-paper-high);
    text-align: center;
}

.theme-thm06 .thm06-quote__registry {
    display: flex;
    justify-content: space-between;
    align-self: start;
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(251, 250, 247, 0.28);
    color: rgba(251, 250, 247, 0.65);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.theme-thm06 .thm06-quote blockquote {
    position: relative;
    display: grid;
    width: min(100%, 74rem);
    justify-items: center;
    margin-inline: auto;
}

.theme-thm06 .thm06-quote__mark {
    position: absolute;
    z-index: -1;
    inset: -0.42em 50% auto auto;
    color: rgba(251, 250, 247, 0.11);
    font-family: var(--thm06-serif);
    font-size: clamp(10rem, 25vw, 25rem);
    line-height: 0.8;
    transform: translateX(50%);
}

.theme-thm06 .thm06-quote blockquote p {
    max-width: 27ch;
    font-family: var(--thm06-serif);
    font-size: clamp(2rem, 4.8vw, 5rem);
    font-weight: 370;
    letter-spacing: -0.045em;
    line-height: 1.2;
    text-wrap: balance;
}

.theme-thm06 .thm06-quote cite {
    margin-top: clamp(2rem, 4vw, 3rem);
    color: #dcc09b;
    font-family: var(--thm06-sans);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Story */
.theme-thm06 .thm06-story {
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-story__timeline {
    display: grid;
    gap: clamp(3.5rem, 8vw, 8rem);
    padding-top: clamp(3rem, 7vw, 6.5rem);
}

.theme-thm06 .thm06-story-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 6rem minmax(0, 0.86fr) minmax(16rem, 0.72fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: center;
}

.theme-thm06 .thm06-story-card:nth-child(even) {
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 0.86fr) 6rem;
}

.theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__meta {
    grid-column: 3;
    grid-row: 1;
    border-right: 0;
    border-left: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__media {
    grid-column: 2;
    grid-row: 1;
}

.theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__copy {
    grid-column: 1;
    grid-row: 1;
}

.theme-thm06 .thm06-story-card__meta {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 1rem;
    border-right: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-story-card__meta span {
    font-family: var(--thm06-serif);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 350;
    letter-spacing: -0.06em;
    line-height: 1;
}

.theme-thm06 .thm06-story-card__meta time {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
}

.theme-thm06 .thm06-story-card__media {
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--thm06-paper-low);
}

.theme-thm06 .thm06-story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.03);
}

.theme-thm06 .thm06-story-card__copy {
    min-width: 0;
}

.theme-thm06 .thm06-story-card__copy h3 {
    margin-bottom: 1rem;
    font-family: var(--thm06-serif);
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 420;
    letter-spacing: -0.05em;
    line-height: 1.02;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.theme-thm06 .thm06-story-card__copy p {
    max-width: 42rem;
    color: var(--thm06-muted);
    white-space: pre-line;
}

.theme-thm06 .thm06-story-card--text {
    grid-template-columns: 6rem minmax(0, 1fr);
}

.theme-thm06 .thm06-story-card--text .thm06-story-card__copy {
    max-width: 50rem;
}

.theme-thm06 .thm06-story-card--text:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 6rem;
}

.theme-thm06 .thm06-story-card--text:nth-child(even) .thm06-story-card__meta {
    grid-column: 2;
}

/* Gallery */
/* Rows come from the shared gallery layout in theme-system.css. */
.theme-thm06 .thm06-gallery {
    --theme-gallery-gap: clamp(0.6rem, 1.2vw, 1.2rem);
    background: var(--thm06-dark);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-gallery .thm06-kicker {
    color: #c9a97f;
}

.theme-thm06 .thm06-gallery__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.5fr);
    gap: 1rem 5rem;
    align-items: end;
    padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--thm06-line-light);
}

.theme-thm06 .thm06-gallery__heading .thm06-kicker {
    grid-column: 1 / -1;
}

.theme-thm06 .thm06-gallery__heading > p:last-child {
    color: rgba(251, 250, 247, 0.68);
}

.theme-thm06 .thm06-gallery__grid {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.theme-thm06 .thm06-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #111;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
}

.theme-thm06 .thm06-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.04);
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.theme-thm06 .thm06-gallery__item:hover img,
.theme-thm06 .thm06-gallery__item:focus-visible img {
    filter: saturate(0.9) contrast(1.04);
    transform: scale(1.025);
}

.theme-thm06 .thm06-gallery__item > span {
    position: absolute;
    z-index: 2;
    inset: auto 0.8rem 0.8rem auto;
    padding: 0.35rem 0.55rem;
    background: rgba(26, 26, 24, 0.74);
    color: var(--thm06-paper-high);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* A cream archival print, using the registry's architectural rules. */
body.theme-thm06 .thm06-gallery-dialog {
    box-sizing: border-box;
    width: min(1020px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--thm06-ink);
    background: var(--thm06-paper-high);
    color: var(--thm06-ink);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.theme-thm06 .thm06-gallery-dialog::backdrop {
    background: rgba(22, 23, 21, 0.88);
    backdrop-filter: blur(5px);
}
.theme-thm06 .thm06-gallery-dialog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--thm06-line);
}
.theme-thm06 .thm06-gallery-dialog__bar p {
    margin: 0;
    font: 450 clamp(18px, 3vw, 25px)/1.25 var(--thm06-serif);
    letter-spacing: -0.035em;
}
.theme-thm06 .thm06-gallery-dialog button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--thm06-line);
    background: transparent;
    color: var(--thm06-ink);
    font: 650 12px/1.35 var(--thm06-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.theme-thm06 .thm06-gallery-dialog .thm06-gallery-dialog__close {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    border: 0;
    font-size: 28px;
    font-weight: 400;
}
.theme-thm06 .thm06-gallery-dialog button:focus-visible {
    outline: 3px solid var(--theme-focus);
    outline-offset: 3px;
}
.theme-thm06 .thm06-gallery-dialog button:disabled { opacity: 0.4; cursor: default; }
.theme-thm06 .thm06-gallery-dialog__print { margin: 0; padding: 20px 24px 0; }
.theme-thm06 .thm06-gallery-dialog__print img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: min(60dvh, 680px);
    max-height: calc(100dvh - 220px);
    background: var(--thm06-paper-low);
    object-fit: contain;
    filter: none;
}
.theme-thm06 .thm06-gallery-dialog__print figcaption {
    padding-top: 14px;
    color: var(--thm06-muted);
    font: 400 12px/1.6 var(--thm06-sans);
    overflow-wrap: anywhere;
}
.theme-thm06 .thm06-gallery-dialog[data-gallery-loading="true"] [data-theme-gallery-image] { opacity: 0.4; }
.theme-thm06 .thm06-gallery-dialog__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 24px;
    border-top: 1px solid var(--thm06-line);
}
.theme-thm06 .thm06-gallery-dialog__controls [data-theme-gallery-counter] {
    color: var(--thm06-muted);
    font: 650 12px/1.4 var(--thm06-sans);
    letter-spacing: 0.12em;
    white-space: nowrap;
}
@media (max-width: 479px) {
    body.theme-thm06 .thm06-gallery-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
    .theme-thm06 .thm06-gallery-dialog__bar { padding: 14px 16px; }
    .theme-thm06 .thm06-gallery-dialog__print { padding: 14px 14px 0; }
    .theme-thm06 .thm06-gallery-dialog__controls { gap: 12px; padding: 14px 16px; }
    .theme-thm06 .thm06-gallery-dialog__button-label { display: none; }
}

/* RSVP */
.theme-thm06 .thm06-rsvp {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(28rem, 1fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: start;
    background: var(--thm06-paper-low);
}

.theme-thm06 .thm06-rsvp__intro {
    position: sticky;
    top: 3rem;
}

.theme-thm06 .thm06-rsvp__intro h2 {
    max-width: 10ch;
}

.theme-thm06 .thm06-form {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.5rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--thm06-paper-high);
    box-shadow: 0 1.5rem 5rem rgba(32, 33, 31, 0.08);
}

.theme-thm06 .thm06-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.45rem;
}

.theme-thm06 .thm06-field--wide {
    grid-column: 1 / -1;
}

.theme-thm06 .thm06-field label {
    color: var(--thm06-ink);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theme-thm06 .thm06-field :where(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 3.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(32, 33, 31, 0.4);
    outline: none;
    background: transparent;
    color: var(--thm06-ink);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.theme-thm06 .thm06-field select {
    padding-right: 1.5rem;
}

.theme-thm06 .thm06-field textarea {
    min-height: 8rem;
}

.theme-thm06 .thm06-field :where(input, select, textarea)::placeholder {
    color: #76716a;
    opacity: 1;
}

.theme-thm06 .thm06-field :where(input, select, textarea):focus {
    border-bottom-color: var(--thm06-accent);
    box-shadow: 0 1px 0 var(--thm06-accent);
}

.theme-thm06 .thm06-form > .thm06-button {
    width: 100%;
    margin-top: 0.25rem;
}

.theme-thm06 .thm06-form__status:empty {
    min-height: 0;
    margin: 0;
}

.theme-thm06 .thm06-form__status:not(:empty) {
    padding: 0.75rem;
    background: var(--thm06-paper-low);
    font-size: 0.86rem;
}

.theme-thm06 .thm06-form__status[data-status="success"] {
    border-left: 3px solid #447250;
}

.theme-thm06 .thm06-form__status[data-status="error"] {
    border-left: 3px solid #a43d36;
}

/* Wishes */
.theme-thm06 .thm06-wishes {
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-wishes__featured {
    display: grid;
    grid-auto-columns: minmax(27rem, 36rem);
    grid-auto-flow: column;
    gap: 1rem;
    padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--thm06-accent) var(--thm06-paper-low);
}

.theme-thm06 .thm06-wish-card {
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border: 1px solid var(--thm06-line);
    background: var(--thm06-paper);
    scroll-snap-align: start;
}

.theme-thm06 .thm06-wish-card blockquote {
    font-family: var(--thm06-serif);
    font-size: clamp(1.35rem, 1.7vw, 1.65rem);
    font-weight: 430;
    line-height: 1.45;
}

.theme-thm06 .thm06-wish-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.theme-thm06 .thm06-wish-card figcaption > img,
.theme-thm06 .thm06-wish-card__initial {
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.theme-thm06 .thm06-wish-card__initial {
    display: grid;
    place-items: center;
    background: var(--thm06-accent);
    color: var(--thm06-paper-high);
    font-family: var(--thm06-serif);
    font-size: 1.35rem;
}

.theme-thm06 .thm06-wish-card figcaption > span:last-child {
    display: grid;
    min-width: 0;
}

.theme-thm06 .thm06-wish-card figcaption strong {
    overflow-wrap: break-word;
}

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

.theme-thm06 .thm06-wishes__guestbook {
    display: grid;
    grid-template-columns: minmax(24rem, 0.9fr) minmax(24rem, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    padding-top: clamp(4rem, 8vw, 7rem);
}

.theme-thm06 .thm06-wishes__guestbook .thm06-form {
    grid-template-columns: 1fr;
    border: 1px solid var(--thm06-line);
    box-shadow: none;
}

.theme-thm06 .thm06-wishes__guestbook .thm06-field--wide {
    grid-column: auto;
}

.theme-thm06 .thm06-wishes__messages {
    min-width: 0;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border: 1px solid var(--thm06-line);
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-wishes__messages > div {
    display: flex;
    min-height: 4rem;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-wishes__messages ul {
    display: grid;
    min-height: 20rem;
    max-height: 36rem;
    overflow-y: auto;
    list-style: none;
}

.theme-thm06 .thm06-wishes__messages li {
    display: grid;
    gap: 0.45rem;
    padding-block: 1.2rem;
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-wishes__messages li:only-child {
    align-content: center;
}

.theme-thm06 .thm06-wishes__messages li :where(strong, span, small, p) {
    overflow-wrap: anywhere;
}

.theme-thm06 .thm06-wishes__messages li small,
.theme-thm06 .thm06-wishes__empty {
    color: var(--thm06-muted);
}

/* Gift */
.theme-thm06 .thm06-gift {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(24rem, 1fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: center;
    background: var(--thm06-accent-deep);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-gift .thm06-kicker {
    color: #e0c5a2;
}

.theme-thm06 .thm06-gift__heading > p:not(.thm06-kicker) {
    color: rgba(251, 250, 247, 0.72);
}

.theme-thm06 .thm06-gift-card {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--thm06-paper-high);
    color: var(--thm06-ink);
}

.theme-thm06 .thm06-gift-card__select {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 5rem;
    gap: 1rem;
    align-items: center;
}

.theme-thm06 .thm06-gift-card__select img {
    width: 5rem;
    max-height: 2.6rem;
    object-fit: contain;
}

.theme-thm06 .thm06-gift-card__account {
    display: grid;
    min-width: 0;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-gift-card__account > span,
.theme-thm06 .thm06-gift-card__account > small {
    color: var(--thm06-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.theme-thm06 .thm06-gift-card__account > strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin-block: 0.45rem 0.15rem;
    font-family: var(--thm06-serif);
    font-size: clamp(1.5rem, 3.5vw, 3.6rem);
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.theme-thm06 .thm06-gift-card__account .thm06-button {
    width: fit-content;
    margin-top: 1.5rem;
}

/* Health note */
.theme-thm06 .thm06-health {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: center;
    background: var(--thm06-paper);
}

.theme-thm06 .thm06-health__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    list-style: none;
    border-top: 1px solid var(--thm06-line);
    border-left: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-health__list li {
    display: grid;
    min-width: 0;
    min-height: 10rem;
    align-content: space-between;
    gap: 1rem;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-right: 1px solid var(--thm06-line);
    border-bottom: 1px solid var(--thm06-line);
}

.theme-thm06 .thm06-health__list span {
    color: var(--thm06-accent);
    font-family: var(--thm06-serif);
    font-size: 1.55rem;
    line-height: 1;
}

.theme-thm06 .thm06-health__list p {
    max-width: 28rem;
    color: var(--thm06-muted);
}

/* Closing mirrors the cover without repeating its card composition. */
.theme-thm06 .thm06-closing {
    position: relative;
    display: grid;
    min-height: max(48rem, 100dvh);
    grid-template-columns: minmax(22rem, 0.8fr) minmax(30rem, 1.2fr);
    background: var(--thm06-dark);
    color: var(--thm06-paper-high);
}

.theme-thm06 .thm06-closing__registry {
    position: absolute;
    z-index: 3;
    inset: clamp(1.2rem, 3vw, 2.5rem) var(--thm06-gutter) auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(251, 250, 247, 0.28);
    color: rgba(251, 250, 247, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.theme-thm06 .thm06-closing__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #171715;
}

.theme-thm06 .thm06-closing__media::after {
    position: absolute;
    inset: 1.4rem;
    border: 1px solid rgba(251, 250, 247, 0.38);
    pointer-events: none;
    content: "";
}

.theme-thm06 .thm06-closing__media img {
    width: 100%;
    height: 100%;
    min-height: max(48rem, 100dvh);
    object-fit: cover;
    filter: grayscale(0.5) saturate(0.55) brightness(0.74) contrast(1.08);
}

.theme-thm06 .thm06-closing--monogram .thm06-closing__media {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, transparent 49.8%, rgba(251, 250, 247, 0.07) 50%, transparent 50.2%),
        #171715;
}

.theme-thm06 .thm06-closing__monogram {
    display: grid;
    width: clamp(9rem, 18vw, 15rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(251, 250, 247, 0.52);
    border-radius: 50%;
    font-family: var(--thm06-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 350;
}

.theme-thm06 .thm06-closing__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(6rem, 12vw, 11rem) var(--thm06-gutter) clamp(3rem, 6vw, 5rem);
}

/* The brown accent is too dark on the closing's charcoal (2.5:1). */
.theme-thm06 .thm06-closing .thm06-kicker {
    color: #d1b088;
}

.theme-thm06 .thm06-closing__copy > span {
    margin-top: 1rem;
    color: rgba(251, 250, 247, 0.65);
    font-size: 0.85rem;
}

.theme-thm06 .thm06-closing h2 {
    display: flex;
    max-width: 11ch;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.22em;
    margin-block: 0.8rem 1.8rem;
    font-family: var(--thm06-serif);
    font-size: clamp(3.3rem, 7.2vw, 7.5rem);
    font-weight: 380;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.theme-thm06 .thm06-closing h2 b {
    min-width: 0;
    max-width: 100%;
    font-weight: inherit;
    overflow-wrap: break-word;
}

.theme-thm06 .thm06-closing h2 i {
    color: #c9a97f;
    font-size: 0.6em;
    font-weight: 350;
}

.theme-thm06 .thm06-closing--names-long h2 {
    font-size: clamp(2.8rem, 5.9vw, 6.2rem);
}

.theme-thm06 .thm06-closing--names-xlong h2 {
    font-size: clamp(2.25rem, 4.8vw, 5rem);
    line-height: 1;
}

.theme-thm06 .thm06-closing__copy > p:not(.thm06-kicker) {
    max-width: 34rem;
    color: rgba(251, 250, 247, 0.7);
}

.theme-thm06 .thm06-closing__copy time {
    margin-top: 1.4rem;
    color: #c9a97f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.theme-thm06 .thm06-closing__copy > small {
    margin-top: auto;
    padding-top: 3rem;
    color: rgba(251, 250, 247, 0.56);
    font-size: 0.75rem;
}

.theme-thm06 .thm06-closing__copy > small a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    padding-block: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Announcements */

.theme-thm06 .thm06-sr-status {
    position: fixed;
    z-index: 5200;
    right: 5rem;
    bottom: 1rem;
    max-width: min(26rem, calc(100vw - 7rem));
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--thm06-ink);
    color: var(--thm06-paper-high);
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.theme-thm06 .thm06-sr-status:not(:empty) {
    padding: 0.75rem 1rem;
}

/* The status line stays for screen readers only: the kernel's toast (.theme-v2-toast)
   already confirms a copy on screen, and showing both stacked two identical notices. */

@media (min-width: 1024px) {
    .theme-thm06 .thm06-wishes__featured {
        grid-auto-columns: auto;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
    }
}

@media (max-width: 1199px) {
    body.theme-thm06 {
        --thm06-content: 72rem;
    }

    .theme-thm06 .thm06-cover__composition {
        grid-template-columns: minmax(28rem, 0.95fr) minmax(22rem, 1.05fr);
    }

    .theme-thm06 .thm06-person {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .theme-thm06 .thm06-person__copy {
        padding-top: 0.5rem;
    }

    .theme-thm06 .thm06-story-card {
        grid-template-columns: 5rem minmax(0, 1fr) minmax(15rem, 0.78fr);
    }

    .theme-thm06 .thm06-story-card:nth-child(even) {
        grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1fr) 5rem;
    }
}

@media (max-width: 900px) {
    body.theme-thm06 {
        --thm06-gutter: clamp(1.25rem, 5vw, 2.5rem);
        --thm06-section-y: clamp(4.5rem, 11vw, 7rem);
    }

    .theme-thm06 .thm06-cover__composition {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(9rem, 31dvh) minmax(0, 1fr);
    }

    .theme-thm06 .thm06-cover__copy {
        grid-row: 2;
        justify-content: center;
        padding: clamp(1.2rem, 4vh, 2.5rem) var(--thm06-gutter) max(1.35rem, env(safe-area-inset-bottom));
    }

    .theme-thm06 .thm06-cover__copy .thm06-kicker {
        margin-bottom: 0.75rem;
    }

    .theme-thm06 .thm06-cover h1,
    .theme-thm06 .thm06-cover--names-long h1,
    .theme-thm06 .thm06-cover--names-xlong h1 {
        max-width: 100%;
        font-size: clamp(2.5rem, 10vw, 4.8rem);
        line-height: 0.94;
    }

    .theme-thm06 .thm06-cover--names-long h1 {
        font-size: clamp(2.25rem, 8.4vw, 4rem);
    }

    .theme-thm06 .thm06-cover--names-xlong h1 {
        font-size: clamp(1.85rem, 7vw, 3.25rem);
        line-height: 1;
    }

    .theme-thm06 .thm06-cover .thm06-rule {
        margin-block: 0.85rem 0.55rem;
    }

    .theme-thm06 .thm06-cover__guest {
        margin-top: 0.75rem;
        padding-block: 0.45rem;
    }

    .theme-thm06 .thm06-cover .thm06-button {
        margin-top: 0.9rem;
    }

    .theme-thm06 .thm06-cover__media {
        grid-row: 1;
        min-height: 0;
    }

    .theme-thm06 .thm06-cover__media img {
        min-height: 0;
        height: 100%;
    }

    .theme-thm06 .thm06-cover__media::after {
        inset: 0.75rem;
    }

    .theme-thm06 .thm06-cover--monogram .thm06-cover__media {
        flex-direction: row;
    }

    .theme-thm06 .thm06-cover__monogram {
        width: clamp(5.5rem, 18vw, 8rem);
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    .theme-thm06 .thm06-intro {
        min-height: 0;
        gap: clamp(3.5rem, 9vw, 5.5rem);
    }

    .theme-thm06 .thm06-nav {
        grid-template-columns: auto 1fr;
        gap: 0.25rem 1rem;
        padding-block: 0.75rem;
    }

    .theme-thm06 .thm06-nav__folio {
        justify-self: end;
        text-align: right;
    }

    .theme-thm06 .thm06-nav__links {
        grid-column: 1 / -1;
        justify-content: space-between;
        gap: 0.65rem;
        overflow-x: auto;
    }

    .theme-thm06 .thm06-intro__statement,
    .theme-thm06 .thm06-heading--split,
    .theme-thm06 .thm06-events__heading,
    .theme-thm06 .thm06-gallery__heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .theme-thm06 .thm06-intro__statement .thm06-kicker,
    .theme-thm06 .thm06-events__heading .thm06-kicker,
    .theme-thm06 .thm06-gallery__heading .thm06-kicker {
        grid-column: auto;
        margin-bottom: 0;
    }

    .theme-thm06 .thm06-intro__statement h2,
    .theme-thm06 .thm06-intro--names-long .thm06-intro__statement h2,
    .theme-thm06 .thm06-intro--names-xlong .thm06-intro__statement h2 {
        max-width: 15ch;
        font-size: clamp(2.8rem, 9.2vw, 5rem);
        line-height: 0.98;
    }

    .theme-thm06 .thm06-intro--names-long .thm06-intro__statement h2 {
        font-size: clamp(2.55rem, 8vw, 4.4rem);
    }

    .theme-thm06 .thm06-intro--names-xlong .thm06-intro__statement h2 {
        font-size: clamp(2.2rem, 7vw, 3.8rem);
    }

    .theme-thm06 .thm06-intro__lead {
        padding-top: 1.15rem;
    }

    .theme-thm06 .thm06-intro__event {
        grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
    }

    .theme-thm06 .thm06-intro__event small {
        grid-column: 2;
        text-align: left;
    }

    .theme-thm06 .thm06-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .theme-thm06 .thm06-countdown > .thm06-kicker {
        grid-column: 1 / -1;
        min-height: 3.5rem;
        justify-content: center;
        padding: 0.8rem;
        border-bottom: 1px solid var(--thm06-line);
    }

    .theme-thm06 .thm06-countdown > div:first-of-type {
        border-left: 0;
    }

    .theme-thm06 .thm06-couple__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 4rem;
    }

    .theme-thm06 .thm06-person {
        grid-template-columns: minmax(12rem, 0.75fr) minmax(14rem, 1.25fr);
    }

    .theme-thm06 .thm06-event {
        grid-template-columns: 4rem minmax(8rem, 0.4fr) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .theme-thm06 .thm06-event__map {
        grid-column: 2 / -1;
    }

    .theme-thm06 .thm06-dresscode,
    .theme-thm06 .thm06-livestream,
    .theme-thm06 .thm06-rsvp,
    .theme-thm06 .thm06-gift,
    .theme-thm06 .thm06-health {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .theme-thm06 .thm06-rsvp__intro {
        position: static;
    }

    .theme-thm06 .thm06-story-card,
    .theme-thm06 .thm06-story-card:nth-child(even) {
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 1.25rem 2rem;
    }

    .theme-thm06 .thm06-story-card .thm06-story-card__meta,
    .theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__meta {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-right: 0.75rem;
        border-right: 1px solid var(--thm06-line);
        border-left: 0;
    }

    .theme-thm06 .thm06-story-card .thm06-story-card__media,
    .theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__media {
        grid-column: 2;
        grid-row: 1;
    }

    .theme-thm06 .thm06-story-card .thm06-story-card__copy,
    .theme-thm06 .thm06-story-card:nth-child(even) .thm06-story-card__copy {
        grid-column: 2;
        grid-row: 2;
    }

    .theme-thm06 .thm06-story-card--text .thm06-story-card__copy,
    .theme-thm06 .thm06-story-card--text:nth-child(even) .thm06-story-card__copy {
        grid-row: 1;
    }

    .theme-thm06 .thm06-story-card__meta time {
        writing-mode: vertical-rl;
    }

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

    .theme-thm06 .thm06-closing {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(18rem, 52dvh) auto;
    }

    .theme-thm06 .thm06-closing__media img {
        min-height: 0;
        height: 100%;
    }

    .theme-thm06 .thm06-closing__copy {
        min-height: 40rem;
        padding-top: 5rem;
    }
}

@media (max-width: 600px) {
    body.theme-thm06 {
        --thm06-section-y: 4.5rem;
        font-size: 0.94rem;
    }

    .theme-thm06 .thm06-section {
        overflow: clip;
    }

    .theme-thm06 .thm06-cover__registry {
        inset-inline: var(--thm06-gutter);
    }

    .theme-thm06 .thm06-cover__registry span:last-child {
        display: none;
    }

    .theme-thm06 .thm06-cover__copy {
        min-width: 0;
        overflow: hidden;
    }

    .theme-thm06 .thm06-nav__folio {
        font-size: 0.75rem;
    }

    .theme-thm06 .thm06-nav__links a {
        min-width: 44px;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .theme-thm06 .thm06-heading h2,
    .theme-thm06 .thm06-dresscode__copy h2,
    .theme-thm06 .thm06-livestream__copy h2,
    .theme-thm06 .thm06-rsvp__intro h2,
    .theme-thm06 .thm06-gift__heading h2,
    .theme-thm06 .thm06-health__copy h2 {
        max-width: 100%;
        font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .theme-thm06 .thm06-intro__event {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 1.1rem;
    }

    .theme-thm06 .thm06-intro__event small {
        grid-column: auto;
    }

    .theme-thm06 .thm06-countdown > div {
        min-height: 5.4rem;
        padding: 0.65rem 0.3rem;
    }

    .theme-thm06 .thm06-countdown strong {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
    }

    .theme-thm06 .thm06-countdown span {
        font-size: 0.75rem;
    }

    .theme-thm06 .thm06-person {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-thm06 .thm06-person__media {
        aspect-ratio: 4 / 5;
    }

    .theme-thm06 .thm06-person h3,
    .theme-thm06 .thm06-person--medium h3,
    .theme-thm06 .thm06-person--long h3,
    .theme-thm06 .thm06-person--xlong h3 {
        font-size: clamp(2.15rem, 11vw, 3.4rem);
    }

    .theme-thm06 .thm06-person--long h3 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .theme-thm06 .thm06-person--xlong h3 {
        font-size: clamp(1.65rem, 7.5vw, 2.4rem);
    }

    .theme-thm06 .thm06-event {
        grid-template-columns: 3.4rem minmax(0, 1fr);
        gap: 1.3rem;
    }

    .theme-thm06 .thm06-event__folio {
        grid-row: 1 / 3;
        min-height: 100%;
    }

    .theme-thm06 .thm06-event__date,
    .theme-thm06 .thm06-event__copy,
    .theme-thm06 .thm06-event__map {
        grid-column: 2;
    }

    .theme-thm06 .thm06-event__date time {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        align-items: baseline;
        gap: 0.6rem;
    }

    .theme-thm06 .thm06-event__date strong {
        font-size: 3rem;
    }

    .theme-thm06 .thm06-event h3 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .theme-thm06 .thm06-event__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-thm06 .thm06-event__actions .thm06-button,
    .theme-thm06 .thm06-event__actions .thm06-text-link {
        width: 100%;
        justify-content: center;
    }

    .theme-thm06 .thm06-dresscode__palette,
    .theme-thm06 .thm06-health__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-thm06 .thm06-health__list li {
        min-height: 8rem;
    }

    .theme-thm06 .thm06-livestream__meta > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }

    .theme-thm06 .thm06-quote {
        min-height: 42rem;
    }

    .theme-thm06 .thm06-quote blockquote p {
        font-size: clamp(1.9rem, 9.4vw, 3.1rem);
        line-height: 1.24;
    }

    .theme-thm06 .thm06-story-card,
    .theme-thm06 .thm06-story-card:nth-child(even) {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        gap: 1rem;
    }

    .theme-thm06 .thm06-story-card__meta span {
        font-size: 2rem;
    }

    .theme-thm06 .thm06-story-card__copy h3 {
        font-size: clamp(1.85rem, 9vw, 2.8rem);
    }

    .theme-thm06 .thm06-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.25rem;
    }

    .theme-thm06 .thm06-form .thm06-field--wide {
        grid-column: auto;
    }

    .theme-thm06 .thm06-wishes__featured {
        grid-auto-columns: minmax(17rem, calc(100vw - (var(--thm06-gutter) * 2) - 0.5rem));
    }

    .theme-thm06 .thm06-wish-card {
        min-height: 18rem;
    }

    /* Stacked, the label (and reload link) set the height: the desktop row's 4rem
       left an empty band under a lone label. */
    .theme-thm06 .thm06-wishes__messages > div {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 0.75rem;
    }

    .theme-thm06 .thm06-wishes__messages {
        min-height: 0;
        padding: 1.25rem;
    }

    .theme-thm06 .thm06-wishes__messages ul {
        min-height: 12rem;
    }

    .theme-thm06 .thm06-gift-card {
        padding: 1.25rem;
    }

    .theme-thm06 .thm06-gift-card__select {
        grid-template-columns: minmax(0, 1fr) 3.5rem;
    }

    .theme-thm06 .thm06-gift-card__select img {
        width: 3.5rem;
    }

    .theme-thm06 .thm06-closing {
        grid-template-rows: minmax(15rem, 42dvh) auto;
    }

    .theme-thm06 .thm06-closing__registry {
        inset-inline: var(--thm06-gutter);
    }

    .theme-thm06 .thm06-closing__copy {
        min-height: 36rem;
        padding-top: 4.5rem;
    }

    .theme-thm06 .thm06-closing h2,
    .theme-thm06 .thm06-closing--names-long h2,
    .theme-thm06 .thm06-closing--names-xlong h2 {
        max-width: 100%;
        font-size: clamp(2.7rem, 13vw, 4.4rem);
    }

    .theme-thm06 .thm06-closing--names-long h2 {
        font-size: clamp(2.35rem, 10.5vw, 3.6rem);
    }

    .theme-thm06 .thm06-closing--names-xlong h2 {
        font-size: clamp(2rem, 8.8vw, 3rem);
    }

    .theme-thm06 .thm06-sr-status {
        right: var(--thm06-gutter);
        bottom: 1rem;
        left: var(--thm06-gutter);
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 359px) {
    body.theme-thm06 {
        --thm06-gutter: 1rem;
    }

    .theme-thm06 .thm06-cover__composition {
        grid-template-rows: minmax(7.5rem, 27dvh) minmax(0, 1fr);
    }

    .theme-thm06 .thm06-cover__copy .thm06-kicker {
        font-size: 0.75rem;
    }

    .theme-thm06 .thm06-cover h1,
    .theme-thm06 .thm06-cover--names-long h1,
    .theme-thm06 .thm06-cover--names-xlong h1 {
        font-size: 2.25rem;
    }

    .theme-thm06 .thm06-cover--names-long h1 {
        font-size: 1.95rem;
    }

    .theme-thm06 .thm06-cover--names-xlong h1 {
        font-size: 1.65rem;
    }

    .theme-thm06 .thm06-cover__guest span,
    .theme-thm06 .thm06-cover__date {
        font-size: 0.75rem;
    }

    .theme-thm06 .thm06-cover__guest strong {
        font-size: 0.95rem;
    }

    .theme-thm06 .thm06-nav__links {
        gap: 0.35rem;
    }

    .theme-thm06 .thm06-nav__links a {
        font-size: 0.75rem;
    }

    .theme-thm06 .thm06-intro__statement h2,
    .theme-thm06 .thm06-intro--names-long .thm06-intro__statement h2,
    .theme-thm06 .thm06-intro--names-xlong .thm06-intro__statement h2 {
        font-size: 2.35rem;
    }

    .theme-thm06 .thm06-countdown > div {
        padding-inline: 0.15rem;
    }

    .theme-thm06 .thm06-countdown strong {
        font-size: 1.55rem;
    }

    .theme-thm06 .thm06-countdown span {
        letter-spacing: 0.04em;
    }
}

@media (max-height: 650px) and (max-width: 900px) {
    .theme-thm06 .thm06-cover__composition {
        grid-template-rows: minmax(6.5rem, 25dvh) minmax(0, 1fr);
    }

    .theme-thm06 .thm06-cover__copy {
        padding-block: 0.7rem;
    }

    .theme-thm06 .thm06-cover__copy .thm06-kicker {
        margin-bottom: 0.45rem;
    }

    .theme-thm06 .thm06-cover .thm06-rule {
        margin-block: 0.45rem 0.35rem;
    }

    .theme-thm06 .thm06-cover__guest {
        margin-top: 0.4rem;
    }

    .theme-thm06 .thm06-cover .thm06-button {
        margin-top: 0.55rem;
        padding-block: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.theme-thm06) {
        scroll-behavior: auto;
    }

    .theme-thm06 .thm06-cover,.theme-thm06 .thm06-gallery__item img,.theme-thm06 .thm06-sr-status {
        animation: none !important;
        transition: none !important;
    }
}

@media (forced-colors: active) {
    .theme-thm06 .thm06-button,.theme-thm06 .thm06-field :where(input, select, textarea),.theme-thm06 .thm06-wish-card,.theme-thm06 .thm06-gift-card {
        border: 1px solid CanvasText;
    }
}

/* Floating controls use the shared dock (theme-system.css), coloured for this theme. */
.thm06-dock {
    --theme-dock-bg: #20211f;
    --theme-dock-fg: #fbfaf7;
    --theme-dock-border: rgba(251, 250, 247, 0.35);
    --theme-dock-bg-on-dark: rgba(251, 250, 247, 0.94);
    --theme-dock-fg-on-dark: #20211f;
    --theme-dock-border-on-dark: rgba(32, 33, 31, 0.2);
}

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

/* Verse: a reading, not a poster. */
.theme-thm06 .thm06-quote {
    min-height: 0;
}

.theme-thm06 .thm06-quote blockquote p {
    max-width: 24ch;
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.32;
}

/* One map control per event. */
.theme-thm06 .thm06-map .theme-v2-map__panel iframe {
    filter: grayscale(1) contrast(0.9);
}

@media (max-width: 900px) {
    /* Cover: the photograph takes the space the copy does not need, and the
       copy sits at the foot instead of floating in the middle of empty paper. */
    .theme-thm06 .thm06-cover__composition {
        grid-template-rows: minmax(10rem, 1fr) auto;
    }

    .theme-thm06 .thm06-cover__copy {
        justify-content: flex-end;
    }

    .theme-thm06 .thm06-quote {
        min-height: 0;
    }

    .theme-thm06 .thm06-quote blockquote p {
        font-size: clamp(1.4rem, 6vw, 1.85rem);
    }
}

/* Desktop opening: the headline is sized by the screen's height as well as its
   width and set on a wider measure, so it reads in about four lines and the date
   stays on the first screen. */
@media (min-width: 901px) {
    .theme-thm06 .thm06-intro__statement h2 {
        max-width: 17ch;
        font-size: clamp(3rem, min(5.2vw, 9.5vh), 6rem);
        letter-spacing: -0.05em;
        line-height: 1;
    }

    .theme-thm06 .thm06-intro--names-long .thm06-intro__statement h2 {
        font-size: clamp(2.8rem, min(4.6vw, 8.5vh), 5.4rem);
    }

    .theme-thm06 .thm06-intro--names-xlong .thm06-intro__statement h2 {
        font-size: clamp(2.5rem, min(4vw, 7.5vh), 4.7rem);
    }

    /* The phone measure (24ch) left a narrow column on wide screens; the verse
       now reads in four or five lines. */
    .theme-thm06 .thm06-quote blockquote p {
        max-width: 34ch;
    }

    /* Cover registry: sits inside the photograph's frame. Across the whole cover its
       light monogram vanished on the paper column and its rule ran out of the frame.
       The photograph column is the composition's second track (see its columns). */
    .theme-thm06 .thm06-cover--with-media .thm06-cover__registry {
        inset: 2.5rem 2.5rem auto calc(100% - min(52.5%, 100% - 28rem) + 2.5rem);
    }
}

@media (min-width: 1200px) {
    .theme-thm06 .thm06-cover--with-media .thm06-cover__registry {
        left: calc(100% - min(52.5%, 100% - 32rem) + 2.5rem);
    }
}

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

/* Event folio: the number stands alone; the stray "ACARA" caption is dropped. */
.theme-thm06 .thm06-event__folio small {
    display: none;
}

/* Phones: each care note sits beside its number instead of a tall empty box. */
@media (max-width: 699px) {
    .theme-thm06 .thm06-health__list li {
        min-height: 0;
        grid-template-columns: 2.6rem minmax(0, 1fr);
        align-content: start;
        align-items: baseline;
    }
}

/* Small desktops: beside the heading the list fits two boxes a row, which left the
   third note alone under an empty cell. The notes stack as rows instead. */
@media (min-width: 901px) and (max-width: 1199px) {
    .theme-thm06 .thm06-health__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-thm06 .thm06-health__list li {
        min-height: 0;
        grid-template-columns: 3rem minmax(0, 1fr);
        align-content: start;
        align-items: baseline;
    }
}

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

.theme-thm06 #thm06-intro-title {
    container-type: inline-size;
}

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

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

/* Video: one framed print per film on light archive paper, between the dark gallery
   and the RSVP. One film is centred at a comfortable width; several sit in rows that
   never leave a film alone. */
.theme-thm06 .thm06-video {
    --theme-video-gap: clamp(1rem, 2.2vw, 2rem);
    --theme-video-radius: 0;
    --theme-video-border: var(--thm06-line);
    --theme-video-frame: var(--thm06-dark);
    --theme-video-button: var(--thm06-paper-high);
    --theme-video-button-text: var(--thm06-ink);
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-video .thm06-video__reel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem) var(--theme-video-gap);
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    counter-reset: thm06-film;
}

.theme-thm06 .thm06-video[data-video-count="1"] .thm06-video__reel {
    width: min(100%, 62rem);
}

.theme-thm06 .thm06-video .theme-video__item {
    counter-increment: thm06-film;
    container-type: inline-size;
}

/* The print's inner hairline, as on the cover and the portraits. */
.theme-thm06 .thm06-video .theme-video__frame::before {
    position: absolute;
    z-index: 1;
    inset: clamp(0.6rem, 1.4vw, 1rem);
    border: 1px solid rgba(251, 250, 247, 0.5);
    content: "";
    pointer-events: none;
}

.theme-thm06 .thm06-video .theme-video__frame[data-video-state="playing"]::before {
    display: none;
}

.theme-thm06 .thm06-video .theme-video__poster {
    filter: saturate(0.78) contrast(1.03);
}

/* The play mark grows with its print, so three small films are not all button. */
.theme-thm06 .thm06-video .theme-video__play-icon {
    width: clamp(3rem, 14cqi, 5rem);
    border: 1px solid rgba(32, 33, 31, 0.16);
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.theme-thm06 .thm06-video .theme-video__play,
body.theme-thm06 .thm06-video .theme-video__frame--link {
    font-family: var(--thm06-sans);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.16em;
}

/* The whole print is the play button: a guest taps the film, not a small target. */
body.theme-thm06 .thm06-video .theme-video__play {
    z-index: 2;
    align-self: stretch;
    justify-self: stretch;
    justify-content: center;
}

.theme-thm06 .thm06-video :is(.theme-video__play, .theme-video__frame--link):is(:hover, :focus-visible) {
    --theme-video-button: var(--thm06-accent);
    --theme-video-button-text: var(--thm06-paper-high);
}

/* Focus rings the whole print in the theme's brown. The frame clips its button, so
   the ring is drawn on the frame; browsers without :has() keep an inner ring. */
.theme-thm06 .thm06-video .theme-video__play:focus-visible {
    outline: 2px solid var(--thm06-paper-high) !important;
    outline-offset: -0.5rem !important;
}

.theme-thm06 .thm06-video .theme-video__frame--link:focus-visible {
    outline: 3px solid var(--thm06-accent) !important;
    outline-offset: 3px !important;
}

.theme-thm06 .thm06-video .theme-video__frame:has(.theme-video__play:focus-visible) {
    outline: 3px solid var(--thm06-accent);
    outline-offset: 3px;
}

@supports selector(:has(*)) {
    .theme-thm06 .thm06-video .theme-video__play:focus-visible {
        outline-color: transparent !important;
    }
}

body.theme-thm06 .thm06-video .theme-video__caption {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-top: 0.85rem;
    font-family: var(--thm06-serif);
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    letter-spacing: -0.03em;
    text-align: left;
}

body.theme-thm06 .thm06-video .theme-video__caption::before {
    color: var(--thm06-accent);
    content: counter(thm06-film, decimal-leading-zero);
    font-family: var(--thm06-sans);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

@media (min-width: 601px) and (max-width: 900px) {
    .theme-thm06 .thm06-video:not([data-video-count="1"]) .thm06-video__reel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Films pair up; an odd last one is centred under the pairs. */
    .theme-thm06 .thm06-video:not([data-video-count="1"]) .theme-video__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--theme-video-gap)) / 2);
    }
}

@media (min-width: 901px) {
    .theme-thm06 .thm06-video:not([data-video-count="1"]) .thm06-video__reel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* Three films to a row; two, four and the first pair of five sit two to a row. */
    .theme-thm06 .thm06-video:not([data-video-count="1"]) .theme-video__item {
        grid-column: span 2;
    }

    .theme-thm06 .thm06-video:is([data-video-count="2"], [data-video-count="4"]) .theme-video__item,
    .theme-thm06 .thm06-video[data-video-count="5"] .theme-video__item:nth-child(-n + 2) {
        grid-column: span 3;
    }

    .theme-thm06 .thm06-video:not([data-video-count="1"]) .theme-video__item:last-child:nth-child(odd) {
        grid-column: span 2;
        justify-self: stretch;
        width: auto;
    }
}

/* Kirim Kado: the gift band's light mirror. The addresses take the left column and
   the heading the right, so the brown gift band is not followed by a second one. */
.theme-thm06 .thm06-gift-address {
    display: grid;
    grid-template-columns: minmax(24rem, 1fr) minmax(18rem, 0.72fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: start;
    background: var(--thm06-paper-high);
}

.theme-thm06 .thm06-gift-address__heading {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.theme-thm06 .thm06-gift-address__heading h2 {
    margin-block: 0.85rem 1.3rem;
    font-family: var(--thm06-serif);
    font-size: clamp(2.65rem, 5.4vw, 5.8rem);
    font-weight: 420;
    letter-spacing: -0.055em;
    line-height: 1;
    text-wrap: balance;
}

.theme-thm06 .thm06-gift-address__heading > p:not(.thm06-kicker) {
    max-width: 34rem;
    color: var(--thm06-muted);
}

.theme-thm06 .thm06-gift-address .thm06-gift-address__ledger {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    grid-column: 1;
    grid-row: 1;
    border-top: 1px solid var(--thm06-ink);
    counter-reset: thm06-address;
}

/* Each address is a numbered entry, like the event ledger. */
.theme-thm06 .thm06-gift-address .theme-gift-address__card {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: 0;
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border: 0;
    border-bottom: 1px solid var(--thm06-line);
    background: transparent;
    color: var(--thm06-ink);
    text-align: left;
    counter-increment: thm06-address;
}

.theme-thm06 .thm06-gift-address .theme-gift-address__card::before {
    grid-column: 1;
    grid-row: 1 / span 6;
    align-self: stretch;
    padding-right: 1rem;
    border-right: 1px solid var(--thm06-line);
    content: counter(thm06-address, decimal-leading-zero);
    font-family: var(--thm06-serif);
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    font-weight: 350;
    letter-spacing: -0.06em;
    line-height: 1;
    /* A wider custom font keeps the two digits together. */
    white-space: nowrap;
}

.theme-thm06 .thm06-gift-address .theme-gift-address__card > * {
    grid-column: 2;
    max-width: 40rem;
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__label {
    color: var(--thm06-accent);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    opacity: 1;
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__name {
    margin-block: 0.55rem 0.35rem;
    font-family: var(--thm06-serif);
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 420;
    letter-spacing: -0.045em;
    line-height: 1.05;
    overflow-wrap: break-word;
    text-wrap: balance;
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__phone a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-weight: 650;
    text-decoration-color: var(--thm06-accent);
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__address {
    max-width: 40rem;
    margin-top: 0.35rem;
    line-height: 1.75;
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__note {
    margin-top: 0.55rem;
    color: var(--thm06-muted);
    font-size: 0.9rem;
    font-style: normal;
    opacity: 1;
}

body.theme-thm06 .thm06-gift-address .theme-gift-address__copy {
    justify-self: start;
    margin-top: 1.5rem;
}

.theme-thm06 .thm06-gift-address .theme-gift-address__copy:focus-visible {
    outline: 3px solid var(--thm06-accent) !important;
    outline-offset: 3px !important;
}

.theme-thm06 .thm06-gift-address .theme-gift-address__copy[data-copy-state="copied"] {
    background: var(--thm06-ink);
    color: var(--thm06-paper-high);
}

@media (max-width: 900px) {
    .theme-thm06 .thm06-gift-address {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .theme-thm06 .thm06-gift-address__heading,
    .theme-thm06 .thm06-gift-address .thm06-gift-address__ledger {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .theme-thm06 .thm06-gift-address__heading h2 {
        max-width: 100%;
        font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .theme-thm06 .thm06-gift-address .theme-gift-address__card {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        column-gap: 1rem;
    }

    .theme-thm06 .thm06-gift-address .theme-gift-address__card::before {
        padding-right: 0.6rem;
        font-size: 2rem;
    }
}

/* Story: a chapter without a photograph keeps two columns (number and words) on
   small desktops too, instead of an empty photograph column. */
@media (min-width: 901px) and (max-width: 1199px) {
    .theme-thm06 .thm06-story-card--text {
        grid-template-columns: 5rem minmax(0, 1fr);
    }

    .theme-thm06 .thm06-story-card--text:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) 5rem;
    }
}

/* An even chapter without a photograph sits against its number on the right. */
@media (min-width: 901px) {
    .theme-thm06 .thm06-story-card--text:nth-child(even) .thm06-story-card__copy {
        justify-self: end;
    }
}

/* Teks & Font: a text the couple writes may hold one long word (Bapak/Ibu/Saudara/i). Body text
   breaks instead of pushing past its column (headings shrink first: text-fit.js). Zero
   specificity, so the theme's own wrapping rules win. */
:where(body.theme-thm06) :where(h4, p, small, li, blockquote, figcaption) {
    overflow-wrap: break-word;
}
