:root {
    --accent: #3a6bac;
    --ink: #333;
    --paper: #fff;
    --font-heading: 'Courgette', cursive;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img {
    display: block;
}

/* --- Reveal on scroll --- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Hero --- */

.hero {
    position: relative;
    height: 100svh;
    overflow: hidden;
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slides img.is-active {
    opacity: 1;
}

.hero-tint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(58, 107, 172, 0.2) 0%, rgba(58, 107, 172, 0.2) 1%, rgba(82, 178, 189, 0.2) 100%);
}

.welcome {
    padding: 1rem;
    text-align: center;
    color: #fff;
}

.welcome h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(42px, 10vw, 99px);
    font-weight: 400;
    line-height: 1.1;
}

.welcome p {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

/* --- Decorative hearts divider --- */

.hearts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hearts span {
    height: 1px;
    background: currentColor;
}

.hearts svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.welcome .hearts span {
    width: min(150px, 30vw);
    margin: 6px 10px;
}

.welcome .hearts svg {
    fill: #fff;
}

.heading .hearts span {
    width: 40px;
    margin: 6px 10px 4px;
    background: var(--accent);
}

/* --- Gallery --- */

.gallery {
    padding: 4rem 0.5rem 2rem;
}

.heading {
    padding-bottom: 60px;
    text-align: center;
}

.heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
}

/* Justified rows: each link grows proportionally to its aspect ratio
   (flex-grow/flex-basis set inline from the image dimensions). */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gallery-grid::after {
    content: '';
    flex-grow: 1000000;
}

.gallery-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* --- Footer --- */

#footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

#footer p {
    margin: 0;
}
