/* ---------------------------------------------------------
   THE ROYAL MASQUERADE
   Mobile-first invitation website
--------------------------------------------------------- */

:root {
    --night: #041027;
    --night-2: #071a3e;
    --night-3: #0b2a61;
    --ink: #eef4ff;
    --muted: #b7c4dc;
    --silver: #f5f7fb;
    --line: rgba(220, 231, 255, .22);
    --glass: rgba(10, 30, 68, .72);
    --glass-strong: rgba(7, 21, 50, .9);
    --accent: #dce8ff;
    --max: 880px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 8%, rgba(97, 147, 255, .22) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 14%, rgba(255,255,255,.7) 0 1px, transparent 2px),
        radial-gradient(circle at 30% 32%, rgba(255,255,255,.45) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 55%, rgba(108,167,255,.38) 0 1px, transparent 2px),
        radial-gradient(circle at 52% 80%, rgba(255,255,255,.4) 0 1px, transparent 2px),
        linear-gradient(180deg, #020918 0%, #061530 42%, #081d43 100%);
    background-size: 180px 180px, 220px 220px, 260px 260px, 310px 310px, 370px 370px, auto;
    font-family: Georgia, "Times New Roman", serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2,8,20,.8), transparent 18%, transparent 82%, rgba(2,8,20,.8)),
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.34) 100%);
    z-index: -1;
}

a {
    color: inherit;
}

.side-art {
    position: fixed;
    top: 0;
    bottom: 0;
    width: clamp(130px, 17vw, 285px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .88;
    z-index: 0;
    pointer-events: none;
}

.side-art::after {
    content: "";
    position: absolute;
    inset: 0;
}

.side-art--left {
    left: 0;
    background-image: url("assets/images/side-left.jpg");
}

.side-art--left::after {
    background: linear-gradient(90deg, rgba(1,7,19,.05), rgba(1,8,22,.1) 55%, #041027 100%);
}

.side-art--right {
    right: 0;
    background-image: url("assets/images/side-right.jpg");
}

.side-art--right::after {
    background: linear-gradient(270deg, rgba(1,7,19,.05), rgba(1,8,22,.1) 55%, #041027 100%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 34px 62px;
    position: relative;
}

.ornament {
    font-size: 1.3rem;
    opacity: .9;
    margin-bottom: 18px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .72rem;
    color: var(--muted);
}

.hero h1 {
    margin: 0;
    font-weight: normal;
}

.host-name {
    display: block;
    font-style: italic;
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: 4px;
}

.birthday {
    display: block;
    font-size: clamp(2rem, 8vw, 4.7rem);
    font-weight: normal;
    line-height: .95;
    margin-bottom: 18px;
}

.royal-title {
    display: block;
    max-width: 760px;
    font-size: clamp(2.5rem, 9vw, 6rem);
    line-height: .88;
    letter-spacing: .025em;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(155,190,255,.18);
}

.divider {
    width: min(260px, 60%);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px auto;
    color: var(--accent);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225,235,255,.8));
}

.divider::after {
    background: linear-gradient(90deg, rgba(225,235,255,.8), transparent);
}

.divider span {
    font-size: .55rem;
}

.lead {
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    line-height: 1.65;
}

.event-details {
    margin-top: 28px;
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.25;
}

.event-details p {
    margin: 10px 0;
}

.dress-highlight {
    margin-top: 36px;
    padding: 20px 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 5px;
    font-style: italic;
}

.dress-highlight .small-label {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .65rem;
    color: var(--muted);
}

.dress-highlight strong {
    font-size: 1.3rem;
}

.scroll-cue {
    position: static;
    margin-top: 18px;
    display: grid;
    gap: 4px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .65rem;
    color: var(--muted);
}

.scroll-cue span {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    line-height: 1;
}

.content-section {
    margin: 42px 0;
    padding: clamp(34px, 6vw, 66px);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(18,48,101,.64), rgba(4,18,44,.78));
    box-shadow: 0 24px 70px rgba(0,0,0,.2);
    backdrop-filter: blur(10px);
}

.content-section h2 {
    margin: 0 0 30px;
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 1;
    font-weight: normal;
}

.content-section--dark {
    background: rgba(3,14,34,.82);
}

.content-section--rules {
    background:
        radial-gradient(circle at top right, rgba(93,137,219,.12), transparent 36%),
        rgba(5,19,45,.86);
}

