@import url('https://fonts.googleapis.com/css2?family=Ballet&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --ink: #354437;
    --soft-ink: #5d665b;
    --paper: #fcfaf6;
    --paper-deep: #f1eee5;
    --gold: #d7b56d;
    --gold-light: #e8dbc1;
    --gold-dark: #806344;
    --cream: #fffdf9;
    --sage: #a9b9a4;
    --rose: #a86f68;
    --line: rgba(53, 68, 55, .2);
    --font-script: 'Edwardian Script ITC', 'ITC Edwardian Script', 'Ballet', cursive;
    --font-editorial: 'Cinzel', serif;
    --flower-one: url('img/flower%20decorations/Br%C3%B6llopsinbjudan%20drafts.png');
    --flower-two: url('img/flower%20decorations/Br%C3%B6llopsinbjudan%20drafts%20%281%29.png');
    --flower-three: url('img/flower%20decorations/Br%C3%B6llopsinbjudan%20drafts%20%282%29.png');
    --flower-four: url('img/flower%20decorations/Br%C3%B6llopsinbjudan%20drafts%20%283%29.png');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-editorial);
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: .75rem 1rem;
    background: var(--ink);
    color: var(--cream);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: auto;
    padding: 1.3rem clamp(1.25rem, 5vw, 4rem);
    color: var(--ink);
}

.site-header nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .4rem .65rem;
    border: 1px solid rgba(128, 99, 68, .45);
    background: rgba(215, 181, 109, .42);
    color: var(--gold-dark);
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.site-header nav a:hover {
    color: var(--ink);
    border-color: var(--gold-dark);
    background: var(--gold-light);
}

.site-header nav a:focus-visible,
.monogram:focus-visible,
.gold-button:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 5px;
}

.monogram {
    font: 500 1.35rem var(--font-editorial);
    letter-spacing: .12em;
    text-decoration: none;
}

.eyebrow {
    margin: 0;
    color: var(--rose);
    font: 600 .72rem var(--font-editorial);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .86fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    min-height: 740px;
    padding: 9rem clamp(1.25rem, 8vw, 8rem) 4.5rem;
    overflow: hidden;
    background: var(--paper);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: clamp(50px, 11vw, 150px);
    background: url('img/invitation.png') center 1.75rem / 100% auto no-repeat;
    opacity: .88;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    pointer-events: none;
}

.hero-paper {
    position: relative;
    z-index: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
    background-color: var(--paper);
    background-image: var(--flower-three), var(--flower-one);
    background-position: left 0 bottom -20px, right bottom;
}

.hero-paper,
.welcome,
.details,
.dress-code,
.practical,
.rsvp {
    background-repeat: no-repeat, no-repeat;
    background-size: clamp(76px, 15vw, 140px) auto;
    background-blend-mode: multiply;
}

.hero-paper .eyebrow {
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    font-weight: 400;
}

h1 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 .16em;
    margin: 0;
    font: 400 5rem/.92 var(--font-script);
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-ampersand {
    color: var(--rose);
    font: 400 3.6rem/1 var(--font-script);
}

.hero-date {
    margin: 1.7rem 0 0;
    color: var(--soft-ink);
    font: italic 1.2rem/1.55 var(--font-editorial);
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1.7rem 0 1rem;
    color: var(--gold-dark);
    font: 1.25rem var(--font-editorial);
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    width: 55px;
    height: 1px;
    background: var(--gold);
}

.hero-locations {
    display: grid;
    gap: .25rem;
    color: var(--soft-ink);
    font: italic 1rem/1.4 var(--font-editorial);
}

.hero-locations p {
    margin: 0;
}

.wedding-countdown {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: clamp(.25rem, 2vw, .55rem);
    margin-top: 1rem;
    padding-top: .65rem;
    border-top: 1px solid var(--gold-light);
}

.wedding-countdown[hidden] {
    display: none;
}

.countdown-unit {
    display: grid;
    gap: .2rem;
    min-width: 2.7rem;
}

