/*
 * InVie thm03 / Forest Press
 * A native Theme System v2 renderer with a green torn-paper editorial identity.
 */

html:has(body.theme-thm03) {
    scroll-behavior: smooth;
    scrollbar-color: #71856f #f3f1e7;
}

body.theme-thm03 {
    --thm03-paper: #f3f1e7;
    --thm03-paper-muted: #e3e8dc;
    --thm03-sage: #c4d0bf;
    --thm03-fern: #71856f;
    --thm03-moss: #3d5641;
    --thm03-forest: #203a2a;
    --thm03-ink: #15231a;
    --thm03-muted: #56665a;
    --thm03-on-dark: #fafbf6;
    --thm03-focus: #6b9132;
    --thm03-line: rgba(21, 35, 26, 0.2);
    /* The couple's own fonts (custom font add-on) take over when set; see x-theme-custom-fonts.
       Headings, kickers and the couple's names take the heading font; body text, buttons and
       form labels take the body font. */
    --thm03-display: var(--invie-font-heading, "Manrope"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --thm03-serif: var(--invie-font-body, "Noto Serif"), Georgia, "Times New Roman", serif;
    --thm03-name: var(--invie-font-heading, "Noto Serif"), Georgia, "Times New Roman", serif;
    --thm03-ui: var(--invie-font-body, "Manrope"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --theme-surface: var(--thm03-paper);
    --theme-surface-muted: var(--thm03-paper-muted);
    --theme-text: var(--thm03-ink);
    --theme-text-muted: var(--thm03-muted);
    --theme-accent: var(--thm03-moss);
    --theme-accent-contrast: var(--thm03-on-dark);
    --theme-focus: var(--thm03-focus);
    --theme-font-display: var(--thm03-display);
    --theme-font-body: var(--thm03-serif);
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    background: var(--thm03-paper);
    color: var(--thm03-ink);
    font-family: var(--thm03-serif);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    line-height: 1.72;
}

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

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

body.theme-thm03 :where(a:not(.thm03-button)) {
    color: inherit;
    text-decoration: none;
}

/* A zero-specificity reset: it must not strip the border of .thm03-button--outline (Salin
   nomor, Salin alamat), which a body-scoped selector outranked. */
:where(body.theme-thm03 button) {
    border: 0;
}

body.theme-thm03 :where(img[data-theme-photo]) {
    border-radius: 0;
    box-shadow: none;
}

body.theme-thm03 :where([data-theme-section]:not([data-theme-section="cover"])) {
    content-visibility: visible !important;
    contain: none !important;
}

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

body.theme-thm03:not([data-theme-state="open"]) .thm03-invitation[aria-hidden="true"] {
    visibility: visible;
}

.thm03-page,
.thm03-invitation {
    min-width: 0;
    background: var(--thm03-paper);
}

.thm03-invitation {
    opacity: 1;
}

.thm03-kicker {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: clamp(0.75rem, 0.64rem + 0.14vw, 0.8125rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.thm03-section {
    padding: clamp(5.5rem, 11vw, 10rem) clamp(1.25rem, 5.5vw, 6rem);
}

.thm03-heading {
    width: min(100%, 78rem);
    margin: 0 auto clamp(3rem, 6vw, 6rem);
}

.thm03-heading h2,
.thm03-dresscode h2,
.thm03-health h2,
.thm03-gift h2 {
    max-width: 13ch;
    margin-top: 0.7rem;
    font-family: var(--thm03-display);
    font-size: clamp(2.55rem, 5.6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.94;
    text-wrap: balance;
}

.thm03-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
    gap: clamp(2rem, 7vw, 8rem);
    align-items: end;
}

.thm03-heading--split > p,
.thm03-couple__intro,
.thm03-heading--gallery > p:last-child,
.thm03-heading--wishes > p:last-child {
    max-width: 38rem;
    color: var(--thm03-muted);
    line-height: 1.85;
}

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

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

.thm03-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--thm03-ui);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    /* Link buttons (Buka YouTube) are left out of the anchor reset, so drop the underline here. */
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.thm03-button--paper {
    background: var(--thm03-ink);
    color: var(--thm03-on-dark);
}

.thm03-button--paper:hover,
.thm03-button--dark:hover {
    background: var(--thm03-moss);
}

.thm03-button--dark {
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
}

.thm03-button--light {
    background: var(--thm03-on-dark);
    color: var(--thm03-forest);
}

.thm03-button--outline {
    border-color: currentColor;
    background: transparent;
    color: var(--thm03-forest);
}

.thm03-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.45rem;
    border-bottom: 1px solid currentColor;
    color: var(--thm03-forest);
    font-family: var(--thm03-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Opening cover: one opaque, composed layer over an already-laid-out invitation. */
.thm03-cover {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(24rem, 43%) minmax(0, 57%);
    grid-template-areas: "paper media";
    min-width: 0;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--thm03-forest);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 820ms;
    will-change: transform;
}

body.theme-thm03[data-theme-state="open"] .thm03-cover {
    visibility: hidden;
    opacity: 1;
    transform: translate3d(0, -103%, 0);
}

.thm03-cover__media {
    position: relative;
    grid-area: media;
    min-width: 0;
    overflow: hidden;
    background: var(--thm03-forest);
}

.thm03-cover__media img,
.thm03-cover__wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.thm03-cover__media img {
    object-fit: cover;
    filter: saturate(0.78) contrast(1.04) brightness(0.88) sepia(0.08);
    transform: scale(1.002);
}

.thm03-cover__wash {
    background:
        linear-gradient(90deg, rgba(32, 58, 42, 0.34), transparent 42%),
        linear-gradient(180deg, rgba(21, 35, 26, 0.04), rgba(21, 35, 26, 0.25));
}

.thm03-cover__paper {
    position: relative;
    z-index: 2;
    grid-area: paper;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: max(2rem, env(safe-area-inset-top)) clamp(2rem, 5vw, 5.5rem) max(2rem, env(safe-area-inset-bottom));
    background:
        linear-gradient(rgba(243, 241, 231, 0.94), rgba(243, 241, 231, 0.94)),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(21, 35, 26, 0.04) 6px);
}

.thm03-cover__paper::after {
    position: absolute;
    z-index: 2;
    top: 0;
    right: -1.6rem;
    bottom: 0;
    width: 2rem;
    background: var(--thm03-paper);
    clip-path: polygon(0 0, 48% 0, 82% 4%, 41% 8%, 91% 13%, 46% 18%, 80% 23%, 38% 29%, 88% 35%, 45% 41%, 83% 47%, 37% 54%, 91% 60%, 46% 67%, 82% 73%, 39% 79%, 88% 85%, 45% 92%, 78% 97%, 48% 100%, 0 100%);
    content: "";
}

.thm03-cover__issue {
    position: absolute;
    top: max(1.5rem, env(safe-area-inset-top));
    right: clamp(1.5rem, 4vw, 4rem);
    left: clamp(1.5rem, 4vw, 4rem);
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--thm03-line);
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.thm03-cover h1 {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0.8rem 0 1.2rem;
    font-family: var(--thm03-display);
    font-size: clamp(3.2rem, 6.8vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.82;
    overflow-wrap: anywhere;
}

.thm03-cover h1 i {
    margin: 0.12em 0 0.06em 0.06em;
    color: var(--thm03-fern);
    font-family: var(--thm03-name);
    font-size: 0.48em;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

.thm03-cover--names-long h1 {
    font-size: clamp(2.75rem, 5.7vw, 6.4rem);
}

.thm03-cover--names-xlong h1 {
    font-size: clamp(2.25rem, 4.8vw, 5.25rem);
    line-height: 0.9;
}

.thm03-cover__lead {
    max-width: 31rem;
    color: var(--thm03-muted);
    font-size: 0.92em;
}

.thm03-cover__guest {
    display: grid;
    gap: 0.15rem;
    max-width: 31rem;
    margin: clamp(1.2rem, 3vh, 2.25rem) 0 1rem;
    padding: 0.8rem 0;
    border-block: 1px solid var(--thm03-line);
}

.thm03-cover__guest span {
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thm03-cover__guest strong {
    font-family: var(--thm03-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.thm03-cover .thm03-button {
    align-self: flex-start;
}

/* Intro / first editorial spread */
.thm03-intro {
    min-height: 100svh;
    background:
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(21, 35, 26, 0.1) 50%, transparent calc(50% + 0.5px)),
        var(--thm03-paper);
}

.thm03-nav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0 clamp(1.25rem, 5vw, 5rem);
    border-bottom: 1px solid var(--thm03-line);
    background: rgba(243, 241, 231, 0.95);
}

.thm03-nav__brand {
    flex-shrink: 0;
    font-family: var(--thm03-display);
    font-size: 1.15rem;
    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.thm03-nav__brand i {
    padding-inline: 0.16em;
    color: var(--thm03-fern);
    font-style: normal;
}

.thm03-nav__links {
    display: flex;
    gap: clamp(1rem, 3vw, 2.8rem);
}

.thm03-nav__links a {
    padding-block: 0.4rem;
    border-bottom: 1px solid transparent;
    font-family: var(--thm03-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.thm03-nav__links a:hover {
    border-color: currentColor;
}

.thm03-intro__spread {
    position: relative;
    display: grid;
    grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas:
        "copy photo"
        "count count";
    width: min(100%, 96rem);
    min-height: calc(100svh - 4.5rem);
    margin: 0 auto;
}

.thm03-intro__copy {
    grid-area: copy;
    align-self: center;
    min-width: 0;
    padding: clamp(4rem, 9vw, 9rem) clamp(2rem, 6vw, 6rem);
}

.thm03-intro__copy h2 {
    max-width: 9ch;
    margin: 0.8rem 0 1.6rem;
    font-family: var(--thm03-display);
    font-size: clamp(3.25rem, 7.4vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.86;
    overflow-wrap: anywhere;
}

.thm03-intro__lead {
    max-width: 32rem;
    color: var(--thm03-muted);
}

.thm03-intro__event-note {
    display: grid;
    gap: 0.15rem;
    max-width: 32rem;
    margin-top: clamp(2rem, 5vw, 4rem);
    padding-top: 1rem;
    border-top: 1px solid var(--thm03-line);
}

.thm03-intro__event-note > span,
.thm03-intro__event-note small {
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.thm03-intro__event-note time {
    font-family: var(--thm03-serif);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 600;
}

.thm03-intro__photo {
    position: relative;
    grid-area: photo;
    min-width: 0;
    min-height: 36rem;
    margin: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(5rem, 9vw, 8rem) 0;
    overflow: hidden;
    background: var(--thm03-sage);
}

.thm03-intro__photo::before {
    position: absolute;
    z-index: 2;
    inset: 1rem;
    border: 1px solid rgba(250, 251, 246, 0.7);
    content: "";
    pointer-events: none;
}

.thm03-intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    filter: saturate(0.72) contrast(1.05) sepia(0.08);
}

.thm03-intro__photo figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 0.55rem 0.75rem;
    background: rgba(21, 35, 26, 0.78);
    color: var(--thm03-on-dark);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm03-countdown {
    position: relative;
    z-index: 4;
    grid-area: count;
    display: grid;
    grid-template-columns: minmax(10rem, 1.4fr) repeat(4, minmax(6rem, 0.65fr));
    align-items: stretch;
    width: min(calc(100% - clamp(2.5rem, 10vw, 10rem)), 80rem);
    margin: -3rem auto clamp(3rem, 7vw, 6rem);
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    box-shadow: 1.5rem 1.5rem 0 var(--thm03-sage);
}

.thm03-countdown > p,
.thm03-countdown > div {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 7rem;
    padding: 1rem;
    border-right: 1px solid rgba(250, 251, 246, 0.2);
}

.thm03-countdown > p {
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.thm03-countdown > div {
    align-content: center;
    gap: 0.1rem;
}

.thm03-countdown strong {
    font-family: var(--thm03-display);
    font-size: clamp(1.8rem, 3.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1;
}

.thm03-countdown span {
    color: var(--thm03-sage);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Couple */
.thm03-couple {
    overflow: hidden;
    background: var(--thm03-paper-muted);
}

.thm03-couple__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 5rem);
    width: min(100%, 78rem);
    margin: 0 auto;
}

.thm03-person {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.thm03-person__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--thm03-sage);
    box-shadow: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 0 var(--thm03-fern);
}

.thm03-person:nth-child(2) .thm03-person__portrait {
    margin: 0;
    box-shadow: calc(clamp(0.75rem, 2vw, 1.5rem) * -1) clamp(0.75rem, 2vw, 1.5rem) 0 var(--thm03-sage);
}

.thm03-person__portrait img,
.thm03-person__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.thm03-person__portrait img {
    object-fit: cover;
    filter: saturate(0.78) contrast(1.03);
}

.thm03-person__fallback {
    display: grid;
    place-items: center;
    background: var(--thm03-forest);
    color: var(--thm03-paper);
    font-family: var(--thm03-display);
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 800;
    line-height: 1;
}

.thm03-person__portrait > span {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    left: 0.85rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--thm03-paper);
    color: var(--thm03-ink);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
}

.thm03-person__copy {
    min-width: 0;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(0.25rem, 2vw, 1.5rem) 0;
}

.thm03-person__role {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.thm03-person h3 {
    max-width: 14ch;
    margin: 0.55rem 0 1rem;
    font-family: var(--thm03-name);
    font-size: clamp(2.3rem, 4.4vw, 4.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.thm03-person--medium h3 {
    font-size: clamp(2.05rem, 3.9vw, 4.2rem);
}

.thm03-person--long h3 {
    font-size: clamp(1.8rem, 3.4vw, 3.65rem);
}

.thm03-person--xlong h3 {
    font-size: clamp(1.55rem, 2.9vw, 3.1rem);
}

.thm03-person__copy > p:not(.thm03-person__role) {
    max-width: 32rem;
    color: var(--thm03-muted);
    font-size: 0.94em;
}

.thm03-person .thm03-text-link {
    margin-top: 1.2rem;
}

.thm03-couple__mark {
    position: absolute;
    z-index: 4;
    top: 41%;
    left: 50%;
    display: grid;
    place-items: center;
    width: clamp(4rem, 8vw, 7rem);
    aspect-ratio: 1;
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    font-family: var(--thm03-name);
    font-size: clamp(2rem, 4vw, 3.8rem);
    transform: translate(-50%, -50%);
}

/* Events */
.thm03-events {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5.5vw, 6rem);
    overflow: hidden;
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
}

.thm03-events .thm03-kicker {
    color: var(--thm03-forest);
}

.thm03-events__masthead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
    width: min(100%, 86rem);
    margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.thm03-events__masthead figure {
    min-width: 0;
    min-height: clamp(20rem, 38vw, 34rem);
    overflow: hidden;
}

.thm03-events__masthead figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    filter: saturate(0.65) contrast(1.08) brightness(0.8) sepia(0.1);
}

.thm03-events__masthead > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 5vw, 5rem);
    background: var(--thm03-sage);
    color: var(--thm03-forest);
}

.thm03-events__masthead > div::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.25rem;
    width: 1.5rem;
    background: var(--thm03-sage);
    clip-path: polygon(100% 0, 100% 100%, 40% 100%, 72% 92%, 30% 84%, 68% 75%, 25% 65%, 70% 55%, 34% 45%, 72% 35%, 27% 25%, 65% 14%, 34% 6%, 55% 0);
    content: "";
}

.thm03-events__masthead h2 {
    margin: 0.65rem 0 2rem;
    font-family: var(--thm03-display);
    font-size: clamp(3rem, 5.2vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.88;
    overflow-wrap: normal;
    word-break: normal;
}

.thm03-events__masthead > div > span {
    margin-top: auto;
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.thm03-events__list {
    display: grid;
    gap: 1px;
    width: min(100%, 86rem);
    margin: 0 auto;
    background: rgba(250, 251, 246, 0.2);
    border: 1px solid rgba(250, 251, 246, 0.2);
}

.thm03-event {
    display: grid;
    grid-template-columns: minmax(13rem, 0.75fr) minmax(8rem, 0.35fr) minmax(18rem, 1fr);
    min-width: 0;
    background: var(--thm03-paper);
    color: var(--thm03-ink);
}

.thm03-event > header,
.thm03-event__date,
.thm03-event__detail {
    min-width: 0;
    padding: clamp(1.5rem, 3.5vw, 3.25rem);
}

.thm03-event > header,
.thm03-event__date {
    border-right: 1px solid var(--thm03-line);
}

.thm03-event > header > span {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.thm03-event > header p {
    margin-top: 1.7rem;
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm03-event h3 {
    margin-top: 0.3rem;
    font-family: var(--thm03-display);
    font-size: clamp(1.65rem, 3vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.thm03-event__date {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.thm03-event__date strong {
    font-family: var(--thm03-display);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.1em;
    line-height: 0.9;
}

.thm03-event__date span {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.thm03-event__detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thm03-event__detail time,
.thm03-event__detail > strong {
    display: block;
    font-family: var(--thm03-display);
    font-weight: 800;
}

.thm03-event__detail > strong {
    margin-top: 1rem;
}

.thm03-event__detail address {
    margin: 0.25rem 0 0;
    color: var(--thm03-muted);
    font-style: normal;
}

.thm03-event__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    align-items: center;
    margin-top: 1.5rem;
}

.thm03-event__map {
    grid-column: 1 / -1;
    border-top: 1px solid var(--thm03-line);
}

.thm03-event__map summary {
    min-height: 3rem;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    font-family: var(--thm03-ui);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thm03-event__map iframe {
    width: 100%;
    height: min(28rem, 60vh);
    border: 0;
}

/* Optional palette */
.thm03-dresscode {
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: center;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 8vw, 9rem);
    background: var(--thm03-sage);
}

.thm03-dresscode__copy > p:not(.thm03-kicker) {
    max-width: 34rem;
    margin-top: 1.5rem;
    color: #405347;
}

.thm03-dresscode__copy > small {
    display: block;
    margin-top: 1rem;
    color: #405347;
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.thm03-dresscode li {
    min-width: 0;
}

.thm03-dresscode li > span {
    display: block;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    background: var(--thm03-swatch);
    border: 1px solid rgba(21, 35, 26, 0.12);
    border-radius: 50%;
}

.thm03-dresscode li strong,
.thm03-dresscode li small {
    display: block;
    overflow-wrap: anywhere;
}

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

.thm03-dresscode li small {
    color: #405347;
    font-family: var(--thm03-display);
    font-size: 0.75rem;
}

/* Livestream */
.thm03-livestream {
    display: grid;
    grid-template-columns: minmax(9rem, 0.3fr) minmax(19rem, 1fr) minmax(16rem, 0.65fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem);
    background: var(--thm03-moss);
    color: var(--thm03-on-dark);
}

.thm03-livestream .thm03-kicker {
    color: var(--thm03-sage);
}

.thm03-livestream__signal {
    display: grid;
    place-items: center;
    gap: 1rem;
    aspect-ratio: 1;
    border: 1px solid rgba(250, 251, 246, 0.45);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.thm03-livestream__signal i {
    width: 0.8rem;
    height: 0.8rem;
    background: var(--thm03-on-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 0.45rem rgba(250, 251, 246, 0.16);
    animation: thm03-pulse 2s ease-out infinite;
}

@keyframes thm03-pulse {
    50% { box-shadow: 0 0 0 0.8rem rgba(250, 251, 246, 0.04); }
}

.thm03-livestream h2 {
    margin: 0.65rem 0 1.3rem;
    font-family: var(--thm03-display);
    font-size: clamp(2.7rem, 5.4vw, 5.3rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.92;
}

.thm03-livestream__copy > p:last-child {
    max-width: 40rem;
    color: #e8ede5;
}

.thm03-livestream__access dl {
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(250, 251, 246, 0.35);
}

.thm03-livestream__access dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(250, 251, 246, 0.35);
}

.thm03-livestream__access dt,
.thm03-livestream__access dd {
    font-family: var(--thm03-display);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Quote */
.thm03-quote {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(46rem, 90svh);
    padding: clamp(6rem, 12vw, 11rem) clamp(1.5rem, 9vw, 10rem);
    overflow: hidden;
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    text-align: center;
}

.thm03-quote::before,
.thm03-quote::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 2.2rem;
    background: var(--thm03-paper);
    clip-path: polygon(0 0, 4% 45%, 9% 20%, 14% 65%, 21% 28%, 28% 72%, 35% 34%, 43% 80%, 51% 25%, 59% 70%, 67% 30%, 75% 76%, 83% 22%, 91% 66%, 96% 34%, 100% 60%, 100% 0);
    content: "";
}

.thm03-quote::before { top: -1px; }
.thm03-quote::after { bottom: -1px; transform: rotate(180deg); }

.thm03-quote__index {
    position: absolute;
    top: clamp(3.5rem, 7vw, 6rem);
    left: clamp(1.5rem, 5vw, 5rem);
    color: var(--thm03-sage);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.thm03-quote blockquote {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(100%, 68rem);
}

.thm03-quote blockquote > span {
    height: 0.75em;
    color: var(--thm03-fern);
    font-family: var(--thm03-serif);
    font-size: clamp(7rem, 14vw, 13rem);
    line-height: 0.85;
}

.thm03-quote blockquote p {
    font-family: var(--thm03-serif);
    font-size: clamp(1.75rem, 4.2vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.33;
    text-wrap: balance;
}

.thm03-quote cite {
    margin-top: 2rem;
    color: var(--thm03-sage);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Story */
.thm03-story {
    background:
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(21, 35, 26, 0.08) 50%, transparent calc(50% + 0.5px)),
        var(--thm03-paper);
}

.thm03-story__timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
    width: min(100%, 78rem);
    margin: 0 auto;
}

.thm03-story-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(9rem, 0.75fr) minmax(0, 1fr);
    min-width: 0;
    border-top: 1px solid var(--thm03-ink);
}

.thm03-story-card__number {
    position: absolute;
    z-index: 2;
    top: -1.05rem;
    left: 0;
    padding-right: 0.65rem;
    background: var(--thm03-paper);
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.thm03-story-card__media {
    min-width: 0;
    min-height: 15rem;
    margin-top: 1.5rem;
    overflow: hidden;
    background: var(--thm03-sage);
}

.thm03-story-card__media img,
.thm03-story-card__fallback {
    width: 100%;
    height: 100%;
}

.thm03-story-card__media img {
    object-fit: cover;
    filter: saturate(0.76) contrast(1.03);
}

.thm03-story-card__fallback {
    display: grid;
    place-items: center;
    color: var(--thm03-forest);
    font-family: var(--thm03-display);
    font-size: 5rem;
    font-weight: 800;
}

.thm03-story-card__copy {
    min-width: 0;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 2.5rem);
    background: var(--thm03-paper-muted);
}

.thm03-story-card time {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm03-story-card h3 {
    margin: 0.55rem 0 0.9rem;
    font-family: var(--thm03-display);
    font-size: clamp(1.55rem, 2.8vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.thm03-story-card__copy p {
    color: var(--thm03-muted);
    font-size: 0.931em;
}

/* Gallery */
/* Rows come from the shared gallery layout in theme-system.css. */
.thm03-gallery {
    --theme-gallery-gap: clamp(0.55rem, 1.3vw, 1rem);
    background: var(--thm03-paper-muted);
}

.thm03-heading--gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.5fr);
    gap: 1rem clamp(2rem, 8vw, 9rem);
    align-items: end;
}

.thm03-heading--gallery .thm03-kicker,
.thm03-heading--gallery h2 {
    grid-column: 1;
}

.thm03-heading--gallery > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
}

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

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

.thm03-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.77) contrast(1.03);
    transition: filter 300ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.thm03-gallery__item:hover img {
    filter: saturate(0.95) contrast(1.02);
    transform: scale(1.025);
}

.thm03-gallery__item span {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.45rem 0.6rem;
    background: var(--thm03-paper);
    color: var(--thm03-ink);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* An editorial journal plate, framed by the Forest Press masthead. */
.thm03-gallery-dialog {
    box-sizing: border-box;
    width: min(1060px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--thm03-forest);
    background: var(--thm03-paper);
    color: var(--thm03-ink);
    box-shadow: 16px 16px 0 rgba(113, 133, 111, 0.3);
}
.thm03-gallery-dialog::backdrop {
    background: rgba(15, 32, 22, 0.88);
    backdrop-filter: blur(6px);
}
.thm03-gallery-dialog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--thm03-line);
}
.thm03-gallery-dialog__edition {
    color: var(--thm03-moss);
    font: 800 12px/1.5 var(--thm03-display);
    letter-spacing: 0.18em;
}
.thm03-gallery-dialog__bar p {
    margin: 4px 0 0;
    font: 800 clamp(18px, 3vw, 26px)/1.15 var(--thm03-display);
    letter-spacing: -0.04em;
}
.thm03-gallery-dialog button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--thm03-line);
    background: transparent;
    color: var(--thm03-ink);
    font: 800 12px/1.35 var(--thm03-display);
    letter-spacing: 0.06em;
    cursor: pointer;
}
.thm03-gallery-dialog .thm03-gallery-dialog__close {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    border-color: var(--thm03-forest);
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    font-size: 28px;
    font-weight: 400;
}
.thm03-gallery-dialog button:focus-visible {
    outline: 3px solid var(--thm03-focus);
    outline-offset: 3px;
}
.thm03-gallery-dialog button:disabled { opacity: 0.4; cursor: default; }
.thm03-gallery-dialog__plate { margin: 0; padding: 20px 24px 0; }
.thm03-gallery-dialog__plate img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: min(60dvh, 680px);
    max-height: calc(100dvh - 230px);
    background: var(--thm03-paper-muted);
    object-fit: contain;
    filter: none;
}
.thm03-gallery-dialog__plate figcaption {
    padding-top: 14px;
    color: var(--thm03-muted);
    font: 400 12px/1.6 var(--thm03-serif);
    overflow-wrap: anywhere;
}
.thm03-gallery-dialog[data-gallery-loading="true"] [data-theme-gallery-image] { opacity: 0.4; }
.thm03-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(--thm03-line);
}
.thm03-gallery-dialog__controls [data-theme-gallery-counter] {
    color: var(--thm03-moss);
    font: 800 12px/1.4 var(--thm03-display);
    letter-spacing: 0.1em;
    white-space: nowrap;
}
@media (max-width: 479px) {
    .thm03-gallery-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); box-shadow: 6px 6px 0 rgba(113, 133, 111, 0.3); }
    .thm03-gallery-dialog__bar { padding: 14px 16px; }
    .thm03-gallery-dialog__plate { padding: 14px 14px 0; }
    .thm03-gallery-dialog__controls { gap: 12px; padding: 14px 16px; }
    .thm03-gallery-dialog__button-label { display: none; }
}

/* Forms */
.thm03-rsvp {
    display: grid;
    grid-template-columns: minmax(20rem, 0.85fr) minmax(26rem, 1.15fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: start;
    padding: clamp(5.5rem, 11vw, 10rem) clamp(1.25rem, 8vw, 9rem);
    background: var(--thm03-sage);
}

.thm03-rsvp__intro {
    position: sticky;
    top: 2rem;
}

.thm03-rsvp__intro h2 {
    max-width: 12ch;
    margin: 0.7rem 0 1.5rem;
    font-family: var(--thm03-display);
    font-size: clamp(2.8rem, 4.8vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.94;
}

.thm03-rsvp__intro > p:not(.thm03-kicker) {
    max-width: 34rem;
    color: #405347;
}

.thm03-rsvp__intro > span {
    display: block;
    margin-top: clamp(3rem, 8vw, 7rem);
    color: rgba(32, 58, 42, 0.2);
    font-family: var(--thm03-display);
    font-size: clamp(2.6rem, 6vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.thm03-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--thm03-paper);
    box-shadow: 1rem 1rem 0 var(--thm03-forest);
}

.thm03-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

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

.thm03-field label {
    color: var(--thm03-forest);
    font-family: var(--thm03-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thm03-field :where(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 3.2rem;
    padding: 0.85rem 0;
    border: 0;
    border-bottom: 1px solid var(--thm03-line);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--thm03-ink);
    font-family: var(--thm03-serif);
    font-size: 1rem;
    line-height: 1.5;
}

.thm03-field textarea {
    resize: vertical;
}

.thm03-field :where(input, select, textarea):focus {
    border-color: var(--thm03-moss);
}

.thm03-form__status {
    min-height: 1.5em;
    color: var(--thm03-moss);
    font-family: var(--thm03-ui);
    font-size: 0.72rem;
    font-weight: 700;
}

.thm03-form__status[data-status="error"] {
    color: #9d2828;
}

/* Wishes */
.thm03-wishes {
    overflow: hidden;
    background: var(--thm03-paper);
}

.thm03-heading--wishes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
    gap: 1rem clamp(2rem, 8vw, 9rem);
    align-items: end;
}

.thm03-heading--wishes .thm03-kicker,
.thm03-heading--wishes h2 {
    grid-column: 1;
}

.thm03-heading--wishes > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.thm03-wishes__featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: min(100%, 86rem);
    margin: 0 auto clamp(4rem, 8vw, 7rem);
    background: var(--thm03-line);
    border: 1px solid var(--thm03-line);
}

@media (max-width: 639px) {
    .thm03-wishes__featured {
        grid-template-columns: minmax(0, 1fr);
    }
}

.thm03-wish-card {
    display: grid;
    align-content: space-between;
    min-width: 0;
    min-height: 21rem;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    background: var(--thm03-paper-muted);
}

.thm03-wish-card > span {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.thm03-wish-card blockquote {
    margin: 2rem 0;
    font-family: var(--thm03-serif);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.42;
    overflow-wrap: anywhere;
}

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

.thm03-wish-card figcaption > img,
.thm03-wish-card__initial {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.thm03-wish-card__initial {
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    font-family: var(--thm03-display);
    font-weight: 800;
}

.thm03-wish-card figcaption > span:last-child,
.thm03-wish-card figcaption strong,
.thm03-wish-card figcaption small {
    display: block;
}

.thm03-wish-card figcaption > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.thm03-wish-card figcaption strong {
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thm03-wish-card figcaption small {
    color: var(--thm03-muted);
}

.thm03-wishes__guestbook {
    display: grid;
    grid-template-columns: minmax(22rem, 0.9fr) minmax(20rem, 1.1fr);
    gap: clamp(3rem, 7vw, 8rem);
    width: min(100%, 78rem);
    margin: 0 auto;
}

.thm03-wishes__guestbook .thm03-form {
    grid-template-columns: 1fr;
    box-shadow: 1rem 1rem 0 var(--thm03-sage);
}

.thm03-wishes__guestbook .thm03-form > .thm03-kicker {
    margin-bottom: 0.5rem;
}

.thm03-wishes__messages {
    min-width: 0;
    border-top: 1px solid var(--thm03-ink);
}

.thm03-wishes__messages > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--thm03-line);
}

.thm03-wishes__messages ul {
    max-height: 33rem;
    overflow-y: auto;
}

.thm03-wishes__messages li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.2rem 0.8rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--thm03-line);
}

.thm03-wishes__messages li > span,
.thm03-wishes__messages li > time {
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.thm03-wishes__messages li > strong {
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.thm03-wishes__messages li > p {
    grid-column: 2 / -1;
    color: var(--thm03-muted);
}

.thm03-wishes__empty {
    display: block !important;
    color: var(--thm03-muted);
}

/* Gift */
.thm03-gift {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(26rem, 1.2fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: center;
    padding: clamp(5.5rem, 11vw, 10rem) clamp(1.25rem, 8vw, 9rem);
    background: var(--thm03-sage);
}

.thm03-gift__heading > p:not(.thm03-kicker) {
    max-width: 34rem;
    margin-top: 1.5rem;
    color: #405347;
}

.thm03-gift-card {
    display: grid;
    gap: 2rem;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--thm03-paper);
    box-shadow: 1rem 1rem 0 var(--thm03-forest);
}

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

.thm03-gift-card__select img {
    width: 100%;
    max-height: 2.5rem;
    object-fit: contain;
}

.thm03-gift-card__account {
    display: grid;
    gap: 0.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--thm03-line);
}

.thm03-gift-card__account > span,
.thm03-gift-card__account > small {
    color: var(--thm03-muted);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.thm03-gift-card__account > strong {
    max-width: 100%;
    font-family: var(--thm03-display);
    font-size: clamp(1.8rem, 4vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.thm03-gift-card__account .thm03-button {
    justify-self: start;
    margin-top: 1rem;
}

/* Health */
.thm03-health {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 8vw, 9rem);
    background: var(--thm03-paper-muted);
}

.thm03-health__copy > p:not(.thm03-kicker) {
    max-width: 34rem;
    margin-top: 1.25rem;
    color: var(--thm03-muted);
}

.thm03-health ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--thm03-ink);
    border-left: 1px solid var(--thm03-ink);
}

.thm03-health li {
    min-width: 0;
    padding: 1.5rem;
    border-right: 1px solid var(--thm03-ink);
    border-bottom: 1px solid var(--thm03-ink);
}

.thm03-health li span {
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.thm03-health li p {
    margin-top: 1.25rem;
    color: var(--thm03-muted);
    font-size: 0.93em;
}

/* Closing */
.thm03-closing {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
    min-height: min(52rem, 100svh);
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
}

.thm03-closing__photo {
    position: relative;
    min-width: 0;
    min-height: 32rem;
    overflow: hidden;
}

.thm03-closing__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(32, 58, 42, 0.22));
    content: "";
}

.thm03-closing__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.06) brightness(0.88) sepia(0.08);
}

.thm03-closing__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
}

.thm03-closing__copy::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.5rem;
    width: 1.8rem;
    background: var(--thm03-forest);
    clip-path: polygon(100% 0, 100% 100%, 38% 100%, 72% 94%, 31% 88%, 68% 81%, 26% 74%, 71% 67%, 32% 59%, 75% 51%, 28% 43%, 68% 35%, 30% 28%, 74% 20%, 27% 12%, 66% 5%, 38% 0);
    content: "";
}

.thm03-closing .thm03-kicker {
    color: var(--thm03-sage);
}

.thm03-closing__copy > span {
    margin-top: 1.5rem;
    color: var(--thm03-sage);
    font-family: var(--thm03-name);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.thm03-closing h2 {
    display: flex;
    flex-direction: column;
    margin: 0.3rem 0 1.7rem;
    font-family: var(--thm03-display);
    font-size: clamp(3rem, 6.3vw, 6.8rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.86;
    overflow-wrap: break-word;
    word-break: normal;
}

.thm03-closing--names-long h2 {
    font-size: clamp(2.7rem, 5vw, 5.5rem);
    line-height: 0.9;
}

.thm03-closing--names-xlong h2 {
    font-size: clamp(2.3rem, 4.2vw, 4.6rem);
    line-height: 0.94;
}

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

.thm03-closing h2 i {
    margin: 0.08em 0;
    color: var(--thm03-fern);
    font-family: var(--thm03-name);
    font-size: 0.48em;
    font-style: normal;
    font-weight: 400;
}

.thm03-closing__copy > p:not(.thm03-kicker) {
    max-width: 34rem;
    color: #e8ede5;
}

.thm03-closing time {
    margin-top: 1.4rem;
    color: var(--thm03-sage);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.thm03-closing small {
    /* The credit shares the page end with the dock (bottom right): a long organiser name wraps
       before it reaches the two controls. */
    max-width: calc(100% - 56px);
    margin-top: auto;
    padding-top: 3rem;
    color: #cbd4ca;
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.thm03-closing small a {
    border-bottom: 1px solid currentColor;
}

/* Copy status */

.thm03-sr-status {
    position: fixed;
    z-index: 1300;
    right: 1rem;
    bottom: 8rem;
    width: min(20rem, calc(100vw - 2rem));
    min-height: 0 !important;
    padding: 0;
    overflow: hidden;
    background: var(--thm03-forest);
    color: var(--thm03-on-dark);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Tablet */
@media (max-width: 1023px) {
    .thm03-heading--split,
    .thm03-heading--gallery,
    .thm03-heading--wishes {
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.72fr);
        gap: 2rem 4rem;
    }

    .thm03-intro__spread {
        grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
    }

    .thm03-intro__copy {
        padding-inline: 2.5rem;
    }

    .thm03-intro__photo {
        margin-right: 2rem;
    }

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

    .thm03-countdown > p {
        grid-column: 1 / -1;
        min-height: 3rem;
        border-bottom: 1px solid rgba(250, 251, 246, 0.2);
    }

    .thm03-event {
        grid-template-columns: minmax(12rem, 0.75fr) minmax(7rem, 0.35fr) minmax(15rem, 1fr);
    }

    .thm03-story__timeline {
        grid-template-columns: 1fr;
    }

    .thm03-story-card {
        grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1fr);
    }

    .thm03-livestream {
        grid-template-columns: 7.5rem minmax(0, 1fr);
    }

    .thm03-livestream__access {
        grid-column: 2;
    }

    .thm03-rsvp,
    .thm03-gift,
    .thm03-health {
        gap: 3.5rem;
        padding-inline: 3rem;
    }

    .thm03-rsvp__intro > span {
        white-space: normal;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .thm03-story__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thm03-story-card {
        display: block;
    }

    .thm03-story-card__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 1024px) {
    .thm03-story-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    }
}

@media (max-width: 899px) {
    .thm03-rsvp,
    .thm03-gift,
    .thm03-health {
        display: block;
        padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 6vw, 4rem);
    }

    .thm03-rsvp__intro {
        position: static;
    }

    .thm03-rsvp__intro > span {
        margin: 2.5rem 0 3.5rem;
    }

    .thm03-gift-card,
    .thm03-health ol {
        margin-top: 3.5rem;
    }

    .thm03-wishes__guestbook {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .thm03-section {
        padding: 5.25rem 1.25rem;
    }

    .thm03-heading,
    .thm03-heading--split,
    .thm03-heading--gallery,
    .thm03-heading--wishes {
        display: block;
        margin-bottom: 3rem;
    }

    .thm03-heading--split > p,
    .thm03-couple__intro,
    .thm03-heading--gallery > p:last-child,
    .thm03-heading--wishes > p:last-child {
        margin-top: 1.5rem;
    }

    .thm03-cover {
        grid-template: minmax(14rem, 43dvh) minmax(0, 57dvh) / minmax(0, 1fr);
        grid-template-areas:
            "media"
            "paper";
    }

    .thm03-cover__media img {
        object-position: 72% 58% !important;
    }

    .thm03-cover__paper {
        justify-content: center;
        padding: 2.2rem 1.5rem max(1.25rem, env(safe-area-inset-bottom));
    }

    .thm03-cover__paper::after {
        top: -1.4rem;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1.7rem;
        clip-path: polygon(0 100%, 0 50%, 5% 72%, 10% 28%, 16% 68%, 22% 25%, 29% 74%, 36% 34%, 43% 78%, 51% 23%, 59% 71%, 67% 31%, 75% 76%, 83% 27%, 91% 67%, 96% 35%, 100% 62%, 100% 100%);
    }

    .thm03-cover__issue {
        display: none;
    }

    .thm03-cover h1,
    .thm03-cover--names-long h1,
    .thm03-cover--names-xlong h1 {
        display: block;
        margin: 0.45rem 0 0.65rem;
        font-size: clamp(2.25rem, 11vw, 4rem);
        line-height: 0.9;
    }

    .thm03-cover--names-long h1,
    .thm03-cover--names-xlong h1 {
        display: flex;
        flex-direction: column;
        gap: 0.06em;
    }

    .thm03-cover--names-long h1 {
        font-size: clamp(1.65rem, 8.2vw, 2.7rem);
    }

    .thm03-cover--names-xlong h1 {
        font-size: clamp(1.35rem, 6.8vw, 2.2rem);
        line-height: 0.96;
    }

    .thm03-cover h1 span {
        display: inline;
    }

    .thm03-cover--names-long h1 span,
    .thm03-cover--names-xlong h1 span {
        display: block;
    }

    .thm03-cover h1 i {
        display: inline;
        margin: 0 0.12em;
        font-size: 0.72em;
    }

    .thm03-cover--names-long h1 i,
    .thm03-cover--names-xlong h1 i {
        display: block;
        margin: 0;
        font-size: 0.62em;
        line-height: 0.8;
    }

    /* A pair too long for one line stacks, one name per line, instead of wrapping into each other. */
    .thm03-cover--names-stacked h1 {
        display: flex;
        flex-direction: column;
        gap: 0.06em;
    }

    .thm03-cover--names-stacked h1 span {
        display: block;
    }

    .thm03-cover--names-stacked h1 i {
        display: block;
        margin: 0;
        font-size: 0.62em;
        line-height: 0.8;
    }

    .thm03-cover__lead {
        display: none;
    }

    .thm03-cover__guest {
        margin: 0.7rem 0;
        padding: 0.55rem 0;
    }

    .thm03-cover__guest strong {
        font-size: 1.05rem;
    }

    .thm03-cover .thm03-button {
        min-height: 2.85rem;
        padding-block: 0.7rem;
    }

    .thm03-nav {
        min-height: 4rem;
        padding-inline: 1.25rem;
        overflow-x: auto;
    }

    .thm03-nav__links {
        gap: 1rem;
        padding-left: 1.5rem;
    }

    .thm03-nav__links a {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .thm03-intro {
        min-height: 0;
        background: var(--thm03-paper);
    }

    .thm03-intro__spread {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .thm03-intro__copy {
        order: 1;
        padding: 4.5rem 1.25rem 3rem;
    }

    .thm03-intro__copy h2 {
        max-width: 10ch;
        font-size: clamp(3rem, 15vw, 5.2rem);
    }

    .thm03-intro__photo {
        order: 2;
        width: calc(100% - 2.5rem);
        min-height: 0;
        aspect-ratio: 16 / 10;
        margin: 0 1.25rem;
    }

    .thm03-countdown {
        order: 3;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: calc(100% - 2.5rem);
        margin: -1rem 1.25rem 4.5rem;
        box-shadow: 0.6rem 0.6rem 0 var(--thm03-sage);
    }

    .thm03-countdown > p {
        display: none;
    }

    .thm03-countdown > div {
        min-height: 5.2rem;
        padding: 0.65rem 0.25rem;
    }

    .thm03-countdown strong {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
    }

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

    .thm03-couple__grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .thm03-person__portrait,
    .thm03-person:nth-child(2) .thm03-person__portrait {
        width: calc(100% - 1.5rem);
        margin-inline: 0.5rem 1rem;
        box-shadow: 0.8rem 0.8rem 0 var(--thm03-fern);
    }

    .thm03-person:nth-child(2) .thm03-person__portrait {
        margin-inline: 1rem 0.5rem;
        box-shadow: -0.8rem 0.8rem 0 var(--thm03-sage);
    }

    .thm03-person__copy {
        padding: 2.25rem 0.5rem 0;
    }

    .thm03-person h3,
    .thm03-person--medium h3,
    .thm03-person--long h3,
    .thm03-person--xlong h3 {
        font-size: clamp(2.1rem, 10vw, 3.5rem);
    }

    .thm03-person--long h3,
    .thm03-person--xlong h3 {
        font-size: clamp(1.8rem, 8.5vw, 3rem);
    }

    .thm03-couple__mark {
        top: 50%;
        width: 4.25rem;
    }

    .thm03-events {
        padding: 5.25rem 1.25rem;
    }

    .thm03-events__masthead {
        display: flex;
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .thm03-events__masthead figure {
        min-height: 0;
        aspect-ratio: 2.2 / 1;
    }

    .thm03-events__masthead > div {
        min-height: 15rem;
        padding: 1.7rem 1.25rem;
    }

    .thm03-events__masthead > div::before {
        top: -1.15rem;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1.35rem;
        clip-path: polygon(0 100%, 0 40%, 7% 72%, 14% 28%, 22% 70%, 30% 24%, 39% 75%, 48% 32%, 57% 76%, 66% 25%, 75% 69%, 84% 30%, 93% 70%, 100% 40%, 100% 100%);
    }

    .thm03-event {
        grid-template-columns: 5.8rem minmax(0, 1fr);
    }

    .thm03-event > header {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid var(--thm03-line);
    }

    .thm03-event > header,
    .thm03-event__date,
    .thm03-event__detail {
        padding: 1rem;
    }

    .thm03-event__date {
        padding-inline: 0.75rem;
    }

    .thm03-event__date strong {
        font-size: 3.2rem;
    }

    .thm03-event__detail {
        border-left: 0;
    }

    .thm03-dresscode,
    .thm03-livestream,
    .thm03-rsvp,
    .thm03-gift,
    .thm03-health {
        display: block;
        padding: 5.25rem 1.25rem;
    }

    .thm03-dresscode ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
        margin-top: 3rem;
    }

    .thm03-livestream__signal {
        width: 6.5rem;
        margin-bottom: 2.5rem;
    }

    .thm03-livestream__access {
        margin-top: 2.5rem;
    }

    .thm03-quote {
        min-height: 40rem;
        padding-inline: 1.25rem;
    }

    .thm03-quote__index {
        left: 1.25rem;
    }

    .thm03-story__timeline {
        grid-auto-columns: minmax(17rem, calc(100% - 1.75rem));
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 1rem;
        width: calc(100% + 1.25rem);
        margin-right: -1.25rem;
        padding-right: 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-color: var(--thm03-fern) var(--thm03-paper-muted);
    }

    .thm03-story-card {
        display: block;
        scroll-snap-align: start;
    }

    .thm03-story-card__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .thm03-story-card__copy {
        padding: 1.75rem 1.25rem;
    }

    .thm03-event__actions .thm03-button {
        max-width: 100%;
        gap: 0.4rem;
        padding-inline: 0.75rem;
        letter-spacing: 0.08em;
    }

    .thm03-rsvp__intro,
    .thm03-rsvp__intro {
        position: static;
    }

    .thm03-rsvp__intro > span {
        margin: 2rem 0 3rem;
        font-size: 3.25rem;
    }

    .thm03-form {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        box-shadow: 0.65rem 0.65rem 0 var(--thm03-forest);
    }

    .thm03-field--wide {
        grid-column: auto;
    }

    .thm03-wishes__featured {
        margin-bottom: 4rem;
    }

    .thm03-wishes__guestbook {
        display: block;
    }

    .thm03-wishes__messages {
        margin-top: 4rem;
    }

    .thm03-gift-card {
        margin-top: 3rem;
        padding: 1.25rem;
        box-shadow: 0.65rem 0.65rem 0 var(--thm03-forest);
    }

    .thm03-gift-card__select {
        grid-template-columns: minmax(0, 1fr) 4rem;
    }

    .thm03-health ol {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .thm03-closing {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .thm03-closing__photo {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .thm03-closing__copy {
        min-height: 38rem;
        padding: 4rem 1.5rem max(2rem, env(safe-area-inset-bottom));
    }

    .thm03-closing__copy::before {
        top: -1.2rem;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1.4rem;
        clip-path: polygon(0 100%, 0 40%, 7% 72%, 14% 28%, 22% 70%, 30% 24%, 39% 75%, 48% 32%, 57% 76%, 66% 25%, 75% 69%, 84% 30%, 93% 70%, 100% 40%, 100% 100%);
    }

    .thm03-closing h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .thm03-closing--names-long h2 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .thm03-closing--names-xlong h2 {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }
}

/* 900-1099px: beside the heading the three health notes got ~100px each, which split
   "Beristirahatlah" mid-word; they read as rows there instead. */
@media (min-width: 900px) and (max-width: 1099px) {
    .thm03-health ol {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 360-374px: the monogram and four links share the bar only with a tighter lead-in; the
   monogram wrapped to "R /" over "N" at 360px. */
@media (min-width: 360px) and (max-width: 374px) {
    .thm03-nav__links {
        padding-left: 0.75rem;
    }
}

@media (max-width: 359px) {
    .thm03-cover__paper {
        padding-inline: 1.1rem;
    }

    .thm03-cover h1,
    .thm03-cover--names-long h1,
    .thm03-cover--names-xlong h1 {
        font-size: clamp(1.95rem, 10.5vw, 3rem);
    }

    .thm03-cover--names-long h1 {
        font-size: clamp(1.45rem, 7.7vw, 2.25rem);
    }

    .thm03-cover--names-xlong h1 {
        font-size: clamp(1.2rem, 6.4vw, 1.85rem);
    }

    .thm03-nav__brand {
        display: none;
    }

    .thm03-nav__links {
        width: 100%;
        justify-content: space-between;
        padding-left: 0;
    }

    .thm03-intro__copy h2 {
        font-size: 2.8rem;
    }

    .thm03-countdown > div {
        min-height: 4.7rem;
    }

    .thm03-countdown strong {
        font-size: 1.45rem;
    }

    .thm03-event {
        grid-template-columns: 5rem minmax(0, 1fr);
    }

    .thm03-event__detail {
        padding-inline: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thm03-cover,
    .thm03-gallery__item img,
    .thm03-button {
        transition: none;
    }

    .thm03-livestream__signal i {
        animation: none;
    }
}

@media (forced-colors: active) {
    .thm03-cover__paper,
    .thm03-form,
    .thm03-gift-card,
    .thm03-event {
        border: 1px solid CanvasText;
    }
}

/* Floating controls use the shared dock (theme-system.css), coloured for this theme. */
.thm03-dock {
    --theme-dock-bg: #203a2a;
    --theme-dock-fg: #fafbf6;
    --theme-dock-border: rgba(250, 251, 246, 0.55);
    --theme-dock-bg-on-dark: rgba(250, 251, 246, 0.94);
    --theme-dock-fg-on-dark: #203a2a;
    --theme-dock-border-on-dark: rgba(32, 58, 42, 0.2);
}

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

/* Dress palette: one row of small swatches with their names. */
.theme-thm03 .thm03-dresscode ul {
    /* 4rem keeps four colours on one row down to a 360px phone (4.5rem left the fourth alone). */
    grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    gap: 1.25rem 1rem;
    max-width: 30rem;
}

/* Five or six colours on a phone sit three to a row instead of leaving one or two behind. */
@media (max-width: 480px) {
    .theme-thm03 .thm03-dresscode ul:has(> li:nth-child(5)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.theme-thm03 .thm03-dresscode li {
    display: grid;
    justify-items: center;
    text-align: center;
}

.theme-thm03 .thm03-dresscode li > span {
    width: clamp(3.5rem, 12vw, 4rem);
    margin-bottom: 0.75rem;
}

/* Livestream: a play mark with a live badge, not an empty frame. */
.theme-thm03 .thm03-livestream__signal {
    align-content: center;
    border-radius: 50%;
}

.theme-thm03 .thm03-livestream__signal svg {
    margin-inline-start: 0.2rem;
}

.theme-thm03 .thm03-livestream__signal span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-thm03 .thm03-livestream__signal i {
    width: 0.5rem;
    height: 0.5rem;
    box-shadow: 0 0 0 0.3rem rgba(250, 251, 246, 0.16);
}

/* One map control per event. */
.theme-thm03 .thm03-map .theme-v2-map__panel iframe {
    filter: grayscale(0.3);
}

/* The R / S / V / P watermark only adds height on phones. */
@media (max-width: 600px) {
    .theme-thm03 .thm03-rsvp__intro > span {
        display: none;
    }
}

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

/* The tight display tracking stays, but words keep a visible gap
   ("bertemu dengan", not "bertemudengan"). */
body.theme-thm03 :where(h1, h2, h3) {
    word-spacing: 0.14em;
}

/* Closing names: the ampersand reads as part of the pair, not a stray mark. */
.thm03-closing h2 i {
    margin: 0.04em 0 0.1em;
    color: var(--thm03-sage);
    font-size: 0.62em;
    font-style: italic;
    line-height: 1;
}

/* Swatch names hang from the swatch, so one-line and two-line names line up. */
.thm03-dresscode ul {
    align-items: start;
}

.thm03-dresscode li {
    align-self: start;
    /* Centre the swatch-and-name track in its column, so swatches stay evenly spaced whatever
       the length of their names (flex-start packed short names like "Sage" to the left). */
    justify-content: center;
}

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

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

/* Story, tablet: two chapters to a row, and an odd last chapter spans the row with its
   photograph beside the words, as on wide screens, instead of standing alone. */
@media (min-width: 768px) and (max-width: 1023px) {
    .thm03-story-card:last-child:nth-child(odd) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .thm03-story-card:last-child:nth-child(odd) .thm03-story-card__media {
        position: relative;
        aspect-ratio: auto;
        min-height: 18rem;
    }

    .thm03-story-card:last-child:nth-child(odd) .thm03-story-card__media img {
        position: absolute;
        inset: 0;
    }
}

/* Video ------------------------------------------------------------------- */

/* A page of the visual journal: posters carry the gift card's offset forest block, and several
   films are numbered on ruled lines like the story chapters. Rows follow the number of films. */
.thm03-video {
    --theme-video-gap: clamp(2rem, 4vw, 3.5rem);
    --theme-video-radius: 0;
    --theme-video-border: var(--thm03-ink);
    --theme-video-frame: var(--thm03-forest);
    --theme-video-button: var(--thm03-on-dark);
    --theme-video-button-text: var(--thm03-forest);
    background: var(--thm03-paper);
}

.thm03-video.theme-video .theme-video__list {
    --theme-video-max: 78rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    counter-reset: thm03-film;
}

.thm03-video.theme-video[data-video-count="1"] .theme-video__list {
    --theme-video-max: 62rem;
}

.thm03-video.theme-video[data-video-count="4"] .theme-video__list {
    --theme-video-max: 66rem;
}

.thm03-video .theme-video__item {
    flex: 0 1 calc((100% - var(--theme-video-gap)) / 2);
    counter-increment: thm03-film;
}

.thm03-video[data-video-count="1"] .theme-video__item {
    flex-basis: 100%;
}

.thm03-video .theme-video__frame {
    box-shadow: 1rem 1rem 0 var(--thm03-forest);
}

.thm03-video:not([data-video-count="1"]) .theme-video__item::before {
    content: counter(thm03-film, decimal-leading-zero);
    content: counter(thm03-film, decimal-leading-zero) / "";
    display: block;
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--thm03-ink);
    color: var(--thm03-moss);
    font-family: var(--thm03-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

body[data-theme-version="v2"] .thm03-video .theme-video__caption {
    margin-top: 1.6rem;
    color: var(--thm03-ink);
    font-family: var(--thm03-display);
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: left;
}

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

.thm03-video .theme-video__play {
    --theme-focus: var(--thm03-on-dark);
}

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

@media (min-width: 1024px) {
    .thm03-video:is([data-video-count="3"], [data-video-count="5"], [data-video-count="6"]) .theme-video__item {
        flex-basis: calc((100% - 2 * var(--theme-video-gap)) / 3);
    }
}

@media (max-width: 767px) {
    .thm03-video .theme-video__item {
        flex-basis: 100%;
    }

    .thm03-video .theme-video__frame {
        box-shadow: 0.65rem 0.65rem 0 var(--thm03-forest);
    }
}

/* Kirim Kado -------------------------------------------------------------- */

/* The gift band continues: the same sage ground, the heading beside the cards, and each address
   on a paper card with the gift card's offset forest block. */
.thm03-gift-address {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(26rem, 1.2fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: center;
    padding: clamp(5.5rem, 11vw, 10rem) clamp(1.25rem, 8vw, 9rem);
    background: var(--thm03-sage);
}

.thm03-gift + .thm03-gift-address {
    padding-top: 0;
}

.thm03-gift-address__heading h2 {
    max-width: 13ch;
    margin-top: 0.7rem;
    font-family: var(--thm03-display);
    font-size: clamp(2.55rem, 5.6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.94;
    text-wrap: balance;
}

.thm03-gift-address__heading > p:not(.thm03-kicker) {
    max-width: 34rem;
    margin-top: 1.5rem;
    color: #405347;
}

.thm03-gift-address .theme-gift-address__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    width: auto;
    margin: 0 1rem 1rem 0;
}

.thm03-gift-address .theme-gift-address__card {
    flex: none;
    align-items: flex-start;
    gap: 0.35rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 0;
    background: var(--thm03-paper);
    box-shadow: 1rem 1rem 0 var(--thm03-forest);
    color: var(--thm03-ink);
    text-align: left;
}

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

body[data-theme-version="v2"] .thm03-gift-address .theme-gift-address__name {
    margin-bottom: 0.4rem;
    font-family: var(--thm03-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

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

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

body[data-theme-version="v2"] .thm03-gift-address .theme-gift-address__note {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--thm03-line);
    color: var(--thm03-muted);
}

body[data-theme-version="v2"] .thm03-gift-address .theme-gift-address__copy {
    margin-top: 1.25rem;
}

.thm03-gift-address .theme-gift-address__copy[data-copy-state="copied"] {
    background: var(--thm03-forest);
    border-color: var(--thm03-forest);
    color: var(--thm03-on-dark);
}

@media (max-width: 1023px) {
    .thm03-gift-address {
        gap: 3.5rem;
        padding-inline: 3rem;
    }
}

@media (max-width: 899px) {
    .thm03-gift-address {
        display: block;
        padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 6vw, 4rem);
    }

    .thm03-gift + .thm03-gift-address {
        padding-top: 0;
    }

    .thm03-gift-address .theme-gift-address__list {
        margin: 3rem 0.65rem 0.65rem 0;
        gap: 2rem;
    }

    .thm03-gift-address .theme-gift-address__card {
        padding: 1.5rem 1.25rem;
        box-shadow: 0.65rem 0.65rem 0 var(--thm03-forest);
    }
}

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

/* 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. */

/* The countdown ends near the first screen's foot, where the floating music control sits: keep
   it centred and narrow enough (with its offset shadow) to stay clear of it. */
@media (min-width: 768px) {
    .thm03-countdown {
        width: min(calc(100% - max(clamp(2.5rem, 10vw, 10rem), 11rem)), 80rem);
    }
}

@media (max-width: 767px) {
    .thm03-countdown {
        width: calc(100% - 8.5rem);
        margin-inline: auto;
    }
}
