/* =========================================================
   ROOT
========================================================= */

:root {
    --bg-main: #fcfbfa;
    --bg-soft: #f4f1ec;

    --c-dark: #1e1b18;
    --c-gray: #6b6661;
    --c-accent: #a39485;

    --c-dark-section: #171513;
    --c-light: #fbfbfa;

    --intro-bg: #ede9e2;

    --input-border: #38332e;

    --success-color: #a3c9a8;
    --error-color: #d99a9a;

    --footer-logo-width: 185px;

    --font-sans:
        "Montserrat",
        sans-serif;

    --font-serif:
        "Playfair Display",
        serif;

    --transition-smooth:
        all 0.6s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        var(--font-sans);

    background-color:
        var(--bg-main);

    color:
        var(--c-dark);

    line-height: 1.7;

    -webkit-font-smoothing:
        antialiased;

    -moz-osx-font-smoothing:
        grayscale;

    overflow-x: hidden;
}


body.intro-locked {
    overflow: hidden;
}


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


button {
    -webkit-tap-highlight-color:
        transparent;
}


img {
    max-width: 100%;
}


.container {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding: 0 24px;
}


.text-center {
    text-align: center;
}


.bg-soft {
    background-color:
        var(--bg-soft);
}


.bg-dark {
    background-color:
        var(--c-dark-section);
}


.light-text {
    color:
        var(--c-light) !important;
}


.is-hidden {
    display: none !important;
}


/* =========================================================
   INTRO
========================================================= */

.intro-overlay {
    position: fixed;

    inset: 0;

    width: 100%;

    height: 100vh;

    height: 100svh;

    background-color:
        var(--intro-bg);

    z-index: 9999;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    transition:
        transform 1.4s
        cubic-bezier(
            0.85,
            0,
            0.15,
            1
        ),
        visibility 0s
        linear 1.4s;
}


.intro-overlay.dismissed {
    transform:
        translateY(-105%);

    visibility: hidden;

    pointer-events: none;
}


.intro-content {
    width: 100%;

    padding: 40px 24px;

    text-align: center;

    animation:
        fadeInIntro
        1.2s ease-out both;
}


.intro-tag {
    display: block;

    margin-bottom: 24px;

    font-size: 0.8rem;

    font-weight: 300;

    text-transform: uppercase;

    letter-spacing: 6px;

    color:
        var(--c-gray);
}


.intro-initials {
    margin-bottom: 15px;

    font-family:
        var(--font-serif);

    font-size: 4.5rem;

    font-weight: 400;

    line-height: 1.1;

    color:
        var(--c-dark);
}


.intro-date {
    margin-bottom: 45px;

    font-size: 1.1rem;

    font-weight: 300;

    letter-spacing: 3px;

    color:
        var(--c-dark);
}


/* =========================================================
   OPEN BUTTON
========================================================= */

.open-btn {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 230px;

    padding: 18px 40px;

    overflow: hidden;

    background: transparent;

    border:
        1px solid
        var(--c-dark);

    color:
        var(--c-dark);

    font-size: 0.85rem;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 3px;

    cursor: pointer;

    transition:
        var(--transition-smooth);
}


.open-btn .btn-text {
    position: relative;

    z-index: 2;
}


.btn-ripple {
    position: absolute;

    width: 0;

    height: 0;

    left: 50%;

    top: 50%;

    border-radius: 50%;

    background-color:
        var(--c-dark);

    transform:
        translate(
            -50%,
            -50%
        );

    transition:
        width 0.7s ease,
        height 0.7s ease;

    z-index: 1;
}


.open-btn:hover,
.open-btn:focus-visible {
    color: #fff;

    letter-spacing: 4px;

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.08
        );

    outline: none;
}


.open-btn:hover .btn-ripple,
.open-btn:focus-visible .btn-ripple {
    width: 400px;

    height: 400px;
}


.open-btn:active {
    transform:
        scale(0.98);
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;

    width: 100%;

    height: 100vh;

    height: 100svh;

    min-height: 650px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    align-items: center;

    padding:
        max(
            100px,
            env(
                safe-area-inset-top
            )
        )
        24px
        max(
            60px,
            env(
                safe-area-inset-bottom
            )
        );

    text-align: center;

    overflow: hidden;

    isolation: isolate;
}


.hero-bg-container {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

    background-color:
        var(--c-dark-section);

    overflow: hidden;
}


