/* Shared styles for index.html and gift.html */

:root {
    --mint: #e6f2ea;
    --mint-deep: #cfe6d8;
    --gold: #b8975a;
    --gold-2: #f3dbb9;
    --gold-light: #d9c192;
    --ink: #0a2706;
    --ink-soft: #5d6f65;
}

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

:where(:not(dialog)) {
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
    :where(html) {
        scroll-behavior: smooth;
    }
}

:where(html) {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

:where(html, body) {
    min-block-size: 100%;
}

:where(img, svg, video, canvas, picture, audio, iframe, embed, object) {
    display: block;
    max-width: 100%;
}

/* Base */
body {
    background: var(--mint);
    color: var(--ink);
    font-family: "Lora", serif;
    font-weight: 300;
    line-height: 1.7;
}

main {
    text-align: center;
}

h1,
h2,
h3 {
    font-family: "Sacramento", cursive;
    font-weight: 400;
}

p+p {
    margin-top: 1rem;
}

.divider {
    width: 3rem;
    height: 1px;
    background: var(--gold);
    margin: 0.5rem auto;
    border: 0;
}

.small {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-top: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .95rem 2.25rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: background .25s, transform .25s;
}

.btn:hover,
.btn:focus-visible {
    background: #9f8048;
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--gold);
    color: var(--ink);
}

 footer 
 {
    font-family: "Sacramento", cursive;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink-soft);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 .memories {
     display: grid;
     grid-template-columns:repeat(auto-fill, minmax(calc(100%/4),1fr));
     gap:10px;
 } 

 @media screen and (min-width: 45rem) {
    .memories {
        grid-template-columns:repeat(auto-fill, minmax(calc(100%/6),1fr));
    }
 }

 p {
    max-width: 70ch;
    margin: 10px auto;
 }

 .memories > * {
    border-radius: 50%;
    border: 2px solid var(--gold);
    height: 100%;
    object-fit: cover;
 }

  

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}
