@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
    --pink: #fb73b7;
    --hot: #e93089;
    --ink: #332344;
    --blue: #c6e8ff;
    --paper: #fff4fb;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    cursor: pointer;
    color: inherit;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid #4b36ba;
    outline-offset: 5px;
}

[hidden] { display: none !important; }

.wordmark {
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-size: 28px;
    letter-spacing: -2px;
}

.wordmark span {
    color: var(--hot);
    margin-left: 4px;
}

.sound {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    background: transparent;
    border: 1px solid #7a627a;
    border-radius: 20px;
    padding: 9px 14px;
}

.micro {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

h2 {
    font: 64px/.99 "Archivo Black", "Arial Black", sans-serif;
    letter-spacing: -4px;
    margin: 21px 0 25px;
}

h2 em, h3 em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--hot);
}

.star {
    position: absolute;
    filter: drop-shadow(2px 4px 1px #5e507558);
    z-index: 4;
}

/* Header */

.birthday-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 66px;
    padding: 0 6%;
    background: white;
    color: black;
    border-bottom: 1px solid #201622;
}

.birthday-nav .wordmark {
    font-size: 25px;
    letter-spacing: -1.5px;
}

.birthday-nav .wordmark span { color: black; }

.birthday-nav .sound {
    font-size: 9px;
    padding: 9px 13px;
    border-color: #f6c7e3;
    color: #fff7fc;
}

.birthday-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 26px max(6%, calc((100vw - 1200px) / 2)) 20px;
    background:
        radial-gradient(ellipse at 95% 10%, #ff77bd 0, transparent 43%),
        radial-gradient(ellipse at 0% 100%, #91d9ff 0, transparent 52%),
        linear-gradient(125deg, #ffc8e6 0%, #f7c8e9 48%, #c5eaff 100%);
    color: #332344;
    border-bottom: 2px solid #332344;
}

.header-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #33234455;
    padding-bottom: 21px;
    font: 700 10px "Space Mono", monospace;
    letter-spacing: 1px;
}

.header-topline > span:first-child {
    padding: 8px 11px;
    border: 1px solid #332344;
    background: #fff1fa;
    box-shadow: 3px 3px #332344;
    transform: rotate(-3deg);
}

.header-topline > span:last-child {
    background: #332344;
    color: #fff;
    padding: 8px 12px;
    transform: rotate(3deg);
}

.header-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
        "intro art"
        "actions art";
    column-gap: 35px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 0 35px;
}

.header-intro {
    grid-area: intro;
    align-self: end;
    min-width: 0;
}

.header-invited {
    margin: 0 0 18px;
    font: 11px/1.6 "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.birthday-header .header-title {
    margin: 0;
    font: 400 clamp(40px, 5.1vw, 70px)/1.05 "Archivo Black", "Arial Black", sans-serif;
    overflow-wrap: normal;
    color: #ff4ca4;
    letter-spacing: -3px;
    -webkit-text-stroke: 1px #332344;
    text-shadow: 2px 3px #332344, 4px 5px #fff;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.birthday-header .header-title em {
    display: block;
    margin-top: 12px;
    font: italic 400 1.2em/1.1 Georgia, serif;
    letter-spacing: -2px;
    color: #27192e;
    -webkit-text-stroke: 0;
    text-shadow: 2px 2px #fff5fb;
}

.header-art {
    grid-area: art;
    position: relative;
    min-width: 0;
    height: 475px;
    isolation: isolate;
}

