:root {
    --cover: url("https://images.unsplash.com/photo-1704584592335-ae6896d9ac64?auto=format&fit=crop&w=1800&q=85")
}

:root {
    --paper: #f7f5f0;
    --ink: #252522;
    --red: #912d37;
    --line: #d7d4ce
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.7 Manrope, sans-serif
}

body:has(.opening:not(.opened)) {
    overflow: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea {
    font: inherit
}

button,
a,
input {
    touch-action: manipulation
}

button {
    cursor: pointer
}

i {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400
}

.opening {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #eeeae3;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
    perspective: 1600px;
    transition: opacity .8s, visibility .8s
}

.opening-top {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 2px
}

.magazine {
    position: relative;
    height: min(70vh, 700px);
    aspect-ratio: .72;
    box-shadow: 18px 20px 55px #29231d30, 2px 0 3px #fff;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(.3, .1, .2, 1), opacity 1s;
    background: #63635e
}

.cover-photo,
.hero-photo {
    position: absolute;
    inset: 0;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    filter: grayscale(1)
}

.cover-photo:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(#0002, transparent 30%, #0001 50%, #0008)
}

.cover-copy {
    position: relative;
    color: white;
    height: 100%;
    padding: 18px 26px;
    display: flex;
    flex-direction: column
}

.issue-line,
.cover-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1.2px
}

.masthead {
    font-family: 'Times New Roman', serif;
    font-size: clamp(65px, 13vh, 130px);
    letter-spacing: -.08em;
    line-height: .93;
    text-align: center;
    font-weight: 400;
    margin: 7px 0 25px;
    padding-right: .06em
}

.cover-side {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 1.5px
}

.cover-side i {
    font-size: 30px;
    letter-spacing: 0
}

.cover-title {
    margin-top: auto;
    text-align: center
}

.cover-title>span {
    font-size: 11px;
    letter-spacing: 3px
}

.cover-title h1 {
    font: 500 clamp(36px, 6.3vh, 64px)/1.1 'Cormorant Garamond', serif;
    margin: 12px 0
}

.cover-title h1 i {
    font-size: .8em
}

.cover-title p {
    font-size: 12px;
    margin: 0 0 28px
}

.cover-bottom {
    font-size: 9px
}

.open-control {
    margin-top: 27px;
    text-align: center;
    width: 310px;
    max-width: 85vw
}

.slider-shell {
    height: 54px;
    border: 1px solid #c5c0b8;
    position: relative;
    border-radius: 40px;
    background: #f7f5f080
}

.slider-label {
    font-size: 12px;
    padding-left: 26px;
    line-height: 52px
}

.slider-arrow {
    position: absolute;
    right: 17px;
    top: 10px;
    font-size: 22px
}

#open-slider {
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    cursor: grab;
    padding: 5px
}

#open-slider::-webkit-slider-thumb {
    appearance: none;
    background: var(--red);
    height: 42px;
    width: 42px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 13px var(--red);
    background-image: linear-gradient(90deg, transparent 47%, white 47%, white 52%, transparent 52%)
}

#open-slider::-moz-range-thumb {
    background: var(--red);
    height: 42px;
    width: 42px;
    border: 0;
    border-radius: 50%
}

.open-control p {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin: 13px 0 0
}

.opening.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: .65s
}

.opened .magazine {
    transform: rotateY(-105deg) translateX(-12%);
    opacity: 0
}

.opening.opened .open-control {
    opacity: 0
}

header {
    height: 103px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid var(--line)
}

.brand {
    font: 43px/.9 'Times New Roman', serif;
    letter-spacing: -4px
}

.brand span {
    display: block;
    font: 8px Manrope, sans-serif;
    letter-spacing: 2px;
    margin-top: 9px
}

nav {
    display: flex;
    gap: 35px;
    font-size: 13px
}

nav a:last-child {
    color: var(--red)
}

.hero {
    height: 690px;
    min-height: 65vh;
    position: relative;
    margin: 0 25px;
    overflow: hidden
}