.hero-bg-image {
    position: absolute;

    inset: -3%;

    width: 106%;

    height: 106%;

    background-position:
        center center;

    background-size: cover;

    background-repeat: no-repeat;

    animation:
        kenBurns
        30s
        infinite
        alternate
        ease-in-out;

    will-change: transform;
}


.fog-layer {
    position: absolute;

    top: 0;

    left: 0;

    width: 200%;

    height: 100%;

    opacity: 0.4;

    pointer-events: none;

    will-change: transform;
}


.layer-1 {
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(
                255,
                255,
                255,
                0.07
            )
            0%,
            transparent 65%
        );

    filter:
        blur(25px);

    animation:
        fogMove
        35s
        infinite
        linear;
}


.layer-2 {
    background:
        radial-gradient(
            circle at 30% 60%,
            rgba(
                244,
                241,
                236,
                0.05
            )
            0%,
            transparent 55%
        );

    filter:
        blur(40px);

    animation:
        fogMove
        55s
        infinite
        linear
        reverse;
}


.hero-title-wrapper,
.countdown {
    position: relative;

    z-index: 5;
}


.hero-title-wrapper {
    width: 100%;
}


.hero-tagline {
    margin-bottom: 24px;

    font-size: 0.85rem;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 7px;

    color: #f4f1ec;

    opacity: 0;

    transform:
        translateY(20px);
}


.hero-title {
    font-family:
        var(--font-serif);

    font-size:
        clamp(
            3rem,
            7vw,
            3.8rem
        );

    font-weight: 400;

    line-height: 1.25;

    color: #fff;

    text-shadow:
        0 4px 30px
        rgba(
            0,
            0,
            0,
            0.15
        );

    opacity: 0;

    transform:
        translateY(20px);
}


.and-sym {
    font-family:
        var(--font-serif);

    font-style: italic;

    color: #ebd9c8;
}


/* =========================================================
   HERO START
========================================================= */

.hero-title-wrapper.animated-start
.hero-tagline {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity 1s ease 0.3s,
        transform 1s ease 0.3s;
}


.hero-title-wrapper.animated-start
.hero-title {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity 1.2s ease 0.6s,
        transform 1.2s ease 0.6s;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    max-width: 100%;

    margin-top: 45px;

    padding: 20px 40px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 50px;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );

    -webkit-backdrop-filter:
        blur(15px);

    backdrop-filter:
        blur(15px);

    box-shadow:
        0 15px 35px
        rgba(
            0,
            0,
            0,
            0.15
        );

    font-weight: 300;

    opacity: 0;

    transform:
        translateY(15px);
}


.countdown.animated-start {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity 1s ease 1s,
        transform 1s ease 1s;
}


.time-block {
    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 65px;
}


.time-block span {
    font-size: 2rem;

    font-weight: 300;

    line-height: 1.15;

    color: #fff;

    font-variant-numeric:
        tabular-nums;
}


.time-block label {
    margin-top: 4px;

    font-size: 0.65rem;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #d1cdca;
}


.time-separator {
    align-self: flex-start;

    margin-top: 5px;

    font-size: 1.4rem;

    color:
        rgba(
            255,
            255,
            255,
            0.3
        );
}


.countdown-finished {
    margin: 0;

    color: #fff;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* =========================================================
   SECTIONS
========================================================= */

.content-section {
    position: relative;

    padding: 120px 0;
}


.reveal-on-scroll {
    opacity: 0;

    transform:
        translateY(40px);

    transition:
        opacity 1s
        cubic-bezier(
            0.215,
            0.61,
            0.355,
            1
        ),
        transform 1s
        cubic-bezier(
            0.215,
            0.61,
            0.355,
            1
        );
}


.reveal-on-scroll.active {
    opacity: 1;

    transform:
        translateY(0);
}


.pre-title {
    margin-bottom: 16px;

    font-size: 0.75rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 5px;

    color:
        var(--c-accent);
}


.section-title {
    margin-bottom: 35px;

    font-family:
        var(--font-serif);

    font-size: 2.4rem;

    font-weight: 400;

    line-height: 1.25;

    color:
        var(--c-dark);
}


.main-paragraph {
    max-width: 560px;

    margin: 0 auto;

    font-size: 1.1rem;

    font-weight: 300;

    color:
        var(--c-gray);
}


/* =========================================================
   TIMELINE
========================================================= */

.modern-timeline {
    max-width: 540px;

    margin: 60px auto 0;
}


.timeline-row {
    display: flex;

    align-items: flex-start;

    margin-bottom: 45px;
}


.timeline-row:last-child {
    margin-bottom: 0;
}


.timeline-time {
    width: 90px;

    flex-shrink: 0;

    font-family:
        var(--font-serif);

    font-size: 1.5rem;

    color:
        var(--c-accent);
}


.timeline-info {
    flex: 1;

    padding-left: 30px;

    border-left:
        1px solid
        #e1dbd5;

    text-align: left;
}


.timeline-info h3 {
    margin-bottom: 8px;

    font-size: 1.15rem;

    font-weight: 500;

    color:
        var(--c-dark);
}


.timeline-info p {
    font-size: 0.95rem;

    font-weight: 300;

    color:
        var(--c-gray);
}


/* =========================================================
   PALETTE
========================================================= */

.modern-palette {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 50px;
}


.color-item {
    width: 60px;

    height: 60px;

    flex:
        0 0 60px;

    padding: 0;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    box-shadow:
        inset
        0 0 0 1px
        rgba(
            0,
            0,
            0,
            0.03
        );

    transition:
        transform 0.4s
        cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        ),
        box-shadow 0.3s ease;
}