.header-number {
    position: absolute;
    top: 8px;
    left: -17px;
    font: 400 clamp(250px, 28vw, 390px)/1 "Archivo Black", sans-serif;
    letter-spacing: -32px;
    color: #ee80bb;
    background: linear-gradient(
        170deg,
        #fff 0%,
        #edf9ff 20%,
        #8ba7b9 37%,
        #fff 40%,
        #f3ffff 47%,
        #4d486c 49%,
        #9cb1cd 56%,
        #e1f7ff 70%,
        #fff 82%,
        #877a9a 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #53415e;
    filter: drop-shadow(3px 4px #332344) drop-shadow(1px 1px #fff);
    transform: rotate(-5deg);
    z-index: 0;
    user-select: none;
}

.header-photo {
    position: absolute;
    bottom: 12px;
    right: -9px;
    width: 81%;
    height: 98%;
    object-fit: contain;
    object-position: bottom right;
    transform: rotate(5deg);
    filter:
        drop-shadow(3px 0 #fff)
        drop-shadow(-3px 0 #fff)
        drop-shadow(0 -3px #fff)
        drop-shadow(7px 8px #33234440);
    z-index: 2;
}

.header-orbit {
    position: absolute;
    left: 0;
    right: 0;
    top: 48%;
    height: 120px;
    border: 1px solid #33234444;
    border-radius: 50%;
    transform: rotate(-27deg);
    z-index: 1;
}

.header-sparkle {
    position: absolute;
    top: -2px;
    right: -4px;
    font: 105px/1 Georgia, serif;
    color: #fff;
    text-shadow: 2px 2px #332344;
    transform: rotate(10deg);
    z-index: 3;
}

.header-stamp {
    position: absolute;
    left: -8px;
    bottom: 18px;
    z-index: 3;
    padding: 15px 19px;
    background: #24202b;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 4px 4px #f34a9d;
    font: 14px/1.2 "Archivo Black", sans-serif;
    letter-spacing: .5px;
    transform: rotate(-10deg);
}

.header-actions {
    grid-area: actions;
    align-self: start;
    margin-top: 22px;
}

.header-sub {
    margin: 10px 0 23px;
    font-size: 16px;
}

.header-rsvp {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 19px 25px;
    background: white;
    color: #24172c;
    border: 2px solid #24172c;
    border-radius: 3px;
    box-shadow: 5px 5px #24172c;
    font: 700 11px "Space Mono", monospace;
    transition: transform .2s, box-shadow .2s;
}

.header-rsvp:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px #24172c;
}

.header-rsvp:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px #24172c;
}

.header-rsvp > span {
    font-size: 22px;
    line-height: 1;
}

.header-note {
    margin: 19px 0 0;
    font: 8px/1.7 "Space Mono", monospace;
    letter-spacing: .2px;
    color: #493047;
}

.header-scroll {
    display: block;
    padding-top: 17px;
    border-top: 1px solid #33234455;
    text-align: center;
    font: 700 8px "Space Mono", monospace;
    letter-spacing: 1px;
}

.header-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.marquee {
    overflow: hidden;
    background: var(--pink);
    border-block: 1px solid var(--ink);
    padding: 16px 0;
    font: 700 13px "Space Mono", monospace;
}

.marquee > div {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee span { white-space: nowrap; }

@keyframes marquee {
    to { transform: translateX(-40%); }
}

/* Details */

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 100px max(6%, calc((100vw - 1200px) / 2));
    align-items: center;
}

.details-intro p, .rsvp-art p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 360px;
}

.ticket {
    background: var(--blue);
    padding: 28px 28px 20px;
    border: 1px solid #655877;
    box-shadow: 7px 7px #e6a1ca;
    transform: rotate(3deg);
    position: relative;
}

.ticket::before, .ticket::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--paper);
    top: 62%;
    border: 1px solid #655877;
}

.ticket::before {
    left: -13px;
    border-left: none;
}

.ticket::after {
    right: -13px;
    border-right: none;
}

.ticket-top {
    font: 9px "Space Mono", monospace;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #77688a;
}

.ticket-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
}

.ticket-row > span {
    font: 9px "Space Mono", monospace;
    letter-spacing: 1px;
}

.ticket-row strong {
    font-weight: 500;
    font-size: 17px;
}

.ticket-bottom {
    margin-top: 24px;
    border-top: 1px dashed #77688a;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 8px "Space Mono", monospace;
}

.barcode {
    width: 80px;
    height: 28px;
    background: repeating-linear-gradient(
        90deg,
        var(--ink) 0 2px,
        transparent 2px 4px,
        var(--ink) 4px 5px,
        transparent 5px 8px
    );
}

.ticket-star {
    position: absolute;
    font-size: 60px;
    right: 32px;
    top: 80px;
    color: #fff;
    text-shadow: 1px 2px #6a5e82;
}

/* Music */

.blink-section {
    padding: 75px max(7%, calc((100vw - 1100px) / 2)) 85px;
    background: #e9efff;
    border-top: 1px solid #d4bfd9;
    color: #332344;
}

.blink-section .blink-title {
    width: 100%;
    margin: 0 0 55px;
    text-align: center;
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-size: clamp(36px, 5.3vw, 72px);
    line-height: 1.15;
    letter-spacing: -3px;
}