.hero-photo {
    background-position: center 44%
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0008, #0001)
}

.hero-overlay {
    position: absolute;
    z-index: 1;
    left: 7%;
    bottom: 65px;
    color: white
}

.hero-kicker,
.eyebrow {
    font-size: 12px;
    letter-spacing: 2px
}

.hero h2 {
    font: 400 clamp(50px, 6vw, 90px)/.98 'Cormorant Garamond', serif;
    margin: 25px 0 40px
}

.read-link {
    font-size: 11px;
    letter-spacing: 1.5px
}

.read-link span {
    margin-left: 26px;
    font-size: 25px
}

.vertical {
    position: absolute;
    z-index: 1;
    right: 24px;
    top: 45%;
    writing-mode: vertical-rl;
    color: white;
    font-size: 10px;
    letter-spacing: 3px
}

.section {
    padding: 100px 8%
}

.section-index {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--red)
}

.story {
    display: grid;
    grid-template-columns: 1fr 2.8fr 1fr;
    gap: 30px
}

.story-content h2,
.details h2,
.rsvp h2 {
    font: 400 clamp(40px, 4.3vw, 64px)/1.06 'Cormorant Garamond', serif;
    margin: 20px 0 30px
}

.story-content p:not(.eyebrow) {
    max-width: 550px;
    color: #65635e;
    font-size: 15px
}

.signature {
    font: italic 36px 'Cormorant Garamond', serif;
    margin-top: 35px
}

.margin-note {
    font-size: 9px;
    letter-spacing: 1.5px;
    align-self: end;
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.margin-note span {
    display: block;
    font: italic 27px/1.2 'Cormorant Garamond', serif;
    letter-spacing: 0;
    margin-top: 18px
}

.details {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.details h2 {
    margin-bottom: 45px
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%
}

.detail-grid article {
    border-top: 1px solid var(--line);
    padding-top: 25px
}

h3 {
    font: 400 34px/1.2 'Cormorant Garamond', serif;
    margin: 18px 0
}

.detail-grid p {
    font-size: 14px;
    color: #77746d
}

.rsvp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    background: #efede7
}

.rsvp-intro p {
    color: #65635e;
    font-size: 15px
}

.rsvp-note {
    display: block;
    margin-top: 70px;
    font-size: 10px;
    letter-spacing: 2px
}

form>label,
#guest-fields>label,
legend {
    display: block;
    font-size: 14px;
    margin: 0 0 10px
}

input:not([type=radio]):not([type=checkbox]):not([type=range]),
textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bcb8b1;
    padding: 11px 0;
    background: transparent;
    border-radius: 0;
    color: var(--ink);
    outline-offset: 5px;
    font-size: 15px;
    margin-bottom: 28px
}

fieldset {
    padding: 0;
    border: 0;
    margin: 0 0 27px
}

.attendance {
    display: flex;
    gap: 7px
}

.attendance label {
    flex: 1
}

.attendance input {
    position: absolute;
    opacity: 0
}

.attendance span {
    display: block;
    text-align: center;
    border: 1px solid #c9c5bd;
    font-size: 12px;
    padding: 11px 7px;
    cursor: pointer
}

.attendance input:checked+span {
    color: white;
    background: var(--ink);
    border-color: var(--ink)
}

.attendance input:focus-visible+span {
    outline: 2px solid var(--red);
    outline-offset: 3px
}

.drinks {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap
}

.drinks label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px
}

.drinks input {
    accent-color: var(--red);
    width: 16px;
    height: 16px
}

.optional {
    font-size: 11px;
    color: #777
}

.submit {
    width: 100%;
    background: var(--red);
    border: 0;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 17px 20px;
    font-size: 12px;
    letter-spacing: 1.5px
}

.submit:hover {
    background: #74202a
}

.submit:disabled {
    opacity: .6;
    cursor: wait
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

#form-status {
    font-size: 14px;
    margin-bottom: 0
}

