:root {
    --plum: #251d27;
    --cream: #f6eee9;
    --ink: #503555;
    --rose: #c77b9e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--plum); color: var(--cream); font-family: 'DM Sans', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }

.site-header {
    width: min(1220px, calc(100% - 48px));
    margin: auto;
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-brand { font: 26px 'Playfair Display', serif; text-decoration: none; white-space: nowrap; }
.site-brand span { color: #d99496; font-family: 'DM Sans', sans-serif; font-size: 18px; }
.back-link, .bottom-back { text-decoration: none; font-size: 13px; }
a:focus-visible { outline: 2px solid #ef9cbb; outline-offset: 5px; }

.scrapbook { overflow: hidden; }
.top-sheet, .details-sheet {
    background-color: var(--cream);
    color: var(--ink);
    background-image: radial-gradient(#87698216 0.7px, transparent 0.7px);
    background-size: 6px 6px;
}
.top-inner {
    position: relative;
    width: min(1220px, calc(100% - 64px));
    margin: auto;
    min-height: 520px;
    display: grid;
    grid-template-columns: 27% 39% 34%;
    align-items: center;
    padding: 56px 0 66px;
}
.cake-wrap { padding-right: 22px; }
.cake-logo { width: 100%; mix-blend-mode: multiply; }
.brand-story { padding: 0 35px 0 30px; border-left: 1px solid #a992a6; }
.eyebrow {
    font: 11px 'IBM Plex Mono', monospace;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #885e84;
}
.brand-story h1 { font: italic clamp(36px, 4vw, 59px)/1.05 'Playfair Display', serif; margin: 18px 0 24px; }
.brand-story p:not(.eyebrow) { font-size: 15px; line-height: 1.75; }
.swatches { display: flex; gap: 11px; margin-top: 25px; }
.swatches span { background: var(--swatch); width: 31px; height: 31px; border: 1px solid #72556b40; border-radius: 50%; }
.photo { background: #fff8f1; padding: 11px 11px 23px; box-shadow: 0 16px 27px #170b1640; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-romance { transform: rotate(5deg) translate(10px, 18px); aspect-ratio: 0.9; z-index: 1; }
.tape { position: absolute; z-index: 3; top: -14px; left: 38%; width: 91px; height: 29px; background: #d9bca3c9; transform: rotate(-9deg); box-shadow: 0 2px 4px #29140e24; }

.wood-sheet {
    background-color: #35221d;
    background-image: repeating-linear-gradient(2deg, transparent 0, #9c624116 3px, transparent 6px, transparent 58px), linear-gradient(90deg, #2b1c19, #483027 48%, #2d1e1a);
    padding: 76px 0 115px;
}
.collage {
    width: min(1220px, calc(100% - 64px));
    margin: auto;
    display: grid;
    grid-template-columns: 1.12fr .88fr .83fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 42px 36px;
}
.brochure { grid-column: 1 / 3; grid-row: 1; background: #f9f2ec; padding: 13px 13px 23px; position: relative; box-shadow: 0 20px 30px #11090865; transform: rotate(-2deg); z-index: 1; }
.brochure img { width: 100%; height: auto; }
.brochure figcaption { font: 10px 'IBM Plex Mono', monospace; letter-spacing: .12em; color: #6b5068; margin: 14px 4px 0; }
.photo-ceremony { grid-column: 3; grid-row: 1; transform: rotate(5deg) translateY(-20px); aspect-ratio: .82; }
.photo-beach { grid-column: 3; grid-row: 2; transform: rotate(-4deg); aspect-ratio: .95; }
.photo-flowers { grid-column: 1; grid-row: 2; transform: rotate(-5deg); aspect-ratio: 1.17; }
.paper-note { grid-column: 2; grid-row: 2; background: #f6eee7; color: var(--ink); padding: 33px 36px; transform: rotate(2deg); box-shadow: 0 15px 30px #130a0a55; clip-path: polygon(0 1%, 8% 0, 16% 1%, 26% 0, 35% 1%, 47% 0, 60% 1%, 75% 0, 87% 1%, 100% 0, 100% 99%, 88% 100%, 74% 99%, 62% 100%, 50% 99%, 36% 100%, 24% 99%, 11% 100%, 0 99%); }
.paper-note p:not(.eyebrow) { font-size: 15px; line-height: 1.7; }

.details-sheet { padding: 90px 0 100px; }
.details-inner { width: min(1120px, calc(100% - 64px)); margin: auto; }
.details-inner h2 { font: italic clamp(33px, 4vw, 52px) 'Playfair Display', serif; margin: 10px 0 40px; }
.detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.detail-photos .photo:first-child { transform: rotate(-2deg); }
.detail-photos .photo:last-child { transform: rotate(2deg); }
.detail-photos .photo img { aspect-ratio: 1.7; }
.bottom-back { display: inline-block; margin-top: 65px; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.site-footer { padding: 28px 24px; text-align: center; font-size: 12px; color: #c8b5c3; }

@media (max-width: 950px) {
    .top-inner { grid-template-columns: 32% 68%; gap: 0; }
    .photo-romance { grid-column: 1 / -1; width: min(380px, 70%); margin: 35px auto 0; aspect-ratio: 1.25; }
    .collage { grid-template-columns: 1fr 1fr; }
    .brochure { grid-column: 1 / -1; grid-row: 1; }
    .photo-ceremony { grid-column: 1; grid-row: 2; }
    .photo-beach { grid-column: 2; grid-row: 2; }
    .photo-flowers { grid-column: 1; grid-row: 3; }
    .paper-note { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
    .site-header { width: calc(100% - 32px); min-height: 72px; }
    .site-brand { font-size: 21px; }
    .back-link { font-size: 11px; text-align: right; }
    .top-inner { width: calc(100% - 42px); display: flex; flex-direction: column; align-items: stretch; padding: 38px 0 58px; }
    .cake-wrap { width: min(230px, 65%); margin: auto; padding: 0; }
    .brand-story { padding: 20px 0 0; border-left: 0; }
    .brand-story h1 { font-size: clamp(35px, 9vw, 48px); }
    .photo-romance { width: min(330px, 84%); margin-top: 45px; }
    .wood-sheet { padding: 60px 0 75px; }
    .collage { width: calc(100% - 44px); grid-template-columns: 1fr 1fr; gap: 36px 17px; }
    .brochure { grid-column: 1 / -1; }
    .photo-ceremony { grid-column: 1; grid-row: 2; transform: rotate(-4deg); }
    .photo-beach { grid-column: 2; grid-row: 2; transform: rotate(4deg); }
    .photo-flowers { grid-column: 1 / -1; grid-row: 3; width: 80%; justify-self: center; }
    .paper-note { grid-column: 1 / -1; grid-row: 4; padding: 28px; }
    .details-sheet { padding: 60px 0 75px; }
    .details-inner { width: calc(100% - 44px); }
    .detail-photos { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