.blink-section .blink-title em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #e93089;
}

.blink-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    max-width: 930px;
    margin: 0 auto;
}

.blink-lyric {
    position: relative;
    margin: 0;
    padding: 25px 0 0 22px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: clamp(30px, 3.9vw, 53px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1.8px;
}

.blink-open-quote {
    position: absolute;
    left: -8px;
    top: -46px;
    font-family: Georgia, serif;
    font-size: 130px;
    font-weight: 400;
    line-height: 1;
    color: #f6a3cf;
}

.blink-lyric em {
    display: inline-block;
    margin-top: 7px;
    font-family: Georgia, serif;
    font-size: 1.25em;
    font-weight: 400;
    color: #e93089;
}

.blink-close-quote {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #e93089;
}

.ig-song {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 250px);
    justify-self: center;
    color: #332344;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease;
}

.ig-song:hover { transform: translateY(-4px); }

.ig-song-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 12px 28px #4339581a;
}

.ig-song-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-song-bars {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 37px;
    height: 32px;
    background: #00000028;
    border-radius: 7px;
}

.ig-song-bars i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: white;
}

.ig-song-bars i:nth-child(1) { height: 10px; }
.ig-song-bars i:nth-child(2) { height: 19px; }
.ig-song-bars i:nth-child(3) { height: 14px; }
.ig-song-bars i:nth-child(4) { height: 22px; }

.ig-song-title {
    margin-top: 13px;
    font: 700 15px/1.35 "DM Sans", Arial, sans-serif;
    letter-spacing: -.2px;
}

.ig-song-artist {
    margin-top: 3px;
    font: 400 14px/1.4 "DM Sans", Arial, sans-serif;
    opacity: .8;
}

/* RSVP */

.rsvp-section {
    background: #f6b5d8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 75px max(6%, calc((100vw - 1200px) / 2));
    border-block: 1px solid #a26990;
}

.rsvp-art {
    position: relative;
    min-height: 690px;
    overflow: hidden;
}

.rsvp-art h2 {
    font-size: 89px;
    position: relative;
    z-index: 2;
}

.rsvp-art h2 em {
    color: #fff4fd;
    text-shadow: 2px 2px #b15589;
}