.color-item:hover,
.color-item:focus-visible {
    transform:
        scale(1.15);

    box-shadow:
        0 10px 20px
        rgba(
            0,
            0,
            0,
            0.1
        );

    outline: none;
}


.palette-hint {
    min-height: 20px;

    margin-top: 25px;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 2px;

    color:
        var(--c-accent);

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   RSVP
========================================================= */

.rsvp-description {
    max-width: 500px;

    margin:
        -15px auto 0;

    padding:
        0 10px;

    text-align: center;

    color: #8c857e;

    font-size: 0.9rem;

    font-weight: 300;

    line-height: 1.8;
}


.modern-form {
    position: relative;

    width: 100%;

    max-width: 500px;

    margin:
        50px auto 0;
}


/* =========================================================
   INPUTS
========================================================= */

.input-wrapper {
    position: relative;

    margin-bottom: 40px;
}


.modern-form
input[type="text"],
.modern-form
input[type="number"],
.modern-form
textarea {
    display: block;

    width: 100%;

    padding:
        14px 0;

    background:
        transparent;

    border: none;

    border-bottom:
        1px solid
        var(--input-border);

    border-radius: 0;

    outline: none;

    font-size: 1.05rem;

    font-weight: 300;

    color: #fff;

    caret-color: #fff;

    transition:
        border-color 0.3s ease;
}


.modern-form
input[type="number"] {
    appearance: textfield;

    -moz-appearance:
        textfield;
}


.modern-form
input[type="number"]
::-webkit-inner-spin-button,
.modern-form
input[type="number"]
::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance:
        none;
}


.modern-form textarea {
    min-height: 100px;

    line-height: 1.6;

    resize: vertical;
}


.modern-form
input::placeholder,
.modern-form
textarea::placeholder {
    color: transparent;
}


/* =========================================================
   FLOATING LABEL
========================================================= */

.input-wrapper label {
    position: absolute;

    top: 14px;

    left: 0;

    max-width:
        calc(
            100% - 10px
        );

    color: #6b6661;

    font-size: 1rem;

    font-weight: 300;

    pointer-events: none;

    transition:
        top 0.35s ease,
        font-size 0.35s ease,
        color 0.35s ease,
        letter-spacing 0.35s ease;
}


.modern-form
input:focus ~ label,
.modern-form
input:not(:placeholder-shown)
~ label,
.modern-form
textarea:focus ~ label,
.modern-form
textarea:not(:placeholder-shown)
~ label,
.input-wrapper.focused
label {
    top: -18px;

    font-size: 0.75rem;

    color:
        var(--c-accent);

    letter-spacing: 1px;
}


/* =========================================================
   INPUT BAR
========================================================= */

.input-bar {
    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 1px;

    background-color: #fff;

    pointer-events: none;

    transition:
        width 0.4s ease;
}


.modern-form
input:focus ~ .input-bar,
.modern-form
textarea:focus ~ .input-bar,
.input-wrapper.focused
.input-bar {
    width: 100%;
}


/* =========================================================
   FORM GROUP TITLE
========================================================= */