footer {
    padding: 40px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

footer div {
    font: 32px 'Cormorant Garamond', serif
}

footer>span {
    font-size: 9px;
    letter-spacing: 1.5px
}

footer button {
    background: none;
    border: 0;
    font-size: 12px;
    color: var(--red)
}

[hidden] {
    display: none !important
}

@media(min-width:1500px) {
    .hero {
        max-height: 900px;
        height: 75vh
    }
}

@media(max-width:700px) {
    .opening {
        padding: 45px 15px 15px
    }

    .opening-top {
        top: 16px;
        left: 18px;
        right: 18px;
        font-size: 8px;
        letter-spacing: 1px
    }

    .magazine {
        height: min(66svh, 630px);
        max-width: 90vw
    }

    .cover-copy {
        padding: 15px 19px
    }

    .masthead {
        font-size: min(24vw, 12vh)
    }

    .cover-title h1 {
        font-size: clamp(34px, 10vw, 52px)
    }

    .cover-title p {
        font-size: 10px
    }

    .cover-bottom,
    .issue-line {
        font-size: 8px
    }

    .cover-side {
        font-size: 10px
    }

    .open-control {
        margin-top: 20px
    }

    header {
        padding: 0 6%;
        height: 85px
    }

    .brand {
        font-size: 34px
    }

    nav {
        gap: 16px;
        font-size: 11px
    }

    nav a:first-child {
        display: none
    }

    .hero {
        margin: 0 10px;
        height: 75svh;
        min-height: 520px
    }

    .hero-overlay {
        left: 7%;
        right: 20px;
        bottom: 45px
    }

    .hero h2 {
        font-size: 54px
    }

    .hero-kicker {
        font-size: 9px
    }

    .section {
        padding: 60px 7%
    }

    .story {
        display: block
    }

    .story-content {
        margin-top: 40px
    }

    .margin-note {
        display: none
    }

    .story-content h2,
    .details h2,
    .rsvp h2 {
        font-size: 45px
    }

    .story-content p:not(.eyebrow) {
        font-size: 16px
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .rsvp {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .rsvp-note {
        margin-top: 30px
    }

    .rsvp-intro p {
        font-size: 16px
    }

    .attendance span {
        font-size: 12px
    }

    .drinks label {
        font-size: 14px
    }

    footer {
        flex-wrap: wrap;
        gap: 22px
    }

    footer>span {
        order: 3;
        width: 100%;
        font-size: 8px
    }

    .hero-photo {
        background-position: 58% center
    }
}

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

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }

    .opening.opened {
        transition-delay: 0s
    }
}

/* Magazine reader */
body {
    overflow: hidden
}

#invitation {
    height: 100dvh;
    display: flex;
    flex-direction: column
}

header {
    height: 85px;
    flex-shrink: 0
}

.page-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    perspective: 1800px;
    margin: 0 25px;
    background: #e4e0d9;
    overflow: hidden
}

.page-stage>section {
    position: absolute;
    inset: 0;
    margin: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    backface-visibility: hidden;
    transform-origin: left center;
    scrollbar-width: thin;
    padding: clamp(35px, 6vh, 85px) 7%;
    visibility: hidden;
    pointer-events: none
}

.page-stage>section.active {
    visibility: visible;
    pointer-events: auto;
    z-index: 2
}

.page-stage>section.turning-out {
    visibility: visible;
    z-index: 3;
    pointer-events: none;
    animation: pageOut .65s ease-in-out both
}

.page-stage>section.turning-in {
    animation: pageIn .65s ease-in-out both
}

.page-stage>section:after {
    pointer-events: none
}

.page-stage>.hero {
    padding: 0;
    background: #52524d
}

.page-stage>.rsvp {
    background: #efede7
}

.page-controls {
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 25px;
    border-bottom: 1px solid var(--line);
    padding: 0 22px;
    flex-shrink: 0
}

.page-controls button {
    border: 0;
    background: none;
    color: var(--red);
    padding: 10px;
    font-size: 14px;
    min-width: 95px
}

.page-controls button:disabled {
    opacity: .3;
    cursor: default
}

