@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
    --paper: #f7f6f1;
    --white: #fffefa;
    --ink: #292c25;
    --muted: #77786e;
    --accent: #bd6845;
    --line: #dfded4;
    --green: #59664c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.65 'DM Sans',Arial,sans-serif;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.header {
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f7f6f1ed;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.03em;
}

.brand-icon {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font: italic 18px Georgia,serif;
}

.header nav {
    display: flex;
    gap: 27px;
}

.header nav a,.header-cta {
    font-size: 12px;
}

.header nav a {
    color: #64665c;
    transition: color .2s;
}

.header nav a:hover {
    color: var(--accent);
}

.header-cta {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 5px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 23px;
}

.hero {
    padding: 85px 8.5% 0;
    display: grid;
    grid-template-columns: 1fr .9fr;
    column-gap: 7%;
    align-items: center;
}

.hero-content {
    padding-bottom: 50px;
}

.eyebrow {
    font: 10px 'DM Mono',monospace;
    letter-spacing: .13em;
    color: var(--muted);
    margin: 0 0 20px;
}

.orange-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
}

h1,h2 {
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.065em;
    margin: 0;
}

h1 {
    font-size: clamp(50px,6.5vw,83px);
}

h2 {
    font-size: clamp(42px,5vw,62px);
}

h1 em,h2 em {
    font-family: 'Playfair Display',Georgia,serif;
    color: var(--accent);
    font-weight: 500;
}

.hero-content>p:not(.eyebrow):not(.hero-bottom-note) {
    max-width: 420px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin: 25px 0;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.button {
    background: var(--ink);
    color: white;
    padding: 12px 19px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    transition: transform .2s;
}

.button:hover {
    transform: translateY(-3px);
}

.underline-link {
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #aaa;
    padding-bottom: 5px;
}

.hero-bottom-note {
    margin-top: 55px;
    color: var(--muted);
    font: 10px 'DM Mono',monospace;
    letter-spacing: .08em;
}

.hero-art {
    height: 390px;
    background: #e9e4d6;
    position: relative;
    overflow: hidden;
}

.sun {
    position: absolute;
    right: 4%;
    top: 3%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #d7a17a;
    animation: float 7s ease-in-out infinite;
}

.plate,.plate-inner {
    position: absolute;
    border-radius: 50%;
    aspect-ratio: 1;
}

.plate {
    width: 76%;
    top: 18%;
    left: 7%;
    background: #f5f1e6;
    box-shadow: 0 14px 35px #0002;
    border: 1px solid #d1c8b6;
}

.plate-inner {
    width: 62%;
    top: 25%;
    left: 14%;
    background: #f9f6ed;
    box-shadow: inset 0 0 0 11px #f2eee3,inset 0 0 0 12px #d9d1c0;
}

.leaf {
    position: absolute;
    width: 95px;
    height: 40px;
    border-radius: 100% 0 100% 0;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

.leaf-one {
    left: 6%;
    top: 22%;
    background: #65734e;
    transform: rotate(27deg);
}

.leaf-two {
    right: 6%;
    bottom: 18%;
    background: #a85135;
    transform: rotate(44deg);
    animation-delay: -2s;
}

.art-words {
    position: absolute;
    z-index: 3;
    top: 44%;
    left: 24%;
    width: 42%;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #424738;
}

.art-words i {
    font: italic 36px Georgia,serif;
}

.art-words span,.hero-art small {
    font: 9px 'DM Mono',monospace;
    letter-spacing: .1em;
}

.hero-art small {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: #716b5e;
}

.hero-strip {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 17px 0 20px;
    color: #8a8a7f;
    font: 9px 'DM Mono',monospace;
    letter-spacing: .08em;
}

.section {
    padding: 100px 8.5%;
}

.details,.schedule-section {
    background: var(--white);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 43px;
}

.section-head>p {
    max-width: 330px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail {
    min-height: 185px;
    position: relative;
    padding: 23px 22px 23px 0;
    border-right: 1px solid var(--line);
}

.detail+.detail {
    padding-left: 25px;
}

.detail:last-child {
    border-right: 0;
}

.detail>span {
    font: 10px 'DM Mono',monospace;
    color: var(--muted);
}

.detail b {
    position: absolute;
    top: 16px;
    right: 22px;
    color: var(--accent);
    font-size: 19px;
    font-weight: 400;
}

.detail h3 {
    font-size: 17px;
    line-height: 1.3;
    margin: 38px 0 6px;
}

.detail p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.food-section {
    background: #eeece3;
}

.filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 11px;
}

.filter.active {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}

.food-list {
    border-top: 1px solid #d6d4c8;
}

.food-row {
    display: grid;
    grid-template-columns: 38px minmax(160px,1fr) 100px minmax(100px,.5fr);
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #d6d4c8;
    padding: 19px 8px;
    transition: background .2s,transform .2s;
}

.food-row:hover {
    background: #fff7;
    transform: translateX(3px);
}

.food-row[hidden] {
    display: none;
}

.row-num,.schedule-row>span:first-child {
    font: 10px 'DM Mono',monospace;
    color: #989a8d;
}

.food-row h3,.schedule-row h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

.food-row p,.schedule-row p {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 0 0;
}

.pill {
    justify-self: start;
    border-radius: 30px;
    background: #dfe4d7;
    color: var(--green);
    padding: 4px 9px;
    font: 9px 'DM Mono',monospace;
}

.person {
    font-size: 12px;
    color: #62665c;
}

.schedule-list {
    border-top: 1px solid var(--line);
}

.schedule-row {
    display: grid;
    grid-template-columns: 38px 110px 1fr;
    gap: 18px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}

.schedule-row time {
    font: 10px 'DM Mono',monospace;
    color: var(--accent);
    padding-top: 3px;
}

.schedule-row p {
    font-size: 12px;
}

.memories-section {
    padding: 95px 8.5%;
    background: #e9e5d9;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8%;
    align-items: center;
}

.memories-copy>p:not(.eyebrow) {
    font-size: 13px;
    color: var(--muted);
    max-width: 340px;
    line-height: 1.9;
    margin: 24px 0;
}

.memories-copy code {
    font-size: 12px;
}

.counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 11px 'DM Mono',monospace;
    color: var(--muted);
}

#slideNumber {
    color: var(--accent);
}

