/* ============ Design Tokens ============ */
:root {
    --background: #f9f9f9;
    --surface: #f9f9f9;
    --surface-lowest: #ffffff;
    --on-background: #1a1c1c;
    --on-surface: #1a1c1c;
    --primary: #675974;
    --primary-container: #e8d5f5;
    --primary-fixed: #efdcfc;
    --primary-fixed-dim: #d2c0df;
    --secondary: #75565f;
    --secondary-container: #fed5df;
    --secondary-fixed: #ffd9e2;
    --on-secondary-container: #795a63;
    --tertiary: #416559;
    --tertiary-container: #bce4d4;
    --outline: #7b757d;
    --note-yellow: #fef9c3;

    --font-display: "Syne", sans-serif;
    --font-body: "Hanken Grotesk", sans-serif;
    --font-hand: "Caveat", cursive;

    --container: 1200px;
    --pad: clamp(20px, 5vw, 24px);

    --shadow-pastel: 0 20px 40px rgba(103, 89, 116, 0.15);
    --glow-lavender: 0 0 30px rgba(232, 213, 245, 0.8);
}

/* ============ Reset ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100dvh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ============ App Bar ============ */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(103, 89, 116, 0.1);
}

.app-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    opacity: 0.7;
}

.menu-btn {
    display: flex;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 300px;
    height: 100vh;
    background: var(--surface-lowest);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--primary-container);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-decoration: none;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--on-surface);
    align-self: flex-end;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
}

.nav-overlay.show {
    display: block;
}

/* Desktop nav visible on large screens */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .menu-btn {
        display: none !important;
    }
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s;
}

.icon-btn:hover {
    opacity: 0.8;
}

.icon-btn:active {
    transform: scale(0.95);
}

main {
    padding-top: 6rem;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem var(--pad) 4rem;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 12vw, 6.25rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(to right, #ffb7c5, #d2c0df);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-photo-wrap {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.hero-photo {
    width: clamp(16rem, 60vw, 20rem);
    aspect-ratio: 4 / 5;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 8px solid #fff;
    background: #fff;
    box-shadow: var(--glow-lavender);
    transform: rotate(3deg);
    transition: transform 0.5s ease;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-wrap:hover .hero-photo {
    transform: rotate(0deg);
}

.doodle {
    position: absolute;
    pointer-events: none;
}

.doodle-heart {
    top: -2rem;
    right: -2rem;
    font-size: 3.75rem;
    color: var(--primary-fixed-dim);
    font-variation-settings: "FILL" 1;
    animation: pulse 2s ease-in-out infinite;
}

.doodle-spark {
    bottom: -1rem;
    left: -2rem;
    font-size: 3rem;
    color: var(--secondary-fixed);
    transform: rotate(12deg);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.blob-1 {
    top: 5rem;
    left: 2.5rem;
    width: 16rem;
    height: 16rem;
    background: var(--primary-container);
    opacity: 0.4;
}

.blob-2 {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: var(--secondary-container);
    opacity: 0.3;
}

/* ============ Counter ============ */
.counter-section {
    background: var(--surface-lowest);
    padding: 5rem 0;
}

.counter-grid {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.count-card {
    background: #fff;
    padding: 1.5rem 0.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-pastel);
    text-align: center;
}

.count-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    color: var(--on-surface);
}

.count-num.accent {
    color: var(--primary);
}

.count-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--outline);
    margin-top: 0.5rem;
}

/* ============ Quote ============ */
.quote-section {
    padding: 8rem var(--pad);
    text-align: center;
}

.quote {
    max-width: 48rem;
    margin: 0 auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.squiggly {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q12.5 0 25 10 T50 10 T75 10 T100 10' fill='none' stroke='%23efdcfc' stroke-width='4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    padding-bottom: 12px;
}

.quote-by {
    margin-top: 2rem;
    font-size: 0.875rem;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--outline);
}

/* ============ Gallery ============ */
.gallery-section {
    background: var(--surface);
    padding: 5rem 0;
}

.gallery-head {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 var(--pad);
}

.gallery-head h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.head-rule {
    width: 4rem;
    height: 4px;
    background: var(--primary-fixed);
    margin: 0 auto;
    border-radius: 9999px;
}

.masonry {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-pastel);
    transition: transform 0.3s ease;
}

.card img {
    border-radius: 1rem;
}

.card:hover {
    transform: scale(1.02);
}

.border-primary {
    border: 2px solid var(--primary-container);
}

.border-secondary {
    border: 2px solid var(--secondary-container);
}

.border-tertiary {
    border: 2px solid var(--tertiary-container);
}

/* ============ Message ============ */
.message-section {
    position: relative;
    padding: 6rem var(--pad);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sticky-note {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 32rem;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--note-yellow);
    box-shadow: var(--shadow-pastel);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.sticky-note:hover {
    transform: rotate(1deg) scale(1.02);
}

.note-text {
    font-family: var(--font-hand);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    line-height: 1.4;
    color: var(--on-secondary-container);
}

.note-doodle {
    position: absolute;
    color: var(--primary);
    opacity: 0.2;
    font-size: 2.25rem;
}

.note-doodle-tr {
    top: 1rem;
    right: 1rem;
}

.note-doodle-bl {
    bottom: 1rem;
    left: 1rem;
}

.note-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(12deg);
}

.note-badge .material-symbols-outlined {
    color: var(--secondary);
    font-variation-settings: "FILL" 1;
}

.confetti {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.confetti span {
    position: absolute;
}

.confetti .c1 {
    top: 2.5rem;
    left: 25%;
    color: var(--primary);
    font-size: 3.75rem;
}

.confetti .c2 {
    bottom: 5rem;
    right: 25%;
    color: var(--secondary);
    font-size: 2.25rem;
}

.confetti .c3 {
    top: 50%;
    right: 2.5rem;
    color: var(--tertiary);
    font-size: 3rem;
}

/* ============ Footer ============ */
.site-footer {
    background: #f3f3f4;
    border-radius: 2rem 2rem 0 0;
    margin-top: 5rem;
    padding: 3rem 0;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    color: var(--outline);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--outline);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.round-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pastel);
    transition: opacity 0.2s, transform 0.1s;
}

.round-btn:hover {
    opacity: 0.7;
}

.round-btn:active {
    transform: scale(0.95);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .masonry {
        column-count: 1;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
}