.rsvp-vicky {
    position: absolute;
    width: 335px;
    height: 435px;
    object-fit: contain;
    bottom: -5px;
    left: -8px;
    transform: rotate(-7deg);
    filter:
        drop-shadow(3px 0 #fff)
        drop-shadow(-3px 0 #fff)
        drop-shadow(0 -3px #fff);
}

.bottle {
    position: absolute;
    bottom: 2px;
    right: 25px;
    height: 240px;
    transform: rotate(15deg);
    filter: drop-shadow(4px 8px #a85e8133);
}

.s4 {
    width: 120px;
    right: 32px;
    top: 290px;
}

.rsvp-scribble {
    position: absolute;
    bottom: 14px;
    right: 10px;
    font: italic 24px Georgia;
    background: #daf2ff;
    padding: 12px;
    transform: rotate(-8deg);
    z-index: 4;
}

.window {
    background: #fff9fe;
    border: 1.5px solid var(--ink);
    box-shadow: 9px 9px #b770a2;
    align-self: center;
}

.window-bar {
    display: flex;
    justify-content: space-between;
    padding: 13px 17px;
    background: #cee9ff;
    border-bottom: 1.5px solid var(--ink);
    font: 11px "Space Mono", monospace;
}

.window-bar > span:last-child { letter-spacing: 9px; }
.window-body { padding: 30px; }

.form-heading h3 {
    font: 33px "Archivo Black", "Arial Black", sans-serif;
    letter-spacing: -1.5px;
    margin: 12px 0 6px;
}

.form-heading p {
    font-size: 13px;
    margin: 0 0 25px;
    color: #75637a;
}

.guest-toggle {
    display: flex;
    border: 1px solid var(--ink);
    padding: 4px;
    gap: 4px;
    background: #f4eafa;
}

.guest-toggle button {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 13px 8px;
    font: 9px "Space Mono", monospace;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.guest-toggle button[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
}

.guest-toggle span { opacity: .6; }

/* Shot glasses */

.shot-tray {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    min-height: 200px;
}

.shot-tray > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.shot-tray > div > span {
    font: 8px "Space Mono", monospace;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glass {
    width: 85px;
    height: 110px;
    position: relative;
    filter: drop-shadow(5px 6px 5px #ab83a533);
    transform: rotate(-8deg);
}

.glass-body {
    height: 100px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid white;
    background: linear-gradient(
        90deg,
        #ffffffaa,
        #b3c3d81a 25%,
        #fff9 40%,
        #b4c6dc44 90%,
        #fff
    );
    clip-path: polygon(0 0, 100% 0, 83% 100%, 17% 100%);
}

.rim {
    position: absolute;
    top: -5px;
    width: 100%;
    height: 12px;
    border: 2px solid #aab3cc;
    border-radius: 50%;
    background: #f8edfaaa;
    z-index: 3;
}

.liquid {
    position: absolute;
    bottom: 9px;
    left: 4%;
    width: 92%;
    height: 68%;
    transition: height .9s;
    display: grid;
    place-items: center;
    color: #ffdeee;
    background: linear-gradient(
        90deg,
        #d32c86,
        #fc9acb 40%,
        #ea458f 78%,
        #fb87bd
    );
}

.liquid i {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 11px;
    border-radius: 50%;
    background: #ffb1d5;
    border: 1px solid #f16aaa;
}

.liquid b {
    font: italic 31px Georgia;
    opacity: .7;
}

.base {
    position: absolute;
    bottom: 0;
    left: 17%;
    width: 66%;
    height: 10px;
    border: 2px solid #bcc2d3;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(#fff, #c0bed4, #fff);
}

.shine {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 4px;
    height: 64px;
    background: #fffa;
    border-radius: 10px;
    transform: rotate(-6deg);
}

.glass.blue .liquid {
    background: linear-gradient(90deg, #5690da, #b2e9ff 45%, #669fe0);
}

.glass.blue .liquid i {
    background: #caefff;
    border-color: #6fa4dd;
}

.glass.clear .liquid {
    background: linear-gradient(90deg, #aac4d088, #edffffdd, #98c6d399);
}

.glass.clear .liquid i {
    background: #efffff;
    border-color: #bed4df;
}

.second-shot { animation: appear .4s; }
.second-shot .glass { transform: rotate(8deg); }

.tray-sparkle {
    position: absolute;
    right: 15%;
    top: 25px;
    font-size: 40px;
    color: #bb77ae;
}

/* Form */

.window label {
    display: block;
    font: 9px "Space Mono", monospace;
    letter-spacing: 1px;
    margin-bottom: 19px;
}

.window label > span { color: var(--hot); }

input {
    display: block;
    width: 100%;
    margin-top: 9px;
    background: #fff;
    border: 1px solid #c9b5cc;
    padding: 14px 13px;
    font: 13px "DM Sans", Arial, sans-serif;
    color: var(--ink);
    border-radius: 0;
}

input:focus {
    outline: 2px solid var(--pink);
    outline-offset: 1px;
}

fieldset {
    padding: 0;
    border: 0;
    margin: 0 0 25px;
}

legend {
    font: 9px "Space Mono", monospace;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.drink-options {
    display: flex;
    gap: 7px;
}

.drink-options button {
    background: transparent;
    border: 1px solid #d0b9cf;
    border-radius: 20px;
    font-size: 10px;
    padding: 8px;
    display: flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}

.drink-options button[aria-pressed="true"] {
    border-color: var(--ink);
    background: #f5e5f2;
}

.drink-options i {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: var(--pink);
}

.drink-options i.baby-blue { background: #86c9f4; }
.drink-options i.zero-proof { background: #d8dfe5; }

.submit {
    width: 100%;
    background: var(--ink);
    color: white;
    display: inline-flex;
    gap: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-radius: 4px;
    border: 1px solid var(--ink);
    font-family: "Space Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 4px 4px var(--pink);
    transition: transform .2s, box-shadow .2s;
}

.submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px var(--pink);
}

.submit span {
    font-size: 23px;
    line-height: 16px;
}

#submit-text {
    font: inherit;
    line-height: 1.3;
}

.tiny {
    font-size: 10px;
    text-align: center;
    color: #77647a;
    line-height: 1.7;
    margin: 19px 0 0;
}

.error {
    font-size: 13px;
    color: #a02157;
    line-height: 1.6;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Confirmation */

.success {
    text-align: center;
    padding: 25px 0;
    position: relative;
}

.success h3 {
    font: 55px/.98 "Archivo Black", "Arial Black", sans-serif;
    letter-spacing: -3px;
    margin: 25px 0;
}

.success > p { line-height: 1.7; }

.cheers {
    display: flex;
    justify-content: center;
    margin: 25px 0 45px;
    gap: 20px;
}

.cheers .glass { animation: tip 1.3s forwards; }

.cheers .liquid {
    height: 0;
    overflow: hidden;
}

.outline-button {
    background: transparent;
    border: 1px solid var(--ink);
    padding: 13px 20px;
    font: 10px "Space Mono", monospace;
    margin-top: 25px;
}

.confetti {
    position: absolute;
    top: 20px;
    font-size: 35px;
    letter-spacing: 14px;
    color: var(--hot);
    animation: confetti 1s ease-out forwards;
    pointer-events: none;
}

@keyframes tip {
    30%, 80% {
        transform: rotate(-70deg) translateY(-15px);
    }
    100% {
        transform: rotate(-8deg);
    }
}

@keyframes confetti {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* End photos */

.afterparty {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 65px 6%;
    background: #d3eaff;
    overflow: hidden;
}

.after-copy {
    order: -1;
    text-align: center;
}

.after-copy h2 {
    font-size: 49px;
    line-height: 1.1;
    margin: 18px 0 24px;
}

.after-copy > a {
    font: 11px "Space Mono", monospace;
    border-bottom: 1px solid;
    padding-bottom: 6px;
}

.photo-strip {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.photo-strip figure {
    margin: 0;
    min-width: 0;
    text-align: center;
}

.photo-strip img {
    position: static;
    display: block;
    width: 100%;
    height: 290px;
    object-fit: contain;
    filter:
        drop-shadow(3px 2px #fff)
        drop-shadow(-3px -2px #fff)
        drop-shadow(5px 7px #9288ab55);
}

.photo-strip figcaption {
    font: 9px "Space Mono", monospace;
    margin-top: 20px;
    letter-spacing: 1px;
}

.s5 {
    width: 80px;
    right: -5px;
    bottom: 50px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    background: #fff5fb;
}

footer > span, footer > a:last-child {
    font: 9px "Space Mono", monospace;
}

footer > a:last-child {
    font-size: 8px;
    opacity: .65;
}

/* Tablet */

@media (max-width: 1050px) {
    .details {
        gap: 40px;
        padding: 75px 6%;
    }

    .rsvp-section {
        gap: 28px;
        padding: 65px 5%;
    }

    .window-body { padding: 24px; }
    .rsvp-art h2 { font-size: 75px; }
    .rsvp-vicky { width: 280px; }

    .bottle {
        height: 190px;
        right: 0;
    }

    .drink-options { gap: 4px; }

    .drink-options button {
        font-size: 9px;
        padding: 8px 6px;
    }

    .after-copy h2 { font-size: 43px; }
}

@media (max-width: 850px) and (min-width: 701px) {
    .header-layout { column-gap: 12px; }
    .header-art { height: 390px; }

    .header-number {
        font-size: 275px;
        letter-spacing: -25px;
    }

    .birthday-header .header-title {
        font-size: 39px;
        letter-spacing: -2px;
    }

    .header-stamp { font-size: 11px; }
}

/* Mobile */

@media (max-width: 700px) {
    .wordmark { font-size: 24px; }
    .sound { font-size: 9px; }

    .birthday-nav {
        height: 57px;
        padding: 0 6%;
    }

    .birthday-nav .wordmark { font-size: 23px; }

    .birthday-nav .sound {
        font-size: 8px;
        padding: 8px 11px;
    }

    .birthday-header { padding: 18px 6% 17px; }

    .header-topline {
        padding-bottom: 18px;
        font-size: 8px;
    }

    .header-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "art"
            "actions";
        gap: 0;
        padding: 25px 0 23px;
    }

    .header-intro { text-align: center; }

    .header-invited {
        font-size: 9px;
        margin-bottom: 13px;
    }

    .birthday-header .header-title {
        font-size: clamp(32px, 10.3vw, 54px);
        letter-spacing: -2px;
        line-height: 1.05;
        transform-origin: center;
        -webkit-text-stroke: .7px #332344;
        text-shadow: 1px 2px #332344, 3px 4px #fff;
    }

    .birthday-header .header-title em {
        font-size: 1.16em;
        margin-top: 7px;
        letter-spacing: -1px;
        -webkit-text-stroke: 0;
        text-shadow: 1px 2px #fff;
    }

    .header-art {
        width: 100%;
        max-width: 365px;
        height: 325px;
        margin: 18px auto 0;
    }

    .header-number {
        font-size: clamp(220px, 71vw, 285px);
        letter-spacing: -26px;
        top: 3px;
        left: -4px;
    }

    .header-photo {
        width: 80%;
        height: 98%;
        right: -2px;
        bottom: 12px;
        transform: rotate(3deg);
    }

    .header-sparkle {
        font-size: 68px;
        top: 3px;
        right: 1px;
    }

    .header-orbit {
        top: 46%;
        height: 90px;
    }

    .header-stamp {
        font-size: 10px;
        padding: 12px 14px;
        left: 0;
        bottom: 11px;
    }

    .header-actions {
        margin-top: 22px;
        text-align: center;
    }

    .header-sub {
        font-size: 14px;
        margin: 0 0 19px;
    }

    .header-rsvp {
        width: calc(100% - 6px);
        max-width: 335px;
        padding: 18px 22px;
        font-size: 10px;
    }

    .header-note {
        font-size: 7px;
        margin-top: 18px;
    }

    .marquee {
        padding: 13px 0;
        font-size: 11px;
    }

    .details {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 58px 7%;
    }

    .details h2 { font-size: 55px; }
    .details p { font-size: 14px; }

    .ticket {
        margin: 0 7px 10px 0;
        padding: 25px;
    }

    .blink-section { padding: 48px 6% 55px; }

    .blink-section .blink-title {
        font-size: clamp(30px, 7.4vw, 48px);
        letter-spacing: -1.7px;
        margin-bottom: 38px;
    }

    .blink-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 18px;
    }

    .blink-lyric {
        padding: 12px 0 0 4px;
        font-size: clamp(19px, 4.5vw, 30px);
        letter-spacing: -.6px;
        line-height: 1.3;
    }

    .blink-open-quote {
        left: -3px;
        top: -29px;
        font-size: 78px;
    }

    .blink-lyric em {
        margin-top: 4px;
        font-size: 1.18em;
    }

    .ig-song { width: min(100%, 190px); }

    .ig-song-title {
        font-size: 11px;
        margin-top: 9px;
    }

    .ig-song-artist { font-size: 11px; }

    .ig-song-bars {
        left: 8px;
        bottom: 8px;
        transform: scale(.75);
        transform-origin: bottom left;
    }

    .rsvp-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 6% 60px;
    }

    .rsvp-art { min-height: 420px; }

    .rsvp-art h2 {
        font-size: 65px;
        margin: 17px 0;
    }

    .rsvp-art p {
        max-width: 210px;
        font-size: 13px;
    }

    .rsvp-vicky {
        left: auto;
        right: -18px;
        bottom: 0;
        width: 205px;
        height: 260px;
        transform: rotate(4deg);
    }

    .bottle {
        height: 145px;
        left: 11px;
        bottom: 5px;
        right: auto;
        transform: rotate(-14deg);
    }

    .s4 {
        width: 65px;
        right: 7px;
        top: 53px;
    }

    .rsvp-scribble {
        font-size: 20px;
        bottom: 8px;
        right: 58px;
        padding: 8px;
    }

    .window { box-shadow: 6px 6px #b770a2; }
    .window-body { padding: 25px 20px; }
    .form-heading h3 { font-size: 30px; }

    .guest-toggle button {
        font-size: 8px;
        padding: 13px 7px;
    }

    .drink-options { gap: 6px; }

    .drink-options button {
        font-size: 10px;
        padding: 8px;
    }

    .shot-tray { min-height: 195px; }
    .afterparty { padding: 45px 6%; }

    .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .photo-strip img { height: 230px; }
    .photo-strip figcaption { font-size: 8px; }
    .after-copy h2 { font-size: 40px; }
    .after-copy .micro { font-size: 7px; }
    .s5 { bottom: 90px; }
    .micro { font-size: 8px; }

    footer {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 6%;
    }

    footer > span { font-size: 8px; }

    footer > a:last-child {
        flex-basis: 100%;
        font-size: 7px;
    }

    .success h3 { font-size: 50px; }
}

@media (max-width: 360px) {
    .header-art { height: 290px; }
    .header-number { font-size: 225px; }
    .header-stamp { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}