#page-position {
    font-size: 12px;
    letter-spacing: 3px
}

footer {
    padding: 13px 4%;
    flex-shrink: 0
}

footer div {
    font-size: 25px
}

footer button {
    padding: 8px
}

.about h2,
.gift-details h2 {
    font: 400 clamp(42px, 4.4vw, 66px)/1.05 'Cormorant Garamond', serif;
    margin: 22px 0 30px
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9%;
    align-items: center;
    min-height: 85%
}

.about-layout p:not(.eyebrow) {
    max-width: 540px;
    font-size: 16px;
    color: #65635e
}

.about-monogram {
    font: 400 clamp(100px, 18vw, 270px)/1 'Cormorant Garamond', serif;
    color: var(--red);
    text-align: center;
    white-space: nowrap
}

.about-monogram span {
    font-size: .5em;
    font-style: italic
}

.gift-details>.eyebrow {
    margin-top: 35px
}

.gift-copy {
    max-width: 740px;
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 20px 35px
}

.gift-copy p {
    margin: 0;
    font-size: 16px;
    color: #65635e
}

.gift-number {
    font-size: 11px;
    letter-spacing: 1.5px;
    padding-top: 5px;
    color: var(--red)
}

.countdown {
    display: flex;
    max-width: 670px;
    gap: 0;
    margin: 25px 0 15px
}

.countdown>div {
    flex: 1;
    border-left: 1px solid var(--line);
    text-align: center
}

.countdown>div:first-child {
    border: 0
}

.countdown strong {
    display: block;
    font: 400 clamp(40px, 5vw, 70px)/1.1 'Cormorant Garamond', serif;
    font-variant-numeric: tabular-nums;
    color: var(--red)
}

.countdown span {
    font-size: 12px;
    letter-spacing: 1px
}

#countdown-note {
    font-size: 14px;
    color: #65635e;
    margin-bottom: 30px
}

.details h2 {
    margin-bottom: 20px
}

.magazine {
    overflow: hidden;
    animation: coverArrival 1.3s ease-out both
}

.cover-photo {
    animation: photoDrift 14s ease-in-out infinite alternate
}

.masthead {
    animation: titleArrival 1.4s .2s both
}

.cover-side {
    animation: titleArrival 1.4s .5s both
}

.cover-title {
    animation: titleArrival 1.4s .8s both
}

.opening:not(.opened) .slider-arrow {
    animation: arrowHint 1.8s 2s ease-in-out 3
}

.hero.active .hero-photo {
    animation: photoDrift 14s ease-in-out infinite alternate
}

.hero.active h2 {
    animation: titleArrival 1.2s .15s both
}

.hero.active .hero-kicker {
    animation: titleArrival 1.1s both
}

.hero.active .read-link {
    display: inline-block;
    animation: titleArrival 1.2s .35s both
}

.opened .magazine {
    animation: none
}

@keyframes pageOut {
    from {
        transform: rotateY(0);
        opacity: 1;
        filter: brightness(1)
    }

    to {
        transform: rotateY(-95deg);
        opacity: .2;
        filter: brightness(.65)
    }
}

@keyframes pageIn {
    from {
        transform: translateX(3%);
        filter: brightness(.85)
    }

    to {
        transform: translateX(0);
        filter: brightness(1)
    }
}

.page-stage.backwards>.turning-out {
    transform-origin: right center;
    animation-name: pageBack
}

@keyframes pageBack {
    from {
        transform: rotateY(0);
        opacity: 1
    }

    to {
        transform: rotateY(95deg);
        opacity: .2
    }
}

@keyframes coverArrival {
    from {
        opacity: 0;
        translate: 0 25px;
        rotate: 2deg
    }

    to {
        opacity: 1;
        translate: 0 0;
        rotate: 0deg
    }
}

@keyframes photoDrift {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.075) translateY(-.8%)
    }
}

@keyframes titleArrival {
    from {
        opacity: 0;
        translate: 0 18px
    }

    to {
        opacity: 1;
        translate: 0 0
    }
}