.content-section--rsvp {
    margin-bottom: 90px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-card {
    min-height: 255px;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(4,17,42,.58);
    display: flex;
    flex-direction: column;
}

.info-card--accent {
    background: rgba(19,48,99,.7);
}

.card-icon {
    font-size: 1.7rem;
    margin-bottom: auto;
}

.info-card h3 {
    font-size: 1.45rem;
    margin: 24px 0 10px;
    font-weight: normal;
}

.info-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.55;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .94rem;
}

.info-card a {
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.detail-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.detail-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list span {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
}

.detail-list strong {
    font-weight: normal;
    font-size: 1.15rem;
}

.placeholder-note {
    margin: 28px 0 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.feature-box {
    padding: 30px;
    border: 1px solid rgba(231,239,255,.35);
    text-align: center;
    background: rgba(255,255,255,.035);
}

.feature-box p {
    margin: 0;
    line-height: 1.6;
}

.feature-main {
    margin-bottom: 14px !important;
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    letter-spacing: .06em;
}

.rules-placeholder {
    display: grid;
    gap: 12px;
}

.rules-placeholder > p {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0 0 12px;
}

.rule-preview {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 17px 0 5px;
}

.rule-preview span {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
}

.rule-preview p {
    margin: 0;
    font-size: 1.15rem;
}

.personal-link-note {
    padding: 10px 14px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .8rem;
}

.rsvp-form {
    display: grid;
    gap: 22px;
}

.rsvp-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.rsvp-form legend {
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--muted);
    font-size: .7rem;
    margin-bottom: 12px;
}

.choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    cursor: pointer;
    background: rgba(255,255,255,.025);
    transition: .2s ease;
}

.choice:hover {
    background: rgba(255,255,255,.055);
}

.choice input {
    accent-color: white;
    width: 18px;
    height: 18px;
}

.choice span {
    display: grid;
    gap: 4px;
}

.choice strong {
    font-size: 1.08rem;
    font-weight: normal;
}

.choice small {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--muted);
    line-height: 1.4;
}

.acceptance {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(224,234,255,.34);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    font-size: .9rem;
}

.acceptance input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: #fff;
}

.primary-button {
    width: 100%;
    border: 1px solid white;
    padding: 17px 20px;
    background: #f4f7ff;
    color: #071530;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.primary-button:not(:disabled):hover {
    transform: translateY(-1px);
    background: white;
}

.primary-button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.form-hint {
    margin: -8px 0 0;
    text-align: center;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
}

footer {
    text-align: center;
    padding: 20px 20px 70px;
}

footer p {
    margin: 0 0 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

footer small {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 1180px) {
    .side-art {
        width: 95px;
        opacity: .64;
    }

    .page-shell {
        width: min(calc(100% - 110px), var(--max));
    }
}

@media (max-width: 760px) {
    .side-art {
        width: 48px;
        opacity: .42;
    }

    .side-art--left::after {
        background: linear-gradient(90deg, rgba(1,7,19,.05), #041027 100%);
    }

    .side-art--right::after {
        background: linear-gradient(270deg, rgba(1,7,19,.05), #041027 100%);
    }

    .page-shell {
        width: calc(100% - 34px);
    }

    .hero {
        min-height: 100svh;
        padding-left: 24px;
        padding-right: 24px;
    }

    .royal-title {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 220px;
    }

    .content-section {
        margin: 22px 0;
        padding: 34px 24px;
    }

    .detail-list > div {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

@media (max-width: 460px) {
    .side-art {
        display: none;
    }

    .page-shell {
        width: calc(100% - 22px);
    }

    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lead {
        font-size: 1rem;
    }

    .event-details {
        font-size: 1rem;
    }
}


/* Decorative masquerade mask taken from the original invitation artwork. */
.hero-mask {
    width: min(390px, 76vw);
    margin: 28px auto 0;
    position: relative;
    line-height: 0;
    opacity: .96;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .34));
}

.hero-mask img {
    display: block;
    width: 100%;
    height: auto;

    /* Softly blend the rectangular crop into the starry page background. */
    -webkit-mask-image: radial-gradient(
        ellipse 78% 72% at 50% 52%,
        #000 48%,
        rgba(0,0,0,.92) 63%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 78% 72% at 50% 52%,
        #000 48%,
        rgba(0,0,0,.92) 63%,
        transparent 100%
    );
}

@media (max-width: 460px) {
    .hero-mask {
        width: min(330px, 88vw);
        margin-top: 22px;
    }
}