.countdown-value {
    color: var(--ink);
    font: 500 1rem/1 var(--font-editorial);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    color: var(--gold-dark);
    font-size: .52rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.gold-button,
.pending-button {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    margin-top: 2rem;
    padding: 1rem 1.35rem;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-decoration: none;
}

.gold-button {
    background: var(--gold);
    color: var(--ink);
    transition: background .2s ease, transform .2s ease;
}

.gold-button:hover,
.gold-button:focus-visible {
    background: var(--gold-dark);
    color: var(--cream);
    transform: translateY(-2px);
}

.hero-photo {
    position: relative;
    z-index: 1;
    min-height: 480px;
    aspect-ratio: 4 / 5;
    max-height: 570px;
    padding: 8px;
    background: var(--cream);
    box-shadow: 0 16px 45px rgba(53, 68, 55, .12);
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 14px;
    z-index: 1;
    border: 1px solid rgba(255, 253, 249, .72);
    pointer-events: none;
}

.hero-photo img,
.photo-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-note {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    color: var(--cream);
    font: italic 1.2rem/1 var(--font-editorial);
    text-align: right;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.band {
    padding: 6.5rem clamp(1.25rem, 10vw, 10rem);
}

.welcome {
    display: grid;
    grid-template-columns: 64px 1fr 1fr;
    gap: 2rem;
    align-items: start;
    background-color: var(--paper-deep);
    background-image: var(--flower-two), var(--flower-four);
    background-position: left 0 bottom -12px, right top;
}

.section-mark {
    color: var(--rose);
    font: 500 1.1rem var(--font-editorial);
}

h2 {
    margin: .7rem 0 0;
    font: 400 4.2rem/.91 var(--font-editorial);
}

.intro-copy {
    max-width: 380px;
    margin: 3rem 0 0;
    color: var(--soft-ink);
    line-height: 1.75;
}

.details {
    display: block;
    text-align: center;
    background-color: var(--paper);
    background-image: var(--flower-one), var(--flower-three);
    background-position: right top, left 0 bottom -12px;
}

.details .timeline {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.dress-code {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--gold-light);
}

.dress-code-copy {
    max-width: 620px;
    color: var(--ink);
    line-height: 1.7;
}

.dress-code .eyebrow {
    color: var(--ink);
}

.dress-code-copy p {
    margin: 0;
}

.dress-code-divider {
    width: 2.5rem;
    height: 1px;
    margin: .85rem 0;
    background: var(--gold-dark);
}

.timeline {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}

.timeline-item {
    text-align: center;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item h3 {
    margin: 0 0 .25rem;
    font: 600 1.45rem var(--font-editorial);
}

.timeline-item p,
.practical-list p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.55;
}

.practical-list [data-content="place-summary"] {
    white-space: pre-line;
}

.photo-break {
    position: relative;
    height: 490px;
    overflow: hidden;
    background: var(--sage);
}

.photo-break img {
    object-position: 55% center;
    filter: saturate(.82);
}

.photo-break::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(35, 52, 39, .54), transparent 72%);
}

.photo-break p {
    position: absolute;
    z-index: 1;
    left: clamp(1.25rem, 10vw, 10rem);
    bottom: 3rem;
    margin: 0;
    color: var(--cream);
    font: italic 3.5rem/.95 var(--font-editorial);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .34);
}

.practical {
    display: grid;
    grid-template-columns: 64px .8fr 1.2fr;
    gap: 2rem;
    background-color: var(--paper-deep);
    background-image: var(--flower-four), var(--flower-two);
    background-position: right top, left 0 bottom -12px;
}

.practical-list {
    margin-top: .7rem;
}

.practical-list article {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.practical-list article:first-child {
    border-top: 1px solid var(--line);
}

.practical-list article > span {
    display: block;
    margin-bottom: .35rem;
    color: var(--rose);
    font: 600 .72rem var(--font-editorial);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.travel-copy {
    display: grid;
    gap: .55rem;
}

.travel-copy p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.55;
}

.location-list {
    display: grid;
    gap: 1rem;
    margin-top: .25rem;
}

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

.location-item p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.45;
}

.location-item strong {
    color: var(--ink);
}

.location-item a {
    flex-shrink: 0;
    padding: .45rem .7rem;
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold-dark);
}

.location-item a:hover,
.location-item a:focus-visible {
    color: var(--rose);
    border-color: var(--rose);
}

.rsvp {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: var(--paper-deep);
    background-image: var(--flower-three), var(--flower-one);
    background-position: left 0 top 12px, right bottom;
}

.contribute {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 4rem;
    background-color: var(--paper);
}

.contribute-copy {
    max-width: 620px;
}

.contribute-copy > p:first-child {
    max-width: 520px;
    margin: .7rem 0 2.2rem;
    color: var(--soft-ink);
    line-height: 1.7;
}

.contribute-copy h3 {
    margin: 0 0 .6rem;
    color: var(--ink);
    font: 600 1rem var(--font-editorial);
}

.guidelines {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.7;
    white-space: pre-line;
}

.toastmaster-contacts {
    display: grid;
    gap: .75rem;
}

.toastmaster-contacts > p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.7;
}

.toastmaster-contact {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}

.toastmaster-contact-name {
    flex-basis: 100%;
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.toastmaster-contact a {
    color: var(--gold-dark);
    text-underline-offset: .2em;
}

.rsvp-card {
    max-width: 680px;
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: center;
}

.rsvp-card .eyebrow {
    padding-top: 1rem;
}

.rsvp-card p:not(.eyebrow) {
    max-width: 390px;
    margin: 1.5rem auto 0;
    color: var(--soft-ink);
    line-height: 1.65;
}

.rsvp-card p.rsvp-update-copy {
    margin-top: .5rem;
}

.rsvp-card .rsvp-edit-copy {
    margin-top: 1rem;
    font-size: .88rem;
}

.short-rule {
    width: 72px;
    height: 1px;
    margin: 1.5rem auto 0;
    background: var(--gold);
}

.pending-button {
    color: var(--ink);
    background: var(--gold-light);
    border: 1px solid var(--gold);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) repeat(2, minmax(0, 1fr));
    gap: 1.5rem 3rem;
    padding: 2rem clamp(1.25rem, 5vw, 4rem);
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(252, 250, 246, .7), rgba(252, 250, 246, .7)), url('img/PXL_20260912_064909058.PORTRAIT.jpg');
    background-position: center, center 33%;
    background-size: 100% 100%, cover;
    background-repeat: no-repeat, no-repeat;
    border-top: 1px solid var(--gold-light);
    font-size: .75rem;
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: .65rem;
}

