/* @import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--c-black: #11111a;
	--c-olive: #6c7136;
	--c-burgundy: #571121;
	--c-apricot: #d2603e;
	--c-peach: #f09687;
	--c-white: #f6eae0;

    /* Change the families here (and the @import above) to restyle the site. */
    --font-display: 'Cormorant Garamond', Garamond, serif;
    --font-body: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;

    font-size: 10px;
}

/* Glide to in-page anchors; respect users who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

body {

    background-color: var(--c-black);
    color: var(--c-white);

    /* font-family: "Libre Baskerville", serif; */
    font-family: var(--font-body);
    /* font-optical-sizing: auto; */
    font-weight: 400;
    font-style: normal;
}

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


.container {
    background-image: url('/assets/img/SK-C-187.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    padding: 8rem 1.6rem 4rem;
}

.container h1 {
    margin-top: 10vh;
    line-height: 120%;
    text-align: center;
    font-size: 6.4rem;
    font-style: italic;
    font-family: var(--font-display);
}

/* Floating name tag: frosted pill, no border */
.guest {
    position: fixed;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0.9rem 1.8rem;

    background-color: rgb(17 17 26 / 0.7);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
    color: var(--c-white);
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guest button {
    padding: 0;

    background: none;
    color: var(--c-peach);
    border: none;
    font: inherit;
    font-size: 1.3rem;
    font-style: italic;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
    cursor: pointer;
}

.guest button:hover,
.guest button:focus-visible {
    color: var(--c-apricot);
    outline: none;
}

.guest button:focus-visible {
    text-decoration-thickness: 2px;
}

.login {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Forms read as stationery cards: soft shadow, faint inset frame, no hard border. */
.login form,
.rsvp form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 40rem;
    padding: 5.6rem 4.8rem 4.8rem;

    background-color: rgb(17 17 26 / 0.72);
    backdrop-filter: blur(6px);
    outline: 1px solid rgb(240 150 135 / 0.3);
    outline-offset: -1.2rem;
    box-shadow:
        0 2px 6px rgb(0 0 0 / 0.25),
        0 24px 60px rgb(0 0 0 / 0.45);
    font-size: 1.6rem;
}

.login h2,
.rsvp h2 {
    margin-bottom: 2.4rem;
    font-size: 3rem;
    font-style: italic;
    font-weight: normal;
    line-height: 130%;
    text-align: center;
    font-family: var(--font-display);
}

/* Small flourish under the heading */
/*.login h2::after {
    content: '';
    display: block;
    width: 6rem;
    height: 1px;
    margin: 1.6rem auto 0;
    background: linear-gradient(to right, transparent, var(--c-peach), transparent);
}*/

.login label,
.rsvp label,
.rsvp legend {
    margin-top: 1.6rem;

    color: var(--c-peach);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Underlined fields rather than boxes */
.login input,
.rsvp select,
.rsvp textarea {
    padding: 0.8rem 0.2rem;

    background-color: transparent;
    color: var(--c-white);
    border: none;
    border-bottom: 1px solid rgb(246 234 224 / 0.4);
    border-radius: 0;
    font: inherit;
    font-size: 1.8rem;
    transition: border-color 0.2s;
}

.rsvp select option {
    background-color: var(--c-black);
    color: var(--c-white);
}

.rsvp textarea {
    padding: 1rem 1.2rem;

    background-color: rgb(246 234 224 / 0.06);
    border-bottom-color: rgb(246 234 224 / 0.4);
}

.login input:hover,
.rsvp select:hover,
.rsvp textarea:hover {
    border-bottom-color: var(--c-peach);
}

.login input:focus,
.rsvp select:focus,
.rsvp textarea:focus {
    outline: none;
    border-bottom-color: var(--c-apricot);
    box-shadow: 0 1px 0 var(--c-apricot);
}

.rsvp input:focus-visible {
    outline: 2px solid var(--c-apricot);
    outline-offset: 2px;
}

/* Shared button look: depth from gradient and shadow rather than an outline */
.login button,
.rsvp button,
.rsvp-cta .button {
    display: inline-block;
    min-width: 60%;
    padding: 1.5rem 3.2rem;

    /* Solid colour underneath so it can transition; the sheen on top stays fixed */
    background-color: var(--c-burgundy);
    background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.08), transparent);
    color: var(--c-white);
    border: none;
    border-radius: 2px;
    box-shadow:
        0 1px 2px rgb(0 0 0 / 0.3),
        0 8px 20px rgb(0 0 0 / 0.35);
    font: inherit;
    font-size: 1.3rem;
    font-style: normal;
    letter-spacing: 0.2em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.login button:hover,
.login button:focus-visible,
.rsvp button:hover,
.rsvp button:focus-visible,
.rsvp-cta .button:hover,
.rsvp-cta .button:focus-visible {
    background-color: var(--c-apricot);
}

.login button:focus-visible,
.rsvp button:focus-visible,
.rsvp-cta .button:focus-visible {
    outline: 2px solid var(--c-peach);
    outline-offset: 4px;
}

.login button,
.rsvp button {
    align-self: center;
    margin-top: 3.2rem;
}

@media (prefers-reduced-motion: reduce) {
    .registry-list a {
        transition: none;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .login form,
    .rsvp form {
        padding: 4.8rem 2.8rem 4rem;
    }

    .rsvp-cta {
        padding: 3.6rem 2.8rem;
    }
}

.rsvp {
    display: flex;
    justify-content: center;
    width: 100%;
    scroll-margin-top: 8rem;
}

.rsvp form {
    max-width: 48rem;
}

.rsvp fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: none;
}

.rsvp legend {
    margin-bottom: 0.8rem;
}

.rsvp .rsvp-choice {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0;
    padding: 0.4rem 0;

    color: var(--c-white);
    font-size: 1.6rem;
    font-style: italic;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.rsvp-choice input {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: var(--c-apricot);
}

.rsvp textarea {
    resize: vertical;
}

.rsvp-summary {
    margin-bottom: 0.8rem;
    line-height: 150%;

}

.rsvp-summary small {
    color: var(--c-peach);
    font-size: 1.3rem;
}

.rsvp-status,
.login-error {
    padding: 1rem 1.4rem;

    font-size: 1.4rem;
    font-style: italic;
    text-align: center;
}

.rsvp-status {
    background-color: rgb(108 113 54 / 0.55);
}

.login-error {
    background-color: rgb(87 17 33 / 0.75);
}

/* Home page: full-width stacked blocks */

.home {
    display: flex;
    flex-direction: column;
}

.block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    padding: 6rem 1.6rem 10rem 1.6rem;
    scroll-margin-top: 0;
}

.block-inner {
    width: 100%;
    max-width: 64rem;
    font-size: 1.8rem;
    line-height: 185%;
}

.block-inner h2 {
    margin-bottom: 3.6rem;
    font-size: 3.6rem;
    font-style: italic;
    font-weight: normal;
    text-align: center;

    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.block-inner p + p {
    margin-top: 1.6rem;
}

/* Swap --block-image per block to use a different photo. */
.block-image {
    --block-image: url('/assets/img/SK-C-187.jpg');

    background:
        linear-gradient(rgb(17 17 26 / var(--block-shade, 0)), rgb(17 17 26 / var(--block-shade, 0))),
        var(--block-image) center / cover no-repeat,
        var(--c-black);
}

.block-hero {
    position: relative;
    min-height: 100vh;

    background-color: var(--c-black);
    color: var(--c-white);

    --block-shade: 0.6;
}

/* Section links along the top of the hero; out of flow so the hero stays centred */
.page-nav {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 3.2rem);
    transform: translateX(-50%);
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 0;
    list-style: none;
}

/* Middle dot between links */
.page-nav li + li::before {
    content: '\00b7';
    padding: 0 1.4rem;
    color: var(--c-peach);
}

.page-nav a {
    color: var(--c-white);
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    text-underline-offset: 0.5em;
    transition: color 0.2s;
}

.page-nav a:hover {
    color: var(--c-peach);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.page-nav a:focus-visible {
    color: var(--c-peach);
    outline: 2px solid var(--c-peach);
    outline-offset: 4px;
}

/* On narrow screens, drop below the fixed guest pill */
@media (max-width: 800px) {
    .page-nav {
        top: 7.2rem;
    }

    .block-hero {
        padding-top: 15rem;
    }

    .page-nav li + li::before {
        padding: 0 0.8rem;
    }

    .page-nav a {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
    }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90rem;
    text-align: center;
    font-family: var(--font-display);

    /* background-color: var(--c-white); */
}
.hero h3 {
    font-size: 2.4rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2rem;

    margin: 2rem 0 2rem 0;
}
.block-hero h1 {
    line-height: 120%;
    font-size: 6.4rem;
    /* font-style: italic; */
    font-weight: normal;
    letter-spacing: 2px;
}
.block-hero h2 {
    line-height: 185%;
    font-size: 3.2rem;
}

.hero-subheading {
    margin-top: 2.4rem;
    font-size: 2.4rem;
    font-style: italic;
}

/* Second layer: date and place, set small and spaced like engraved type */
.hero-meta {
    color: var(--c-peach);
    font-family: var(--font-body);
    font-size: 1.4rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* Decorative divider, from templates/partials/fleuron.twig; strokes follow `color` */
.fleuron {
    display: block;
    width: 14rem;
    height: auto;
    aspect-ratio: 2643 / 890;
    margin: 2rem auto;

    color: var(--c-peach);
}

/* A compact sibling of the form cards */
.rsvp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    width: 100%;
    max-width: 40rem;
    padding: 4rem 4.8rem;

    background-color: rgb(17 17 26 / 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    outline: 1px solid rgb(240 150 135 / 0.3);
    outline-offset: -1.2rem;
    box-shadow:
        0 2px 6px rgb(0 0 0 / 0.25),
        0 24px 60px rgb(0 0 0 / 0.45);
    font-size: 2rem;
    font-style: italic;
    line-height: 140%;
    text-align: center;
}


.rsvp-cta strong {
    color: var(--c-peach);
    font-weight: normal;
}

.block-story {
    position: relative;
    overflow: hidden;
    background-color: var(--c-white);
    color: var(--c-black);
}

.pull-quote {
    margin-bottom: 6rem;
    padding: 0 0 0 3.2rem;

    border-left: 0.6rem solid var(--c-apricot);
    color: var(--c-burgundy);
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-style: italic;
    line-height: 130%;
}


.block-details {
    background-color: var(--c-burgundy);
}

/* Centered list: labels flush left, details flush right */
.block-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 2rem 3.2rem;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

.block-details dt {
    color: var(--c-peach);
    font-size: 1.3rem;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
}

.block-details dd {
    text-align: right;
}

.block-faq {
    background-color: var(--c-white);
    color: var(--c-black);
}

.faq-heading {
    margin: 0 0 2.4rem;

    color: var(--c-burgundy);
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

/* Timeline: times right-aligned against a faint centre rule, events to the right */
.timeline {
    position: relative;
    display: grid;
    gap: 1.6rem;
    max-width: 44rem;
    margin: 0 auto 7.2rem;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 10rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgb(210 96 62 / 0.45) 10%, rgb(210 96 62 / 0.45) 90%, transparent);
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 8rem 1fr;
    align-items: baseline;
    column-gap: 4rem;
}

/* Dot on the rule for each event */
.timeline li::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 10rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--c-apricot);
    box-shadow: 0 0 0 4px var(--c-white);
    transform: translate(calc(-50% + 1px), -50%);
}

.timeline time {
    color: var(--c-burgundy);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-align: right;
}

.timeline span {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-style: italic;
}

/* Q&A: native <details>, so it opens without JS */
.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-list details {
    background-color: rgb(17 17 26 / 0.04);
    border-radius: 2px;
    transition: background-color 0.25s;
}

.faq-list details[open] {
    background-color: rgb(17 17 26 / 0.07);
}

.faq-list summary {
    position: relative;
    padding: 1.8rem 5.6rem 1.8rem 2.4rem;

    font-size: 1.7rem;
    list-style: none;
    cursor: pointer;
    transition: color 0.25s;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary:hover {
    color: var(--c-burgundy);
}

.faq-list summary:focus-visible {
    outline: 2px solid var(--c-apricot);
    outline-offset: 2px;
}

/* Plus that turns into a cross when open */
.faq-list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 2.4rem;

    color: var(--c-apricot);
    font-size: 2.4rem;
    line-height: 100%;
    transform: translateY(-50%);
    transition: transform 0.25s;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
    padding: 0 2.4rem 2.4rem;

    color: rgb(17 17 26 / 0.8);
    font-size: 1.6rem;
}

@media (prefers-reduced-motion: reduce) {
    .faq-list summary::after {
        transition: none;
    }
}

@media (max-width: 480px) {
    .timeline::before,
    .timeline li::before {
        left: 7.6rem;
    }

    .timeline li {
        grid-template-columns: 6rem 1fr;
        column-gap: 3.2rem;
    }

    .timeline span {
        font-size: 1.9rem;
    }
}

.block-registry {
    background-color: var(--c-olive);
    color: var(--c-white);
}

.registry-intro {
    font-style: italic;
    text-align: center;
}

.registry-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.6rem;
    margin-top: 3.2rem;
    list-style: none;
}

.registry-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    padding: 2.8rem 2rem;

    background-color: rgb(17 17 26 / 0.22);
    color: var(--c-white);
    border-radius: 2px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.15);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.registry-list a:hover,
.registry-list a:focus-visible {
    background-color: var(--c-burgundy);
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.3);
    transform: translateY(-2px);
}

.registry-list a:focus-visible {
    outline: 2px solid var(--c-peach);
    outline-offset: 4px;
}

.registry-name {
    font-size: 2rem;
    font-style: italic;
    line-height: 130%;
}

.registry-action {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.registry-action::after {
    /* content: ' \2192'; */
}


.block-rsvp {
    --block-shade: 0.6;

    background-position: center, center bottom;
    background-attachment: scroll, fixed;
}

.block-rsvp.rsvp {
    scroll-margin-top: 0;
}

@media (max-width: 480px) {
    .block-hero h1 {
        font-size: 3.6rem;
    }

    .hero-subheading {
        font-size: 1.9rem;
    }

    .hero-meta {
        font-size: 1.2rem;
        letter-spacing: 0.16em;
    }

    .block-details dl {
        gap: 1.6rem 1.6rem;
    }

    .block-details dt {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
}