.form-group-title {
    margin-bottom: 18px;

    color: #b7aca2;

    font-size: 0.8rem;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* =========================================================
   ATTENDANCE BUTTONS
========================================================= */

.segmented-control {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-bottom: 42px;

    padding: 0;

    background:
        transparent;

    border: none;

    border-radius: 0;
}


.segment-item {
    position: relative;

    display: block;

    min-width: 0;

    cursor: pointer;

    -webkit-tap-highlight-color:
        transparent;
}


.segment-item input {
    position: absolute;

    width: 1px;

    height: 1px;

    margin: 0;

    opacity: 0;

    pointer-events: none;
}


.segment-trigger {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 58px;

    padding:
        13px 34px
        13px 14px;

    overflow: hidden;

    border:
        1px solid
        #413b35;

    border-radius: 12px;

    background:
        #211e1a;

    color:
        #c4bbb2;

    font-size: 0.84rem;

    font-weight: 400;

    line-height: 1.35;

    text-align: center;

    box-shadow:
        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            0.025
        );

    transition:
        color 0.28s ease,
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.2s ease;
}


.segment-trigger::before {
    content: "";

    position: absolute;

    top: 50%;

    right: 12px;

    width: 16px;

    height: 16px;

    border:
        1px solid
        #655e57;

    border-radius: 50%;

    transform:
        translateY(-50%);

    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}


.segment-trigger::after {
    content: "";

    position: absolute;

    top: 50%;

    right: 17px;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        transparent;

    transform:
        translateY(-50%)
        scale(0);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}


.segment-item:hover
.segment-trigger {
    border-color:
        #766d64;

    background:
        #28241f;

    color: #fff;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 22px
        rgba(
            0,
            0,
            0,
            0.16
        );
}


.segment-item:active
.segment-trigger {
    transform:
        translateY(0)
        scale(0.985);
}


.segment-item
input:focus-visible
+
.segment-trigger {
    outline:
        2px solid
        rgba(
            255,
            255,
            255,
            0.65
        );

    outline-offset: 3px;
}


.segment-item
input:checked
+
.segment-trigger {
    background:
        #f4f1ec;

    border-color:
        #f4f1ec;

    color:
        #1e1b18;

    font-weight: 500;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.22
        );

    transform:
        translateY(-1px);
}


.segment-item
input:checked
+
.segment-trigger::before {
    background:
        #1e1b18;

    border-color:
        #1e1b18;

    box-shadow:
        0 0 0 3px
        rgba(
            30,
            27,
            24,
            0.08
        );
}


.segment-item
input:checked
+
.segment-trigger::after {
    background:
        #fff;

    transform:
        translateY(-50%)
        scale(1);
}


/* =========================================================
   DRINKS
========================================================= */

.drink-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px;

    margin-bottom: 45px;
}


.drink-option {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 52px;

    padding:
        12px 14px;

    border:
        1px solid
        #302c28;

    border-radius: 8px;

    cursor: pointer;

    color: #8c857e;

    font-size: 0.82rem;

    transition:
        background-color
        0.35s ease,
        border-color
        0.35s ease,
        color
        0.35s ease,
        transform
        0.35s ease;
}


.drink-option:hover {
    border-color: #625a52;

    color: #fff;

    transform:
        translateY(-2px);
}


.drink-option input {
    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;
}


.drink-option span {
    position: relative;

    display: block;

    padding-left: 27px;
}


.drink-option span::before {
    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 15px;

    height: 15px;

    border:
        1px solid
        #625a52;

    border-radius: 3px;

    transform:
        translateY(-50%);

    transition:
        background-color
        0.3s ease,
        border-color
        0.3s ease;
}


.drink-option
input:checked
+
span::before {
    background-color: #fff;

    border-color: #fff;
}


.drink-option
input:checked
+
span::after {
    content: "✓";

    position: absolute;

    left: 2px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #171513;

    font-size: 11px;

    font-weight: 700;
}


.drink-option:has(
    input:checked
) {
    background-color: #211e1a;

    border-color: #665d55;

    color: #fff;
}


/* =========================================================
   TEXTAREA
========================================================= */

.textarea-wrapper {
    margin-top: 45px;
}


/* =========================================================
   HONEYPOT
========================================================= */