.footer-brand [data-content="monogram"] {
    font: 500 1.2rem var(--font-editorial);
    letter-spacing: .12em;
}

.footer-contact-group h2 {
    margin: 0 0 .65rem;
    color: var(--gold-dark);
    font: 600 .78rem var(--font-editorial);
}

.footer-contact-group > p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.7;
}

.footer-contact-group .toastmaster-contacts {
    gap: 0;
}

.footer-contact-group .toastmaster-contact {
    padding-top: 0;
    border-top: 0;
}

.footer-contact-group .toastmaster-contact + .toastmaster-contact {
    margin-top: .6rem;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr);
        gap: 2rem;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    h1 {
        font-size: 3.8rem;
    }

    .welcome,
    .practical {
        grid-template-columns: 48px 1fr 1.1fr;
        gap: 1.5rem;
    }

    h2 {
        font-size: 3.6rem;
    }
}

@media (max-width: 850px) {
    h1 {
        font-size: 3.3rem;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: absolute;
        align-items: center;
        padding: .75rem 1rem;
        background: rgba(252, 250, 246, .94);
        border-bottom: 1px solid rgba(187, 151, 97, .35);
    }

    .site-header nav {
        gap: .75rem;
        font-size: .67rem;
    }

    .site-header nav a {
        min-height: 44px;
        padding: .35rem .55rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding: 0 0 2rem;
    }

    .hero-paper {
        width: 100%;
        padding: 1rem 1.25rem 1.5rem;
        background-color: var(--paper);
    }

    .hero::before {
        display: none;
    }

    .hero-photo {
        order: -1;
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 5;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .hero-photo img {
        display: block;
    }

    .hero-photo::before {
        display: none;
    }

    .hero-photo::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 27px;
        background: var(--paper);
        clip-path: polygon(0 36%, 5% 52%, 11% 30%, 17% 48%, 24% 24%, 31% 45%, 38% 28%, 45% 53%, 52% 31%, 59% 48%, 66% 23%, 73% 44%, 80% 27%, 87% 51%, 94% 30%, 100% 44%, 100% 100%, 0 100%);
    }

    .invitation-flora {
        position: absolute;
        top: 4rem;
        right: 0;
        left: 0;
        z-index: 1;
        display: block;
        height: clamp(5rem, 23vw, 7rem);
        background: url('img/invitation.png') center top / 100vw auto no-repeat;
        opacity: .94;
        -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%), linear-gradient(#000 0%, #000 58%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%), linear-gradient(#000 0%, #000 58%, transparent 100%);
        mask-composite: intersect;
        pointer-events: none;
    }

    h1 {
        font-size: 3.3rem;
    }

    .hero-ampersand {
        font-size: 2.4rem;
    }

    .hero-photo {
        width: 100%;
    }

    .welcome,
    .details,
    .dress-code,
    .practical,
    .contribute {
        display: block;
    }

    .dress-code {
        background-position: right top, right bottom;
    }

    .band {
        padding: 4.5rem 1.5rem;
    }

    .section-mark {
        margin-bottom: 1.2rem;
    }

    h2 {
        font-size: 3.4rem;
    }

    .intro-copy {
        margin-top: 1.5rem;
    }

    .timeline {
        margin-top: 2.5rem;
    }

    .practical-list {
        margin-top: 2rem;
    }

    .contribute-copy {
        margin-top: 2rem;
    }

    .photo-break {
        height: 390px;
    }

    .photo-break p {
        font-size: 2.75rem;
    }

    .location-item {
        align-items: flex-start;
    }

    .location-item p {
        min-width: 0;
    }

    .rsvp-card {
        padding: .5rem 0;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-footer {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 390px) {
    .site-header {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .site-header nav {
        gap: .55rem;
        font-size: .62rem;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-photo {
        aspect-ratio: 4 / 5;
    }

    .hero-note {
        right: 1rem;
        bottom: 1.7rem;
        font-size: 1rem;
    }
}

@media (max-width: 359px) {
    .hero-paper {
        padding: .4rem .75rem .4rem;
    }

    .hero-paper .eyebrow {
        margin-bottom: .4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-date {
        margin-top: .65rem;
    }

    .hero-divider {
        margin: .65rem 0 .5rem;
    }

    .gold-button {
        margin-top: .5rem;
        padding: .9rem 1rem;
    }
}

@media (prefers-reduced-motion: no-preference) {

    .hero-paper,
    .hero-photo {
        animation: appear .8s ease-out both;
    }

    .hero-photo {
        animation-delay: .12s;
    }

    @keyframes appear {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

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

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