.counter-rule {
    height: 1px;
    width: 38px;
    background: #c2b7a5;
}

.slideshow {
    height: 365px;
    position: relative;
    background: #d8c8b1;
    overflow: hidden;
    box-shadow: 0 16px 35px #0001;
}

.slides,.slide {
    position: absolute;
    inset: 0;
}

.slide {
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .9s ease,transform 1.2s ease;
    pointer-events: none;
    background: linear-gradient(135deg,#d8c8b1,#c4cbb9);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.missing img {
    visibility: hidden;
}

.slide.missing::before {
    content: 'Add your photos to the photos/ folder';
    position: absolute;
    top: 45%;
    left: 10%;
    right: 10%;
    text-align: center;
    color: #535d4c;
    font: 13px 'DM Mono',monospace;
}

.slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 18px;
    background: linear-gradient(transparent,#222a23b8);
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.slide-arrow {
    position: absolute;
    z-index: 2;
    top: 18px;
    border: 1px solid #fffa;
    background: #2028208a;
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    transition: background .2s;
}

.slide-arrow:hover {
    background: var(--ink);
}

.prev {
    right: 64px;
}

.next {
    right: 18px;
}

.dots {
    position: absolute;
    bottom: 19px;
    right: 18px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

.dot {
    height: 7px;
    width: 7px;
    border: 0;
    border-radius: 10px;
    background: #ffffff88;
    padding: 0;
    transition: width .25s;
}

.dot.active {
    width: 24px;
    background: white;
}

.closing {
    text-align: center;
    background: var(--green);
    color: white;
    padding: 83px 20px;
}

.closing-icon {
    display: grid;
    place-items: center;
    border: 1px solid #aab29e;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin: 0 auto 22px;
    font: italic 19px Georgia,serif;
}

.closing .eyebrow {
    color: #c5cbb9;
}

.closing h2 em {
    color: #e3b18d;
}

.closing>p:not(.eyebrow) {
    color: #d2d6c8;
    font-size: 12px;
    margin: 20px 0 26px;
}

.button.light {
    background: white;
    color: var(--ink);
}

footer {
    padding: 22px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
    color: var(--muted);
}

footer .brand {
    color: var(--ink);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease,transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%,100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -9px;
    }
}

@media(max-width:800px) {
    .header {
        padding: 0 5%;
    }
    .header nav {
        gap: 13px;
    }
    .header-cta {
        display: none;
    }
    .hero {
        padding: 65px 6% 0;
    }
    .hero-art {
        height: 320px;
    }
    .section,.memories-section {
        padding: 70px 6%;
    }
    .food-row {
        grid-template-columns: 28px minmax(130px,1fr) 70px minmax(80px,.5fr);
        gap: 10px;
    }
    .section-head>p {
        max-width: 270px;
    }
}

@media(max-width:650px) {
    .header {
        height: 68px;
    }
    .menu-toggle {
        display: block;
    }
    .header nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 18px 6%;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 12px;
    }
    .header.menu-open nav {
        display: flex;
    }
    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 55px 6% 0;
        gap: 30px;
    }
    .hero-content {
        padding: 0;
    }
    .hero h1 {
        font-size: clamp(48px,11vw,65px);
    }
    .hero-bottom-note {
        margin-top: 34px;
    }
    .hero-art {
        height: 300px;
        width: 100%;
        max-width: 430px;
        align-self: center;
    }
    .hero-strip {
        gap: 10px;
        font-size: 8px;
    }
    .hero-strip span:nth-child(2) {
        display: none;
    }
    .section,.memories-section {
        padding: 60px 6%;
    }
    .section-head {
        display: block;
        margin-bottom: 28px;
    }
    .section-head>p {
        max-width: 400px;
        margin-top: 20px;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .detail,.detail+.detail {
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        min-height: 145px;
    }
    .detail:last-child {
        border-bottom: 0;
    }
    .detail h3 {
        margin-top: 25px;
    }
    .food-row {
        grid-template-columns: 24px minmax(0,1fr) 70px;
        gap: 8px;
        padding: 16px 0;
    }
    .food-row .person {
        grid-column: 2/4;
    }
    .food-row .pill {
        grid-column: 3;
        grid-row: 1/3;
    }
    .schedule-row {
        grid-template-columns: 24px 75px 1fr;
        gap: 8px;
    }
    .memories-section {
        display: block;
    }
    .memories-copy {
        margin-bottom: 28px;
    }
    .slideshow {
        height: 290px;
    }
    footer {
        flex-wrap: wrap;
        padding: 20px 6%;
    }
    footer>span {
        order: 3;
        width: 100%;
        text-align: center;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*:before,*:after {
        animation: none!important;
        transition: none!important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
