
:root {
    --wedding-accent: #43304F;
    --wedding-accent-dark: #33203F;
    --wedding-accent-rgb: 67, 48, 79; /* --wedding-accent as r, g, b (for focus rings) */
    --wedding-paper: #F9F6ED;
    --wedding-ink: #43304F;
    --wedding-display-font: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
}

html {
  height: 100%
}

body.guest {
    background: var(--wedding-paper);
    color: var(--wedding-ink);
    --bs-primary: var(--wedding-accent);
    --bs-primary-rgb: 67, 48, 79;
    --bs-link-color: var(--wedding-accent-dark);
    --bs-link-color-rgb: 51, 32, 63;
    --bs-link-hover-color: var(--wedding-ink);
}

.guest .btn-primary {
    --bs-btn-bg: var(--wedding-accent);
    --bs-btn-border-color: var(--wedding-accent);
    --bs-btn-hover-bg: var(--wedding-accent-dark);
    --bs-btn-hover-border-color: var(--wedding-accent-dark);
    --bs-btn-active-bg: var(--wedding-accent-dark);
    --bs-btn-active-border-color: var(--wedding-accent-dark);
}

/* Outline button in the accent colour, filled when selected (the RSVP "Accepts" buttons). */
.btn-outline-accent {
    --bs-btn-color: var(--wedding-accent);
    --bs-btn-border-color: var(--wedding-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--wedding-accent);
    --bs-btn-hover-border-color: var(--wedding-accent);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--wedding-accent);
    --bs-btn-active-border-color: var(--wedding-accent);
    --bs-btn-focus-shadow-rgb: var(--wedding-accent-rgb);
}

.guest .form-control:focus,
.guest .form-select:focus,
.guest .form-check-input:focus {
    border-color: var(--wedding-accent);
    box-shadow: 0 0 0 .25rem rgba(107, 127, 94, .25);
}

.guest .form-check-input:checked {
    background-color: var(--wedding-accent);
    border-color: var(--wedding-accent);
}

.guest .card {
    border-color: rgba(0, 0, 0, .06);
}

.display-font {
    font-family: var(--wedding-display-font);
    font-weight: 500;
}

.hero {
    padding: 4rem 0 2.5rem;
}

.hero-compact {
    padding: 1rem 0 2.5rem;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .8rem;
    color: var(--wedding-accent-dark);
    margin-bottom: .5rem;
}

.hero .couple {
    font-size: clamp(2.75rem, 9vw, 5rem);
    line-height: 1.05;
    margin-bottom: .75rem;
}

.hero-date {
    font-size: 1.5rem;

    text-transform: uppercase;
    font-family: var(--wedding-display-font);
    font-weight: 600;
}

.hero .welcome {
    max-width: 38rem;
}

.timeline li {
    display: grid;
    grid-template-columns: 5.5rem 1fr; /* wide enough for "00:00" at the larger time size */
    padding: .4rem 0;
    /* border-bottom: 1px solid var(--wedding-accent); */
}

.timeline li:last-child {
    border-bottom: 0;
}

.timeline-time {
    white-space: nowrap;
    font-weight: 600;
    color: var(--wedding-accent-dark);
    font-family: var(--wedding-display-font);
    font-size: 1.5rem;
    line-height: 1.2rem;
}

.timeline-title {
    text-transform: uppercase;
    font-family: var(--wedding-display-font);
    font-weight: 600;
    font-size: 1.25rem;
}

.timeline-venue {
    grid-column: 2;
    font-size: .875rem;
    color: var(--bs-primary);
}

.timeline li + li {
    &:before {
        display: block;
        grid-column: span 2;
        margin: auto;
        width: 50%;
        border-bottom: 1px solid var(--wedding-accent);
        content: '';
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.venue + .venue {
    &:before {
        display: block;
        margin: auto;
        width: 50%;
        border-bottom: 1px solid var(--wedding-accent);
        content: '';
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* The same short centred rule, above a block (e.g. the taxi option on the RSVP form). */
.separator-above::before {
    display: block;
    margin: 1rem auto;
    width: 50%;
    border-bottom: 1px solid var(--wedding-accent);
    content: '';
}

.venue a + a {
    margin-left: 1.5rem;
}

.guest-card {
    background: #fff;
}

.attending-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.guest-details[hidden] {
    display: none !important;
}

/* Admin */
.stat .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat .stat-label {
    color: var(--bs-secondary-color);
}


.invitation-header th {
    background: var(--bs-tertiary-bg);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.invitation + .invitation .invitation-header th {
    border-top: 2px solid var(--bs-border-color);
}

.invitation-notes td {
    background: #fffbea;
}

.pre-wrap {
    white-space: pre-wrap;
}

.admin-notes {
    background: #fffbea;
}

/* Narrow screens: links from above the RSVP to the details below it, and a
   button back to the RSVP once it's scrolled out of view. */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.jump-target {
    scroll-margin-top: 1rem;
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .25rem 1rem;
}

.rsvp-return {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    border-radius: 2rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    text-transform: uppercase;
    font-family: var(--wedding-display-font);
}

/* Guest login page only: floral background, with a soft white glow behind the
   text that sits on it (the couple's names, date and help line). */
body.page-login {
    background-image: url("../img/landing_bg.jpg");
    background-size: cover;
    background-position: center;
}

/*
.page-login .hero .hero-bg {
    display: inline-block;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
*/