@keyframes arrowHint {
    50% {
        translate: 6px 0
    }
}

@media(max-width:700px) {
    header {
        height: 73px
    }

    nav {
        gap: 14px
    }

    .page-stage {
        margin: 0 9px
    }

    .page-stage>section {
        padding: 35px 7%
    }

    .page-stage>.hero {
        padding: 0;
        min-height: 0
    }

    .hero h2 {
        font-size: clamp(39px, 10vw, 54px)
    }

    .hero-overlay {
        bottom: 35px
    }

    .page-controls {
        margin: 0 9px;
        height: 53px;
        padding: 0 4px
    }

    footer {
        padding: 7px 5%;
        gap: 5px
    }

    footer>span {
        display: none
    }

    footer div {
        font-size: 23px
    }

    .about-layout {
        display: block
    }

    .about-monogram {
        text-align: left;
        font-size: 95px;
        margin: 25px 0
    }

    .about h2,
    .gift-details h2 {
        font-size: 43px
    }

    .gift-copy {
        display: block
    }

    .gift-number {
        display: block;
        margin: 25px 0 12px
    }

    .countdown strong {
        font-size: 43px
    }

    .story-content {
        margin-top: 25px
    }

    .page-stage>.rsvp {
        display: block
    }

    .rsvp-intro {
        margin-bottom: 35px
    }

    .rsvp-note {
        display: none
    }

    .countdown {
        margin-top: 30px
    }
}

@media(prefers-reduced-motion:reduce) {

    .page-stage>section,
    .cover-photo,
    .masthead,
    .cover-side,
    .cover-title,
    .magazine,
    .hero-photo,
    .hero h2,
    .hero .hero-kicker,
    .hero .read-link {
        animation: none !important;
        transform: none !important;
        translate: none !important
    }

    .turning-out {
        display: none !important
    }
}

/* The cover turns on its spine, revealing the first spread underneath. */
.opening {
    background: transparent;
    isolation: isolate;
    transition: none
}

.opening::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #eeeae3;
    z-index: -1;
    transition: opacity .5s ease
}

.magazine {
    transform: rotateY(var(--fold, 0deg));
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform .25s ease;
    will-change: transform
}

.magazine::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #0005, transparent 7%, transparent 85%, #fff2);
    z-index: 2
}

.opening.unfolding::before {
    opacity: 0
}

.opening.unfolding .magazine {
    animation: turnCover 1.15s cubic-bezier(.32, .05, .25, 1) both
}

.opening.unfolding .open-control,
.opening.unfolding .opening-top {
    opacity: 0;
    transition: opacity .2s
}

.opening.opened {
    opacity: 0;
    visibility: hidden;
    transition: none
}

.opening.opened .magazine {
    transform: rotateY(-165deg);
    opacity: 0
}

@keyframes turnCover {
    0% {
        transform: rotateY(-45deg);
        filter: brightness(1);
        opacity: 1
    }

    65% {
        opacity: 1
    }

    100% {
        transform: rotateY(-165deg);
        filter: brightness(.55);
        opacity: 0
    }
}

/* Photographic interiors, with paper panels under the copy. */
:root {
    --reception-photo: url('https://sidewood.com.au/cdn/shop/files/WedEvents_Tile_BW_WEDDINGSBYBHS_2022.12.29_STUART_DANIELLE_HI-RES_30_copy.jpg?v=1758694200&width=1984');
    --flowers-photo: url('https://cdn.prod.website-files.com/61725db92daa132605a97997/643f027a9693253cea3bb2f9_2021-10-13_064.webp')
}

.page-stage>section:not(.hero) {
    background-image: linear-gradient(#25252224, #25252224), var(--page-photo, var(--cover));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.page-stage>#story {
    --page-photo: var(--cover);
    background-position: 60% 40%;
    grid-template-columns: 1fr 3fr 1fr;
    align-content: start
}

.page-stage>#about {
    --page-photo: var(--cover);
    background-position: center 65%
}

