:root {
    --forest: #0d2818;
    --deep: #071510;
    --gold: #e8d08a;
    --cream: #f0e8d0;
    --muted: #bcc9b6
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem
}

body {
    margin: 0;
    background: var(--deep);
    color: var(--cream);
    font: 15px/1.75 system-ui, sans-serif
}

a {
    color: inherit
}

button,
input,
select,
textarea {
    font: inherit
}

a,
button {
    touch-action: manipulation
}

button {
    cursor: pointer
}

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

.skip {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 30;
    background: var(--cream);
    color: var(--deep);
    padding: 12px
}

.skip:focus {
    top: 10px
}

.preview-banner {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--gold);
    color: var(--deep);
    padding: 10px 20px;
    text-align: center;
    font-size: 13px
}

.preview-banner a {
    margin-left: 20px;
    font-weight: 700
}

.portrait {
    position: fixed;
    inset: 0 500px 0 0;
    display: flex;
    align-items: center;
    padding: 8vw;
    background: radial-gradient(ellipse at 10% 10%, #2b5132, var(--deep) 80%);
    overflow: hidden
}

.portrait:after,
.cover:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #07151033, #071510cc);
    pointer-events: none
}

.cover-photo {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover
}

.portrait-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
    overflow-wrap: anywhere
}

.portrait h1 {
    font: clamp(48px, 5.8vw, 96px)/1.05 Georgia, serif;
    font-weight: 400;
    margin: 32px 0;
    color: var(--gold)
}

h1 i,
h2 i {
    display: block;
    font-size: .6em;
    margin: 16px 0;
    font-weight: 400
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.8
}

.signature {
    display: block;
    font: italic 23px/1.6 Georgia, serif;
    margin-top: 35px;
    color: var(--gold)
}

.invitation {
    width: 500px;
    margin-left: auto;
    background: var(--forest);
    position: relative;
    overflow: hidden
}

.invitation:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .13;
    background-image: repeating-linear-gradient(45deg, transparent 0 34px, #a07828 35px, transparent 36px 70px), repeating-linear-gradient(-45deg, transparent 0 34px, #a07828 35px, transparent 36px 70px)
}

.section {
    position: relative;
    padding: 85px 38px;
    text-align: center;
    border-bottom: 1px solid #e8d08a22;
    overflow-wrap: anywhere
}

.cover {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding-block: 65px
}

.cover-content {
    position: relative;
    z-index: 1;
    width: 100%
}

h2 {
    font: 400 44px/1.13 Georgia, serif;
    color: var(--gold);
    margin: 20px 0
}

h3 {
    font: 400 25px/1.3 Georgia, serif;
    color: var(--gold);
    margin: 12px 0
}

.cover h2 {
    font-size: 58px
}

.date {
    font-size: 14px;
    letter-spacing: .06em
}

.ornament {
    font: 42px Georgia, serif;
    color: var(--gold);
    margin: 25px 0
}

.guest-label {
    font-size: 12px;
    margin: 44px 0 2px;
    color: var(--muted)
}

.guest-name {
    margin: 0 0 26px;
    font-size: 19px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--gold);
    color: var(--deep);
    padding: 13px 24px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #f0e0a8
}

.button:active {
    transform: translateY(1px)
}

.prose {
    max-width: 38ch;
    margin: 24px auto;
    color: var(--muted);
    line-height: 1.9
}

.couple h2 {
    margin-top: 36px
}

.muted {
    color: var(--muted);
    font-size: 14px
}

.ampersand {
    display: block;
    font: italic 46px Georgia, serif;
    color: var(--gold);
    margin: 36px
}

.event {
    background: #07151088;
}

.event-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-block: 1px solid #e8d08a44;
    padding: 22px 0;
    margin: 32px 0
}

.event-times>div+div {
    border-left: 1px solid #e8d08a44
}

.gift-list {
    margin: 32px 0;
    border-block: 1px solid #e8d08a44;
    text-align: left
}

.gift-item {
    padding: 22px 4px
}

.gift-item+.gift-item {
    border-top: 1px solid #e8d08a44
}

.gift-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.gift-head h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: .02em
}

.gift-num {
    margin: 0 0 6px;
    font-size: 1.4rem;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums
}

.gift-holder {
    margin: 0;
    font-size: .85rem;
    opacity: .72
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px
}

.text-link {
    font-size: 13px;
    text-underline-offset: 5px
}

.preserve {
    white-space: pre-line
}

.rsvp form {
    text-align: left;
    margin-top: 32px
}

.rsvp label {
    display: block;
    font-size: 13px;
    margin: 20px 0 8px
}

.rsvp input:not([type=checkbox]),
.rsvp select,
.rsvp textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #071510;
    color: var(--cream);
    border: 1px solid #6b785d;
    border-radius: 4px;
    min-height: 46px
}

.rsvp textarea {
    resize: vertical
}

.rsvp label.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.65;
    margin: 24px 0
}

.consent input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    flex-shrink: 0
}

.rsvp button {
    width: 100%
}

.fine {
    font-size: 11px;
    color: var(--muted);
    margin-top: 20px
}

.notice {
    padding: 18px;
    background: #e8d08a12;
    border: 1px solid #e8d08a66;
    text-align: left;
    font-size: 14px
}

.error {
    border-color: #e9a39a
}

.trap {
    position: absolute;
    left: -10000px;
    overflow: hidden;
    width: 1px;
    height: 1px
}

.brand {
    display: inline-block;
    font-size: 11px;
    margin-top: 48px;
    text-decoration: none;
    color: var(--muted)
}

footer h2 {
    font-size: 36px
}

footer {
    background: var(--deep);
    background-image: url('/themes/sunda-priangan/footer.webp');
    background-size: cover;
    background-position: center-top;
    background-repeat: no-repeat;
}

@media(max-width:1024px) {
    .portrait {
        display: none
    }

    .invitation {
        width: 100%;
        max-width: 600px;
        margin: auto
    }

    .cover {
        min-height: 100svh
    }
}

@media(max-width:360px) {
    .section {
        padding: 65px 22px
    }

    .cover h2 {
        font-size: 46px
    }

    .event-times {
        gap: 12px
    }

    h3 {
        font-size: 22px
    }
}

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

    * {
        transition: none !important
    }
}