.honeypot {
    position:
        absolute !important;

    left:
        -9999px !important;

    width:
        1px !important;

    height:
        1px !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.modern-btn {
    width: 100%;

    margin-top: 15px;

    padding: 18px;

    background-color: #fff;

    border: none;

    border-radius: 8px;

    color:
        var(--c-dark);

    font-size: 0.85rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;

    cursor: pointer;

    transition:
        background-color
        0.35s ease,
        letter-spacing
        0.35s ease,
        opacity
        0.35s ease,
        transform
        0.2s ease;
}


.modern-btn:hover:not(
    :disabled
) {
    background-color:
        #e8e4de;

    letter-spacing: 3px;
}


.modern-btn:active:not(
    :disabled
) {
    transform:
        scale(0.99);
}


.modern-btn.loading {
    opacity: 0.55;

    cursor: wait;

    pointer-events: none;
}


.modern-btn.loading
.btn-text::after {
    content: "...";
}


/* =========================================================
   FORM MESSAGES
========================================================= */

.form-success,
.form-error {
    display: none;

    margin-top: 25px;

    text-align: center;

    font-size: 0.9rem;

    line-height: 1.8;
}


.form-success {
    color:
        var(--success-color);

    animation:
        successAppear
        0.7s ease forwards;
}


.form-error {
    color:
        var(--error-color);
}


/* =========================================================
   FOOTER / AACREATE
========================================================= */

.site-footer {
    position: relative;

    padding:
        55px
        24px
        max(
            45px,
            env(
                safe-area-inset-bottom
            )
        );

    background:
        var(--c-dark-section);

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );

    text-align: center;
}


.footer-inner {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 16px;
}


.footer-made-by {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.4
        );

    font-size: 0.65rem;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 3px;
}


.footer-logo-link {
    position: relative;

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        14px 18px;

    border-radius: 14px;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform
        0.35s ease,
        background-color
        0.35s ease,
        box-shadow
        0.35s ease;
}


.footer-logo {
    display: block;

    width:
        var(--footer-logo-width);

    max-width: 55vw;

    height: auto;

    opacity: 0.72;

    transition:
        opacity
        0.35s ease,
        transform
        0.35s ease,
        filter
        0.35s ease;
}


.footer-link-hint {
    position: relative;

    color:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-size: 0.62rem;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 2px;

    transition:
        color
        0.35s ease,
        letter-spacing
        0.35s ease;
}


.footer-link-hint::after {
    content: " ↗";

    display: inline-block;

    margin-left: 3px;

    transition:
        transform
        0.3s ease;
}


.footer-logo-link:hover,
.footer-logo-link:focus-visible {
    transform:
        translateY(-4px);

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    box-shadow:
        0 15px 40px
        rgba(
            0,
            0,
            0,
            0.16
        );

    outline: none;
}


.footer-logo-link:hover
.footer-logo,
.footer-logo-link:focus-visible
.footer-logo {
    opacity: 1;

    transform:
        scale(1.035);

    filter:
        drop-shadow(
            0 8px 22px
            rgba(
                255,
                255,
                255,
                0.08
            )
        );
}


.footer-logo-link:hover
.footer-link-hint,
.footer-logo-link:focus-visible
.footer-link-hint {
    color:
        rgba(
            255,
            255,
            255,
            0.8
        );

    letter-spacing: 2.4px;
}