.page-stage>#day {
    --page-photo: var(--reception-photo)
}

.page-stage>#details {
    --page-photo: var(--reception-photo)
}

.page-stage>#rsvp {
    --page-photo: var(--reception-photo);
    background-position: 70% center;
    gap: 5%;
    align-items: start
}

.page-stage>section:not(.hero)>.section-index {
    width: fit-content;
    background: var(--paper);
    padding: 8px 13px;
    height: fit-content
}

.story-content,
.margin-note,
.about-layout>div:last-child,
.rsvp-intro,
#response-form {
    background: #f7f5f0f2;
    padding: clamp(22px, 3vw, 42px);
    box-shadow: 0 8px 35px #00000012
}

.story-content {
    margin-top: 0
}

.story-content h2 {
    font-size: clamp(37px, 3.5vw, 56px)
}

.story-content>.eyebrow {
    margin-top: 0
}

.margin-note {
    padding: 20px
}

.about-monogram {
    color: white;
    text-shadow: 0 2px 20px #0005
}

.about-layout {
    margin-top: 25px;
    min-height: 0
}

#day>h2,
#details>h2,
#details>.eyebrow,
#day>.countdown,
#day>#countdown-note,
#day>.detail-grid,
#details>.gift-copy {
    background: #f7f5f0f2;
    width: min(780px, 100%);
    margin: 0;
    padding: 22px 30px
}

#day>h2,
#details>.eyebrow {
    margin-top: 28px;
    padding-bottom: 12px
}

#details>h2 {
    padding-top: 8px
}

#day>.countdown {
    max-width: 780px;
    padding-top: 15px;
    padding-bottom: 15px
}

#day>#countdown-note {
    padding-top: 0;
    padding-bottom: 15px
}

#day>.detail-grid {
    gap: 30px;
    padding-top: 10px
}

#details>.gift-copy {
    max-width: 780px;
    padding-bottom: 32px
}

#response-form {
    margin: 0
}

.rsvp-intro h2 {
    font-size: clamp(40px, 4vw, 60px)
}

@media(max-width:700px) {
    .page-stage>#story {
        display: block
    }

    .page-stage>section:not(.hero) {
        padding: 25px 5%;
        background-position: center
    }

    .story-content {
        margin-top: 20px
    }

    .margin-note {
        display: none
    }

    .story-content,
    .about-layout>div:last-child,
    .rsvp-intro,
    #response-form {
        padding: 24px 20px
    }

    .about-monogram {
        margin: 15px 0;
        font-size: 75px
    }

    .about-layout {
        margin-top: 10px
    }

    #day>h2,
    #details>h2,
    #details>.eyebrow,
    #day>.countdown,
    #day>#countdown-note,
    #day>.detail-grid,
    #details>.gift-copy {
        padding-left: 20px;
        padding-right: 20px
    }

    #day>.detail-grid {
        gap: 20px
    }

    .rsvp-intro {
        margin-bottom: 20px
    }

    .open-control p {
        font-size: 8px;
        letter-spacing: 1px
    }
}

@media(prefers-reduced-motion:reduce) {
    .opening.unfolding .magazine {
        animation: none !important
    }

    .magazine {
        transform: none !important;
        transition: none !important
    }
}

/* ===== ФИНАЛЬНАЯ КОРРЕКЦИЯ ФОТО ЖЕНИХА И НЕВЕСТЫ ===== */

/* Обложка и главный экран */
.cover-photo,
.hero-photo {
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    transform-origin: 58% center;
}

/* Мягкое приближение без сильного обрезания краёв */
@keyframes photoDrift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.025) translateY(-0.4%);
    }
}

/* Мобильная версия */
@media (max-width: 700px) {
    .cover-photo,
    .hero-photo {
        background-position: 58% center;
        transform-origin: 58% center;
    }

    /* Чуть более широкая обложка,
       чтобы в кадр лучше помещались оба человека */
    .magazine {
        aspect-ratio: 0.78;
    }
}