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

html {
    scroll-behavior: smooth;
    cursor: crosshair;
}
@font-face {
    font-family: "My Comic Sans";
    src: url("../fonts/ComicSans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: #000080;
    background-color: #00ffff;
    font-family: "My Comic Sans";
    font-size: 16px;
}


img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: #0000ee;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "My Comic Sans", cursive;
    text-shadow: 2px 2px #ffff00;
    overflow-wrap: anywhere;
}

h1 {
    margin-bottom: 16px;
    color: #ff00ff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    text-align: center;
}

h1 span {
    color: #ff0000;
}

h2 {
    color: #ff0000;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
    text-align: center;
}

h2 em {
    color: #0000ff;
}

p {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hero {
    width: 100%;
    padding: 15px;
}

.hero-window,
.section {
    width: min(100%, 900px);
    margin-right: auto;
    margin-left: auto;
}

.hero-window {
    border: 8px ridge #c0c0c0;
    background: #ffff99;
}

.window-bar {
    padding: 6px 8px;
    overflow: hidden;
    color: #ffffff;
    background: #000080;
    font-family: "Courier New", monospace;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-content {
    padding: clamp(18px, 4vw, 32px);
    text-align: center;
}

.eyebrow,
.section-label,
.mini-label {
    color: #ff0000;
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.eyebrow {
    animation: blink 0.7s steps(2, start) infinite;
}

.couple-photo {
    width: min(100%, 430px);
    margin: 18px auto;
    padding: 5px;
    border: 8px ridge #c0c0c0;
    background: #ffffff;
}

.couple-photo img {
    width: 100%;
}

.date {
    color: #000080;
    font-family: "Times New Roman", serif;
    font-size: clamp(21px, 3vw, 25px);
    font-weight: bold;
}

.large-text {
    font-family: "Times New Roman", serif;
    font-size: clamp(18px, 2.5vw, 22px);
    text-align: center;
}

.blink {
    color: #ff0000;
    font-family: "Courier New", monospace;
    font-weight: bold;
    animation: blink 0.8s steps(2, start) infinite;
}

.section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: clamp(18px, 3vw, 30px);
    border: 8px ridge #c0c0c0;
    background: #ffffff;
}

.intro {
    text-align: center;
}

.decorative-line {
    color: #ff0000;
    font-size: 25px;
    letter-spacing: 5px;
    overflow-wrap: anywhere;
}

.sticker {
    display: inline-block;
    max-width: 100%;
    margin: 5px;
    padding: 8px;
    border: 3px dotted #ff0000;
    color: #ff0000;
    background: #ffff00;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.sticker-side {
    color: #0000ff;
    background: #00ff00;
}

.countdown-section {
    text-align: center;
    background: #ffff00;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.time-box {
    min-width: 0;
    padding: 12px 8px;
    border: 5px outset #ffffff;
    background: #ff00ff;
    text-align: center;
}

.time-box strong {
    display: block;
    color: #ffff00;
    font-family: "Courier New", monospace;
    font-size: clamp(22px, 4vw, 32px);
}

.time-box span {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.timeline {
    margin-top: 20px;
    border-left: 5px dotted #ff0000;
}

.timeline-item {
    padding: 10px 10px 10px 20px;
    border-bottom: 2px dashed #0000ff;
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-item time {
    color: #ff0000;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.timeline-item h3 {
    margin: 3px 0;
    color: #0000ff;
}

.venue-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    border: 6px ridge #c0c0c0;
    background: #00ff00;
}

.map {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #00ffff;
}

.map-road {
    position: absolute;
    top: 48%;
    left: -20%;
    width: 140%;
    height: 34px;
    background: #ff00ff;
    transform: rotate(-12deg);
}

.map-pin {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    border: 4px solid #ff0000;
    border-radius: 50%;
    color: #ff0000;
    background: #ffff00;
    place-items: center;
    font-size: 24px;
    transform: translate(-50%, -50%);
}

.map-label {
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 3;
    max-width: calc(100% - 30px);
    padding: 6px 10px;
    border: 2px solid #000000;
    color: #000000;
    background: #ffffff;
    font-family: "Courier New", monospace;
    font-size: 12px;
    text-align: center;
    transform: translateX(-50%);
}

.venue-info {
    padding: 24px;
    text-align: center;
}

.button {
    display: inline-block;
    max-width: 100%;
    border: 4px outset #ffffff;
    padding: 8px 14px;
    color: #000000 !important;
    background: #c0c0c0;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.button:active {
    border-style: inset;
}

.gallery {
    background: #ffccff;
}

.photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.polaroid {
    min-width: 0;
    padding: 8px 8px 15px;
    border: 3px solid #000000;
    background: #ffffff;
    box-shadow: 4px 4px 0 #000000;
}

.polaroid:nth-child(2) {
    transform: rotate(3deg);
}

.polaroid:nth-child(4) {
    transform: rotate(-2deg);
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.polaroid p {
    margin: 8px 0 0;
    color: #ff0000;
    font-family: "My Comic Sans", cursive;
    text-align: center;
}
/* Дешёвый декор в стиле сайтов конца 90-х */

body {
    position: relative;
}

.retro-decor {
    position: fixed;
    z-index: 20;
    width: 125px;
    padding: 5px;
    border: 5px ridge #ffff00;
    background: #ff00ff;
    box-shadow:
        0 0 0 4px #0000ff,
        0 0 18px #ffff00;
    text-align: center;
    pointer-events: none;
    animation: ugly-float 2s ease-in-out infinite alternate;
}

.retro-decor img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border: 3px solid #00ff00;
}

.retro-decor-left {
    top: 125px;
    left: 8px;
    transform: rotate(-7deg);
}

.retro-decor-right {
    top: 330px;
    right: 8px;
    transform: rotate(8deg);
    animation-delay: 0.7s;
}

.cheap-badge {
    margin-top: 4px;
    color: #ffff00;
    background: #000080;
    font-family: "My Comic Sans", cursive;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px #ff0000;
}

.sparkle-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.sparkle-layer span {
    position: absolute;
    color: #ffff00;
    font-family: Arial, sans-serif;
    font-size: 32px;
    text-shadow:
        0 0 4px #ffffff,
        0 0 10px #ffff00,
        2px 2px #ff00ff;
    animation: sparkle-blink 0.8s steps(2, start) infinite;
}

.sparkle-layer span:nth-child(1) {
    top: 12%;
    left: 8%;
}

.sparkle-layer span:nth-child(2) {
    top: 28%;
    left: 25%;
    animation-delay: 0.2s;
}

.sparkle-layer span:nth-child(3) {
    top: 18%;
    right: 18%;
    animation-delay: 0.5s;
}

.sparkle-layer span:nth-child(4) {
    top: 48%;
    left: 5%;
    animation-delay: 0.3s;
}

.sparkle-layer span:nth-child(5) {
    top: 62%;
    right: 7%;
    animation-delay: 0.8s;
}

.sparkle-layer span:nth-child(6) {
    top: 78%;
    left: 18%;
    animation-delay: 0.1s;
}

.sparkle-layer span:nth-child(7) {
    top: 88%;
    right: 25%;
    animation-delay: 0.6s;
}

.sparkle-layer span:nth-child(8) {
    top: 36%;
    right: 38%;
    animation-delay: 0.4s;
}

.sparkle-layer span:nth-child(9) {
    top: 70%;
    left: 45%;
    animation-delay: 0.9s;
}

.sparkle-layer span:nth-child(10) {
    top: 8%;
    right: 5%;
    animation-delay: 0.25s;
}

.retro-marquee {
    width: min(100%, 900px);
    margin: 20px auto;
    overflow: hidden;
    border: 6px ridge #c0c0c0;
    color: #ffff00;
    background: #ff0000;
    font-family: "My Comic Sans", cursive;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.retro-marquee div {
    display: inline-block;
    padding: 10px 0;
    animation: marquee 12s linear infinite;
}

.under-construction {
    width: min(100% - 30px, 700px);
    margin: 15px auto;
    padding: 12px;
    border: 6px dashed #ff0000;
    color: #000000;
    background: #ffff00;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transform: rotate(-1deg);
}

.under-construction span {
    display: block;
    margin-top: 5px;
    color: #ff00ff;
    font-family: "My Comic Sans", cursive;
    font-size: 24px;
    text-shadow: 2px 2px #0000ff;
    animation: blink 0.6s steps(2, start) infinite;
}

@keyframes sparkle-blink {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.6) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.5) rotate(25deg);
    }
}

@keyframes ugly-float {
    from {
        margin-top: 0;
    }

    to {
        margin-top: 18px;
    }
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }

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

@media (max-width: 700px) {
    .retro-decor {
        position: absolute;
        width: 90px;
    }

    .retro-decor-left {
        top: 500px;
        left: 4px;
    }

    .retro-decor-right {
        top: 780px;
        right: 4px;
    }

    .cheap-badge {
        font-size: 13px;
    }

    .sparkle-layer span {
        font-size: 22px;
    }

    .retro-marquee {
        font-size: 15px;
    }
}


footer {
    margin-top: 20px;
    padding: 25px 15px;
    border-top: 8px ridge #c0c0c0;
    color: #ffff00;
    background: #000080;
    font-family: "Courier New", monospace;
    font-size: 13px;
    text-align: center;
}

.footer-date {
    color: #00ff00;
}

@keyframes blink {
    50% {
        visibility: hidden;
    }
}

@media (max-width: 700px) {
    .photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .hero {
        padding: 8px;
    }

    .section {
        padding: 15px 10px;
        border-width: 6px;
    }

    .hero-window {
        border-width: 6px;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photos {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-right: auto;
        margin-left: auto;
    }

    .polaroid:nth-child(2),
    .polaroid:nth-child(4) {
        transform: none;
    }

    .venue-info {
        padding: 18px 12px;
    }
}

@media (max-width: 380px) {
    .countdown {
        grid-template-columns: 1fr;
    }

    .window-bar {
        font-size: 11px;
    }

    .eyebrow {
        font-size: 11px;
    }
}