.footer-logo-link:hover
.footer-link-hint::after,
.footer-logo-link:focus-visible
.footer-link-hint::after {
    transform:
        translate(
            3px,
            -2px
        );
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes kenBurns {

    0% {
        transform:
            scale(1);
    }

    100% {
        transform:
            scale(1.12);
    }

}


@keyframes fogMove {

    0% {
        transform:
            translateX(0);
    }

    100% {
        transform:
            translateX(-50%);
    }

}


@keyframes fadeInIntro {

    from {
        opacity: 0;

        transform:
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            scale(1);
    }

}


@keyframes successAppear {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   ANIMATIONS DISABLED
========================================================= */

.disable-animations
*,
.disable-animations
*::before,
.disable-animations
*::after {
    animation: none !important;

    transition:
        none !important;
}


.disable-animations
.hero-tagline,
.disable-animations
.hero-title,
.disable-animations
.countdown,
.disable-animations
.reveal-on-scroll {
    opacity: 1 !important;

    transform:
        none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 600px
) {

    .container {
        padding-left: 20px;

        padding-right: 20px;
    }


    .intro-content {
        padding:
            max(
                30px,
                env(
                    safe-area-inset-top
                )
            )
            22px
            max(
                30px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    .intro-tag {
        margin-bottom: 20px;

        font-size: 0.7rem;

        letter-spacing: 4px;
    }


    .intro-initials {
        font-size: 3.2rem;
    }


    .intro-date {
        margin-bottom: 36px;

        font-size: 1rem;
    }


    .open-btn {
        min-width: 220px;

        padding:
            17px 25px;

        font-size: 0.78rem;

        letter-spacing: 2.4px;
    }


    .hero-section {
        min-height: 620px;

        padding:
            max(
                70px,
                env(
                    safe-area-inset-top
                )
            )
            18px
            max(
                36px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    .hero-tagline {
        margin-bottom: 18px;

        font-size: 0.7rem;

        letter-spacing: 4px;
    }


    .hero-title {
        font-size:
            clamp(
                2.35rem,
                11vw,
                3.1rem
            );
    }


    .countdown {
        max-width:
            calc(
                100vw - 32px
            );

        gap: 7px;

        margin-top: 34px;

        padding:
            14px 18px;

        border-radius: 35px;
    }


    .time-block {
        min-width: 43px;
    }


    .time-block span {
        font-size: 1.35rem;
    }


    .time-block label {
        font-size: 0.52rem;

        letter-spacing: 0.7px;
    }


    .time-separator {
        margin-top: 2px;

        font-size: 1.1rem;
    }


    .content-section {
        padding:
            80px 0;
    }


    .pre-title {
        font-size: 0.68rem;

        letter-spacing: 4px;
    }


    .section-title {
        margin-bottom: 28px;

        font-size: 1.9rem;
    }


    .main-paragraph {
        font-size: 1rem;

        line-height: 1.8;
    }


    .modern-timeline {
        margin-top: 45px;
    }


    .timeline-row {
        margin-bottom: 38px;
    }


    .timeline-time {
        width: 72px;

        font-size: 1.2rem;
    }


    .timeline-info {
        padding-left: 20px;
    }


    .timeline-info h3 {
        font-size: 1.05rem;
    }


    .timeline-info p {
        font-size: 0.88rem;
    }


    .modern-palette {
        gap: 15px;

        margin-top: 40px;
    }


    .color-item {
        width: 52px;

        height: 52px;

        flex-basis: 52px;
    }


    .rsvp-description {
        font-size: 0.82rem;
    }


    .modern-form {
        margin-top: 40px;
    }


    /* =============================================
       ATTENDANCE MOBILE

       Каждый вариант — отдельная большая кнопка.
    ============================================= */

    .segmented-control {
        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;

        padding: 0;

        background:
            transparent;

        border: none;
    }


    .segment-trigger {
        min-height: 58px;

        justify-content:
            flex-start;

        padding:
            15px
            48px
            15px
            18px;

        text-align: left;

        font-size: 0.92rem;

        border-radius: 12px;
    }


    .segment-trigger::before {
        right: 18px;

        width: 18px;

        height: 18px;
    }


    .segment-trigger::after {
        right: 24px;

        width: 6px;

        height: 6px;
    }


    .segment-item:hover
    .segment-trigger {
        transform: none;
    }


    .segment-item
    input:checked
    +
    .segment-trigger {
        transform: none;
    }


    .drink-list {
        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .drink-option {
        min-height: 50px;
    }


    .modern-btn {
        padding:
            17px 14px;
    }


    .site-footer {
        padding:
            45px
            20px
            max(
                38px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    .footer-logo {
        width:
            min(
                var(
                    --footer-logo-width
                ),
                155px
            );

        max-width: 62vw;
    }


    .footer-logo-link {
        padding:
            12px 16px;
    }


    .footer-made-by {
        font-size: 0.58rem;

        letter-spacing: 2.5px;
    }


    .footer-link-hint {
        font-size: 0.56rem;

        letter-spacing: 1.7px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (
    max-width: 380px
) {

    .hero-section {
        padding-left: 12px;

        padding-right: 12px;
    }


    .countdown {
        gap: 4px;

        padding: 12px;
    }


    .time-block {
        min-width: 39px;
    }


    .time-block span {
        font-size: 1.2rem;
    }


    .time-block label {
        font-size: 0.47rem;
    }


    .time-separator {
        font-size: 0.95rem;
    }


    .timeline-time {
        width: 64px;
    }


    .timeline-info {
        padding-left: 16px;
    }


    .segment-trigger {
        min-height: 56px;

        padding-left: 16px;

        font-size: 0.86rem;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }


    .hero-tagline,
    .hero-title,
    .countdown,
    .reveal-on-scroll {
        opacity: 1;

        transform: none;
    }

}