@font-face {
    font-family: "Cinzel";
    src: url("../fonts/cinzel-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/libre-baskerville-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --green: #424f23;
    --green-dark: #343d1a;
    --green-deep: #263319;
    --cream: #f4f0e3;
    --cream-bright: #fbf8ed;
    --gold: #997337;
    --gold-dark: #6f501f;
    --ink: #515646;
    --overlay: rgb(66 79 35 / 86%);
    --content-width: 1200px;
    --section-gutter: max(1rem, calc((100% - var(--content-width)) / 2));
    --focus: #f3d27a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Libre Baskerville", Baskerville, Georgia, serif;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.temporary-page,
.login-page {
    min-height: 100dvh;
    background-color: var(--cream);
    background-image: url("../img/paper-canvas.webp");
    background-position: center;
    background-size: cover;
}

.temporary-home {
    --temporary-top-space: clamp(2rem, 10dvh, 4rem);
    --temporary-bottom-space: clamp(1rem, 5dvh, 2rem);
    --temporary-gap: clamp(1.5rem, 3vw, 2.75rem);

    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: var(--temporary-gap);
    padding: var(--temporary-top-space) 1.25rem var(--temporary-bottom-space);
}

.temporary-frame {
    width: clamp(290px, 48vw, 613px);
    height: auto;
    max-height: calc(100dvh - var(--temporary-top-space) - var(--temporary-bottom-space) - var(--temporary-gap) - 3rem);
    object-fit: contain;
}

.temporary-home p {
    margin: 0;
    color: var(--ink);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.78rem, 1.35vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.login-shell {
    min-height: 100dvh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
}

.login-frame {
    width: min(480px, 82vw);
}

.login-panel {
    width: min(430px, 92vw);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.25rem) 2rem;
    text-align: center;
}

.login-panel h1 {
    margin: 0 0 0.5rem;
    color: var(--gold-dark);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel > p {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.login-form {
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.login-form label,
.field-group label {
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-form input,
.message-form input,
.message-form textarea {
    width: 100%;
    border: 1px solid rgb(111 80 31 / 55%);
    border-radius: 0;
    color: #273019;
    background: rgb(251 248 237 / 97%);
}

.login-form input {
    min-height: 46px;
    padding: 0.65rem 0.8rem;
}

.login-form button,
.message-form button {
    min-height: 44px;
    border: 1px solid var(--gold-dark);
    border-radius: 0;
    color: var(--cream-bright);
    background: var(--green-deep);
    cursor: pointer;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease;
}

.login-form button:hover,
.message-form button:hover {
    background: var(--green-dark);
}

.login-form button:active,
.message-form button:active,
.outline-button:active,
.small-link:active {
    transform: translateY(1px);
}

.event-page {
    background: #fff;
}

.event-layout {
    width: 100%;
    margin: 0;
    padding: 0;
}

.event-layout > section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.hero-section,
.garden-canopy,
.garden-floor,
.story-section,
.attire-section,
.message-section,
.countdown-section {
    background-image: url("../img/garden.webp");
    background-position: center;
    background-size: cover;
}

.garden-canopy {
    min-height: clamp(60px, 8vw, 94px);
    background-position: center top;
}

.hero-canopy {
    min-height: clamp(88px, 7.72vw, 108px);
    padding-top: clamp(38px, 3.5vw, 49px);
}

.garden-floor {
    min-height: clamp(72px, 9vw, 108px);
    background-position: center bottom;
}

.event-nav {
    height: 30px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding-inline: 1rem;
    background: rgb(66 79 35 / 86%);
}

.event-nav a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    max-width: 152px;
    height: 100%;
    padding: 2px 0.25rem;
    color: var(--cream);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease;
}

.event-nav a:nth-child(even) {
    background: rgb(52 61 26 / 86%);
}

.event-nav a:hover,
.event-nav a:focus-visible {
    background: rgb(38 51 25 / 92%);
}

.hero-content {
    min-height: clamp(360px, 34vw, 476px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 2.75rem var(--section-gutter) 4rem;
    color: var(--cream);
    text-align: center;
}

.hero-content.green-overlay {
    background: var(--overlay);
}

.hero-eyebrow {
    margin: 0 0 0.25rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.8rem, 1.55vw, 1.15rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-signature {
    width: min(620px, 70vw);
    margin: -0.55rem 0 -0.75rem;
}

.hero-content time {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    letter-spacing: 0.16em;
}

.green-overlay {
    color: var(--cream-bright);
    background-image: linear-gradient(var(--overlay), var(--overlay)), url("../img/garden.webp");
    background-position: center;
    background-size: cover;
}

.story-section {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(220px, 31%) minmax(0, 1fr) minmax(190px, 25%);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.2rem);
    padding: clamp(2.5rem, 6vw, 4.75rem) var(--section-gutter);
}

.story-photo img,
.message-photo {
    width: 100%;
    filter: drop-shadow(0 12px 18px rgb(38 51 25 / 32%));
}

.story-copy {
    font-size: 12px;
    line-height: 2.5;
}

.story-copy p {
    margin: 0 0 1.15rem;
}

.story-copy .story-signoff {
    margin-top: 2rem;
}

.story-mark {
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 1.75rem;
    padding-top: 0.5rem;
    color: #d8b344;
    text-align: center;
}

.story-mark .story-quote {
    width: min(176px, 100%);
}

.story-mark img:not(.story-quote) {
    width: min(280px, 120%);
    max-width: none;
}

.paper-section {
    color: var(--gold-dark);
    background-color: var(--cream);
    background-image: url("../img/paper-canvas.webp");
    background-position: center;
    background-size: cover;
}

.party-section,
.gifts-section {
    min-height: 520px;
}

.party-section,
.gifts-section {
    background-image: url("../img/party-paper.jpg");
    background-repeat: repeat-x;
    background-size: 492px 508px;
}

.party-section {
    background-position: left top;
}

.gifts-section {
    background-position: left 92px;
}

.party-section > .garden-canopy,
.party-section > .garden-floor,
.gifts-section > .garden-canopy,
.gifts-section > .garden-floor {
    background-repeat: repeat-x;
    background-size: auto;
}

.party-section > .garden-canopy,
.gifts-section > .garden-canopy {
    background-position: left top;
}

.party-section > .garden-floor,
.gifts-section > .garden-floor {
    background-position: left bottom;
}

.gifts-section > .garden-canopy,
.gifts-section > .garden-floor {
    min-height: 92px;
}

.framed-copy {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    width: min(430px, 53%);
    min-height: 270px;
    padding: 3.2rem 4rem;
    background-image: url("../img/gold-frame.webp");
    background-position: center;
    background-size: 100% 100%;
    text-align: center;
}

.party-card {
    place-content: start center;
    width: min(488px, calc(100% - 2rem));
    min-height: 0;
    aspect-ratio: 366 / 267;
    margin: 58px 0 61px max(var(--section-gutter), 14.4vw);
    padding: clamp(3.7rem, 6vw, 5.3rem) clamp(1.8rem, 3vw, 2.5rem) 0;
    color: var(--gold);
    background-image: url("../img/party-frame.png");
}

.gifts-card {
    width: min(488px, calc(100% - 2rem));
    min-height: 0;
    aspect-ratio: 366 / 267;
    margin: 59px 0 78px max(var(--section-gutter), 14.45vw);
    padding: 3.2rem 4rem;
    color: var(--gold);
    background-image: url("../img/party-frame.png");
}

.framed-copy h2,
.gallery-section h2,
.attire-copy h2,
.message-content h2 {
    margin: 0 0 1.25rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.framed-copy.party-card h2 {
    margin-bottom: clamp(1.4rem, 2.3vw, 2rem);
    font-size: clamp(1.4rem, 2.35vw, 1.9rem);
    line-height: 1.25;
}

.party-date {
    margin: 0 0 clamp(0.6rem, 1.1vw, 0.9rem);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.98rem, 1.65vw, 1.34rem);
    line-height: 1.35;
    letter-spacing: 0.16em;
    white-space: nowrap;
    text-transform: uppercase;
}

.party-card address {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.58rem, 1vw, 0.82rem);
    font-style: normal;
    line-height: 1.65;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.small-link,
.outline-button {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(111 80 31 / 55%);
    border-radius: 0;
    color: var(--gold-dark);
    background: rgb(251 248 237 / 55%);
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
}

.small-link {
    min-height: 15px;
    margin-top: clamp(0.75rem, 1.3vw, 1.1rem);
    padding: 0.05rem clamp(0.35rem, 0.75vw, 0.55rem);
    font-size: clamp(0.5rem, 0.65vw, 0.6rem);
    line-height: 1.25;
}

.party-card .small-link {
    border-color: rgb(153 115 55 / 55%);
    color: inherit;
}

.small-link:hover,
.outline-button:hover {
    background: rgb(153 115 55 / 14%);
}

.party-flowers,
.gifts-flowers {
    position: absolute;
    z-index: 1;
}

.party-flowers {
    right: 0;
    bottom: 0;
    width: min(21.6vw, 306px);
}

.gifts-flowers {
    right: 0;
    bottom: 0;
    width: min(21.6vw, 306px);
}

.gallery-section {
    min-height: 530px;
    padding: clamp(2.5rem, 5vw, 4rem) var(--section-gutter);
    background-image: url("../img/party-paper.jpg");
    background-position: left top;
    background-repeat: repeat;
    background-size: 492px 508px;
    text-align: center;
}

.gallery-section h2 {
    position: relative;
    z-index: 2;
    color: var(--gold);
}

.gallery-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 48px;
    width: min(1178px, calc(100% - 2rem));
    margin: 0 auto;
}

.gallery-item {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 14px 16px rgb(84 63 31 / 25%));
}

.gallery-item img {
    width: 100%;
}

.gallery-flowers-left,
.gallery-flowers-right {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.gallery-flowers-left {
    top: 0;
    left: 0;
    width: min(22vw, 275px);
}

.gallery-flowers-right {
    right: 0;
    bottom: 0;
    width: min(19vw, 238px);
}

.rsvp-section {
    min-height: 0;
    background-image: url("../img/party-paper.jpg");
    background-position: left top;
    background-repeat: repeat;
    background-size: 492px 508px;
}

.rsvp-section > .garden-canopy,
.rsvp-section > .garden-floor {
    background-repeat: repeat-x;
    background-size: auto;
}

.rsvp-section > .garden-canopy {
    background-position: left top;
}

.rsvp-section > .garden-floor {
    background-position: left bottom;
}

.rsvp-copy {
    position: relative;
    z-index: 3;
    min-height: 494px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 3rem 1rem;
    text-align: center;
}

.rsvp-copy h2,
.rsvp-copy p {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.76rem, 1.45vw, 1.125rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.7;
    text-transform: uppercase;
}

.outline-button {
    min-height: 38px;
    margin-top: 2rem;
    padding: 0.55rem 1.15rem;
    font-size: clamp(0.58rem, 0.9vw, 0.7rem);
}

.rsvp-corner-left,
.rsvp-corner-right {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.rsvp-corner-left {
    top: 0;
    left: 0;
    width: min(24vw, 340px);
}

.rsvp-corner-right {
    right: 0;
    bottom: -7px;
    width: min(21.6vw, 306px);
}

.countdown-section {
    --section-inline-padding: clamp(1rem, 6.8vw, 6rem);
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(240px, 414px) minmax(500px, 711px);
    align-items: start;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 6.25rem);
    padding: clamp(5rem, 10.4vw, 9.2rem) var(--section-inline-padding) 0;
    color: var(--gold);
    background-image: linear-gradient(rgb(244 240 227 / 84%), rgb(244 240 227 / 84%)), url("../img/garden.webp");
}

.countdown-section h2 {
    position: relative;
    z-index: 2;
    min-height: 120px;
    display: flex;
    align-items: center;
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
}

.countdown-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 1.55vw, 1.4rem);
}

.countdown-grid div {
    min-width: 0;
    height: 120px;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    color: var(--gold);
    background: rgb(255 255 255 / 94%);
    text-align: center;
}

.countdown-grid strong {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.65rem, 2.55vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
}

.countdown-grid span {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.58rem, 0.82vw, 0.72rem);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.countdown-finished {
    grid-column: 2;
    margin: 1.5rem 0 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.countdown-flowers {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: min(58.2%, 390px);
    width: 100%;
    background-image: url("../img/flowers-border.webp");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.68;
}

.gifts-card p {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(0.72rem, 1.1vw, 0.95rem);
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-transform: uppercase;
}

.copy-pix-button {
    min-height: 30px;
    margin-top: 0.85rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.copy-pix-status {
    min-height: 1em;
    margin-top: 0.3rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.attire-section {
    min-height: 676px;
    display: block;
    padding: 0;
}

.attire-copy {
    position: absolute;
    z-index: 2;
    top: 56.8%;
    left: 5.9%;
    width: min(510px, 42%);
    padding: 0;
}

.attire-copy h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.attire-copy p {
    max-width: none;
    margin: 0 0 1.45rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.94rem;
    letter-spacing: 0.11em;
    line-height: 1.6;
    white-space: nowrap;
    text-transform: uppercase;
}

.attire-flowers {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: min(32vw, 454px);
    max-width: none;
}

.attire-examples {
    position: absolute;
    z-index: 2;
    top: 6.5%;
    left: 50%;
    width: min(46.2%, 654px);
    aspect-ratio: 2042 / 1846;
    min-height: 0;
}

.attire-example {
    position: absolute;
    height: auto;
}

.frame-a {
    top: 0;
    left: 12.93%;
    width: 35.5%;
}

.frame-b {
    top: 40.2%;
    left: 52.89%;
    width: 47.11%;
}

.frame-c {
    top: 60.73%;
    left: 0;
    width: 48.48%;
}

.message-section {
    min-height: 530px;
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(320px, 1fr) minmax(150px, 22%);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(2.5rem, 6vw, 4.75rem) var(--section-gutter);
}

.message-content {
    align-self: center;
}

.message-content h2 {
    color: var(--cream-bright);
}

.message-monogram {
    width: 100%;
}

.message-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    background: rgb(38 51 25 / 72%);
}

.field-group {
    display: grid;
    gap: 0.4rem;
}

.message-form input,
.message-form textarea {
    padding: 0.7rem 0.8rem;
}

.message-form input {
    min-height: 42px;
}

.message-form textarea {
    min-height: 118px;
    resize: vertical;
}

.message-form button {
    padding: 0.7rem 1rem;
}

.form-error,
.field-error,
.form-success {
    margin: 0;
    padding: 0.65rem 0.8rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.form-error,
.field-error {
    color: #481b12;
    background: #f8d7ce;
}

.form-success {
    margin-bottom: 1rem;
    color: #183112;
    background: #dcebd2;
}

.cf-turnstile {
    min-height: 1px;
}

.lightbox {
    width: min(720px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 3.5rem 1.2rem 1.2rem;
    border: 1px solid rgb(153 115 55 / 65%);
    border-radius: 0;
    background-color: var(--cream);
    background-image: url("../img/paper-canvas.webp");
    background-position: center;
    background-size: cover;
}

.lightbox::backdrop {
    background: rgb(24 29 15 / 86%);
}

.lightbox img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 7rem);
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--gold-dark);
    border-radius: 0;
    color: var(--gold-dark);
    background: var(--cream-bright);
    cursor: pointer;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
    .event-nav {
        height: 44px;
    }

    .event-nav a {
        min-height: 44px;
    }

    .party-card address {
        font-size: 0.7rem;
    }

    .small-link {
        position: relative;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.7rem;
        border-color: transparent;
        font-size: 0.68rem;
    }

    .party-card .small-link {
        border-color: transparent;
    }

    .small-link::before {
        position: absolute;
        width: calc(100% - 16px);
        height: 20px;
        border: 1px solid rgb(153 115 55 / 55%);
        content: "";
        pointer-events: none;
    }

    .outline-button {
        min-height: 44px;
        font-size: 0.72rem;
    }

    .countdown-grid span {
        font-size: 0.68rem;
    }

    .gifts-card p,
    .login-form label,
    .field-group label,
    .login-form button,
    .message-form button {
        font-size: 0.75rem;
    }

    .attire-copy p {
        white-space: normal;
    }

    .lightbox-close {
        min-height: 44px;
        font-size: 0.72rem;
    }
}

@media (max-width: 820px) {
    .event-nav a {
        letter-spacing: 0.05em;
    }

    .story-section {
        grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
        gap: 1.5rem;
        padding: 2.2rem;
    }

    .story-mark {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 0;
    }

    .story-mark .story-quote {
        justify-self: end;
    }

    .story-mark img {
        justify-self: start;
    }

    .framed-copy {
        width: min(520px, 70%);
    }

    .gallery-section {
        min-height: auto;
        padding-inline: 2rem;
    }

    .countdown-section {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .countdown-section h2 {
        min-height: auto;
        justify-content: center;
        margin: 0;
        text-align: center;
    }

    .countdown-finished {
        grid-column: 1;
    }

    .attire-section {
        min-height: 900px;
    }

    .attire-flowers {
        width: min(58vw, 430px);
    }

    .attire-copy {
        top: 31%;
        left: 7%;
        width: 86%;
    }

    .attire-copy p {
        white-space: normal;
    }

    .attire-examples {
        top: 46%;
        width: min(68vw, 510px);
        transform: translateX(-50%);
    }

    .message-section {
        grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.25fr);
        padding: 2.5rem;
    }

    .message-monogram {
        grid-column: 1 / -1;
        width: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .temporary-frame {
        width: min(94vw, 500px);
    }

    .temporary-home p {
        max-width: 33ch;
    }

    .garden-canopy:not(.hero-canopy) {
        min-height: 55px;
    }

    .hero-canopy {
        min-height: 82px;
        padding-top: 32px;
    }

    .event-nav {
        height: 44px;
        padding-inline: 0.4rem;
    }

    .event-nav a {
        padding-inline: 0.1rem;
        font-size: 0.75rem;
    }

    .hero-content {
        min-height: 300px;
        padding: 2rem var(--section-gutter) 2.5rem;
    }

    .hero-signature {
        width: min(520px, 96vw);
    }

    .story-section,
    .attire-section,
    .message-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.35rem;
    }

    .story-photo,
    .message-photo {
        width: min(270px, 78%);
        margin: 0 auto;
    }

    .story-copy {
        font-size: 12px;
        line-height: 2;
    }

    .story-mark {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
        order: -1;
    }

    .story-mark img:not(.story-quote) {
        width: min(180px, 110%);
    }

    .party-section,
    .gifts-section {
        min-height: 490px;
    }

    .gifts-section {
        background-position: left 55px;
    }

    .gifts-section > .garden-floor {
        min-height: 72px;
    }

    .framed-copy {
        width: min(92%, 430px);
        min-height: 250px;
        margin: 2.3rem auto 7rem;
        padding: 3rem 3.4rem;
    }

    .framed-copy.party-card {
        min-height: 0;
        padding: 3.9rem 1.8rem 0;
    }

    .framed-copy.party-card h2 {
        margin-bottom: 0.875rem;
    }

    .party-date {
        margin-bottom: 0.3rem;
    }

    .small-link {
        margin-top: 0.25rem;
    }

    .party-flowers,
    .gifts-flowers {
        right: -18%;
        bottom: 0;
        width: min(42%, 190px);
    }

    .framed-copy.gifts-card {
        padding: 2.2rem 2rem 1.6rem;
    }

    .gallery-section {
        padding: 2.5rem 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        width: min(260px, 74%);
    }

    .gallery-flowers-left {
        left: 0;
        width: min(48%, 275px);
    }

    .gallery-flowers-right {
        width: min(42%, 238px);
    }

    .rsvp-copy {
        min-height: 390px;
        padding: 4rem 1.2rem;
    }

    .rsvp-copy h2,
    .rsvp-copy p {
        max-width: 29ch;
    }

    .rsvp-corner-left {
        top: 0;
        left: 0;
        width: min(30%, 115px);
    }

    .rsvp-corner-right {
        right: 0;
        width: min(42%, 190px);
    }

    .countdown-section {
        --section-inline-padding: 1.1rem;
        min-height: 520px;
        gap: 1.5rem;
        padding: 3rem 1.1rem 0;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 110px));
        justify-content: center;
    }

    .countdown-flowers {
        height: 220px;
    }

    .attire-section {
        min-height: 820px;
    }

    .attire-copy {
        top: 27%;
        left: 6%;
        width: 88%;
    }

    .attire-copy p {
        max-width: none;
        margin-bottom: 1.15rem;
        font-size: 0.75rem;
        line-height: 1.65;
    }

    .attire-flowers {
        width: min(82vw, 346px);
    }

    .attire-examples {
        top: 49%;
        width: min(100%, 462px);
    }

    .message-section {
        padding-block: 2.5rem;
    }

    .message-content {
        width: 100%;
    }

    .message-content h2 {
        text-align: center;
    }

    .message-monogram {
        grid-column: auto;
    }

    .cf-turnstile {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .framed-copy.party-card {
        padding-top: 1.5rem;
    }

    .party-date {
        letter-spacing: 0.12em;
    }

    .party-card address {
        letter-spacing: 0.1em;
    }

    .party-card .small-link {
        margin-top: -0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
