@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap');

:root {
    --ivory: #fbf7ef;
    --paper: #fffdf9;
    --ink: #2f2a27;
    --muted: #746b65;
    --copper: #a95f3c;
    --burnt-orange: #bb6d45;
    --sage: #87927f;
    --blue-gray: #8a9aa2;
    --line: rgba(47, 42, 39, .16);
    --shadow: 0 18px 50px rgba(67, 49, 38, .10);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
    --header-height: 78px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.shell {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.narrow {
    width: min(860px, calc(100% - 48px));
    margin-inline: auto;
}

.centered { text-align: center; }

.section > .shell,
.section > .narrow,
.countdown-section > .shell {
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(251, 247, 239, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: 54px;
    max-width: 150px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.7vw, 24px);
}

.site-nav a {
    text-decoration: none;
    white-space: nowrap;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus { color: var(--copper); }

.nav-rsvp {
    padding: 9px 15px;
    border: 1px solid var(--copper);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: var(--ink);
}

/* Hero */
.hero {
    min-height: 92vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-art {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/joceline-zachary-hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 67% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(29, 24, 21, .68) 0%, rgba(29, 24, 21, .42) 46%, rgba(29, 24, 21, .08) 78%),
        linear-gradient(0deg, rgba(29, 24, 21, .18), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
    color: white;
    padding-block: 112px 86px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.035em;
}

.hero h1 span {
    display: inline-block;
    color: #f2d9c9;
    font-weight: 400;
}

.hero-date,
.hero-place {
    margin: 18px 0 0;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .9rem;
}

.hero-place { margin-top: 4px; }

.hero-intro {
    max-width: 650px;
    margin: 22px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.5;
}

.hero-actions,
.registry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.registry-actions { justify-content: center; }

.button,
a.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--burnt-orange);
    border-radius: 0;
    box-shadow: none;
    color: var(--burnt-orange);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover,
.button:focus,
a.button:hover,
a.button:focus,
button.button:hover,
button.button:focus {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: var(--ivory);
}

.button-primary,
.button-secondary,
.button-ghost,
a.button-primary,
a.button-secondary,
a.button-ghost {
    background: transparent;
    border-color: var(--burnt-orange);
    color: var(--burnt-orange);
}

.button-primary:hover,
.button-primary:focus,
.button-secondary:hover,
.button-secondary:focus,
.button-ghost:hover,
.button-ghost:focus,
a.button-primary:hover,
a.button-primary:focus,
a.button-secondary:hover,
a.button-secondary:focus,
a.button-ghost:hover,
a.button-ghost:focus {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: var(--ivory);
}

/* Countdown */
.countdown-section {
    padding: 46px 0;
    background: var(--paper);
    border-block: 1px solid var(--line);
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(26px, 8vw, 90px);
}

.countdown div {
    min-width: 95px;
    text-align: center;
}

.countdown strong {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--copper);
}

.countdown span {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .15em;
}

/* Shared sections */
.section {
    width: 100%;
    padding: 108px 0;
    scroll-margin-top: var(--header-height);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.section h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1;
    font-weight: 500;
}

.section h3,
.section h4 {
    font-family: var(--serif);
    font-weight: 600;
}

.section h3 {
    font-size: 2rem;
    line-height: 1.15;
}

.section h4 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

/* Story */
.story-section { background: var(--ivory); }

.story-grid {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    display: grid;
    gap: clamp(64px, 8vw, 104px);
}

.story-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(320px, 1.08fr);
    align-items: center;
    gap: clamp(38px, 6vw, 74px);
}

.story-card.reverse .story-photo { order: 2; }

.story-photo {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee7dd;
    box-shadow: var(--shadow);
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-text {
    min-width: 0;
    max-width: 560px;
}

.story-card.reverse .story-text {
    justify-self: end;
}

.story-text p {
    margin: 0 0 1.35em;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Wedding details */
.details-section {
    background:
        linear-gradient(rgba(48,42,38,.78), rgba(48,42,38,.78)),
        url('/assets/images/virginia-placeholder.jpg') center/cover fixed;
    color: white;
}

.details-card {
    width: 100%;
    margin-inline: auto;
    padding: clamp(30px, 6vw, 68px);
    background: rgba(255, 253, 249, .97);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.large-date,
.details-card > h3,
.details-card > p {
    text-align: center;
}

.large-date {
    font-family: var(--serif);
    font-size: 1.75rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 42px 0;
    border-block: 1px solid var(--line);
}

.timeline div {
    padding: 24px 12px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.timeline div:last-child { border-right: 0; }
.timeline span,
.timeline strong { display: block; }
.timeline span { color: var(--copper); font-weight: 600; }

.detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 42px;
    margin-top: 48px;
}

.travel-note {
    max-width: 700px;
    margin: 28px auto 0;
    padding: 18px 22px;
    text-align: left !important;
    background: rgba(169,95,60,.09);
    border-left: 3px solid var(--copper);
}

/* Welcome */
.welcome-section { background: var(--paper); }

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(42px, 7vw, 78px);
}

.illustration-placeholder {
    width: 100%;
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(169,95,60,.08), rgba(135,146,127,.12)),
        var(--paper);
    box-shadow: var(--shadow);
}

.event-date {
    color: var(--copper);
    font-family: var(--serif);
    font-size: 1.5rem;
}

/* Travel */
.info-grid {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info-card {
    min-width: 0;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.text-link {
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
}

/* Registry / FAQ / RSVP */
.registry-section {
    background: linear-gradient(135deg, rgba(169,95,60,.1), rgba(135,146,127,.14));
}

.registry-section .narrow,
.rsvp-section .narrow,
.faq-section .narrow {
    margin-inline: auto;
}

.accordion {
    width: 100%;
    border-top: 1px solid var(--line);
}

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion button {
    width: 100%;
    padding: 22px 4px;
    border: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 1.35rem;
}

.accordion-panel {
    padding: 0 4px 22px;
    color: var(--muted);
}

.rsvp-section { background: var(--paper); }

.rsvp-placeholder {
    margin: 32px auto 0;
    padding: 30px;
    border: 1px solid var(--copper);
    background: var(--ivory);
}

/* Footer */
.site-footer {
    margin: 0;
    padding: 70px 72px;
    background: linear-gradient(135deg, #9c5639 0%, #b8643f 55%, #c8754b 100%);
    color: var(--ivory);
}

.footer-inner {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 1fr) minmax(260px, 1fr);
    gap: 48px;
    align-items: center;
}

.footer-brand {
    justify-self: start;
    text-align: left;
}

.footer-logo {
    width: 230px;
    max-width: 100%;
    margin: 0 0 14px;
}

.footer-date,
.footer-hashtags p,
.made-by-auntie {
    margin: 0;
    color: rgba(255, 248, 239, .96);
}

.footer-date,
.made-by-auntie {
    font-size: .96rem;
    line-height: 1.45;
}

.footer-hashtags {
    justify-self: center;
    text-align: center;
    line-height: 1.65;
}

.footer-credit {
    justify-self: end;
    text-align: right;
}

.made-by-auntie {
    white-space: nowrap;
}

.footer-heart,
.auntie-link,
.auntie-link:link,
.auntie-link:visited {
    color: var(--ivory);
    font-weight: 800;
    text-decoration: none;
}

.auntie-link {
    position: relative;
    display: inline-block;
}

.auntie-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--ivory);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.auntie-link:hover,
.auntie-link:focus {
    color: #ffe3cf;
}

.auntie-link:hover::after,
.auntie-link:focus::after {
    transform: scaleX(1);
}

/* Local guide page */
.subpage-hero {
    min-height: 56vh;
    padding: 170px 0 100px;
    display: grid;
    align-items: center;
    color: white;
    background:
        linear-gradient(rgba(46, 40, 36, .62), rgba(46, 40, 36, .62)),
        url('/assets/images/virginia-placeholder.jpg') center/cover no-repeat;
}

.subpage-hero h1 {
    margin: 0 0 22px;
    font-family: var(--serif);
    font-size: clamp(3.7rem, 8vw, 7rem);
    font-weight: 500;
    line-height: .95;
}

.subpage-hero p:last-child {
    max-width: 720px;
    margin-inline: auto;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.guide-jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
    max-width: 900px;
    margin: -82px auto 80px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.guide-jump-links a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 600;
}

.guide-region {
    padding: 40px 0 100px;
    scroll-margin-top: 105px;
}

.guide-region-alt {
    margin-inline: calc(50% - 50vw);
    padding-inline: max(24px, calc((100vw - 1160px) / 2));
    background: var(--paper);
}

.guide-region-heading {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.guide-region h2,
.guide-travel-note h2 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.guide-card-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card {
    min-width: 0;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.guide-region-alt .guide-card { background: var(--ivory); }

.guide-card h3,
.guide-feature h3 { margin-top: 0; }

.guide-card ul {
    margin: 0;
    padding-left: 20px;
}

.guide-card li + li { margin-top: 14px; }

.guide-feature {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 55px;
    align-items: center;
}

.guide-art-placeholder {
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(169,95,60,.08), rgba(135,146,127,.12)),
        var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.guide-travel-note {
    margin-top: 10px;
    padding: clamp(34px, 6vw, 70px);
    text-align: center;
    background: linear-gradient(135deg, rgba(169,95,60,.11), rgba(135,146,127,.15));
}

.guide-travel-note p:not(.section-kicker) {
    max-width: 760px;
    margin-inline: auto;
}

.guide-disclaimer {
    max-width: 800px;
    margin: 42px auto 0;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

/* Tablet */
@media (max-width: 1040px) {
    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: .68rem;
    }

    .story-card {
        grid-template-columns: minmax(250px, .9fr) minmax(290px, 1.1fr);
    }
}

@media (max-width: 900px) {
    :root { --header-height: 72px; }

    .shell,
    .narrow {
        width: min(100% - 36px, 1160px);
    }

    .nav-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 20px 24px 28px;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 30px rgba(47,42,39,.08);
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        padding: 7px 0;
        font-size: .78rem;
    }

    .nav-rsvp {
        margin-top: 8px;
        padding: 10px 14px !important;
        text-align: center;
    }

    .brand-logo { height: 48px; }

    .hero-content {
        width: min(100% - 36px, 1160px);
    }

    .story-card,
    .story-card.reverse,
    .split-layout,
    .guide-feature {
        grid-template-columns: 1fr;
    }

    .story-card.reverse .story-photo { order: 0; }

    .story-photo {
        width: min(100%, 620px);
        margin-inline: auto;
        aspect-ratio: 4 / 3;
    }

    .story-text,
    .story-card.reverse .story-text {
        max-width: 720px;
        margin-inline: auto;
        justify-self: center;
    }

    .timeline,
    .info-grid,
    .guide-card-grid,
    .guide-card-grid.two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline div:nth-child(2) { border-right: 0; }
    .timeline div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

    .info-card:last-child {
        grid-column: 1 / -1;
        max-width: 540px;
        width: 100%;
        justify-self: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-tags { align-items: center; }
}

/* Mobile */
@media (max-width: 640px) {
    body { font-size: 15px; }

    .shell,
    .narrow,
    .hero-content {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        min-height: 86svh;
        align-items: end;
    }

    .hero-art {
        background-position: 61% center;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(29, 24, 21, .78) 0%, rgba(29, 24, 21, .48) 52%, rgba(29, 24, 21, .12) 100%);
    }

    .hero-content {
        padding-block: 120px 58px;
        text-align: center;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(3.45rem, 17vw, 5rem);
    }

    .hero-intro {
        max-width: 520px;
        margin-inline: auto;
        font-size: 1.22rem;
    }

    .hero-actions,
    .registry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .countdown {
        gap: 16px;
    }

    .countdown div {
        min-width: 68px;
    }

    .countdown strong {
        font-size: 2.25rem;
    }

    .section {
        padding: 76px 0;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .story-grid {
        gap: 66px;
    }

    .story-photo {
        aspect-ratio: 4 / 5;
    }

    .story-text {
        text-align: left;
    }

    .timeline,
    .detail-columns,
    .info-grid,
    .guide-card-grid,
    .guide-card-grid.two-column {
        grid-template-columns: 1fr;
    }

    .timeline div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .info-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .details-card {
        padding-inline: 22px;
    }

    .illustration-placeholder {
        min-height: 360px;
    }

    .subpage-hero {
        min-height: 50vh;
        padding: 135px 0 80px;
    }

    .guide-jump-links {
        margin-top: -60px;
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .guide-region {
        padding-bottom: 72px;
    }
}

/* Clean custom refinements */

/* Main content links */
main a:not(.button),
main a:not(.button):link,
main a:not(.button):visited {
    color: var(--burnt-orange);
    text-decoration: none;
}

main a:not(.button):hover,
main a:not(.button):focus {
    color: var(--copper);
}

/* Header navigation */
.site-nav a {
    color: #5d5550;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--burnt-orange);
}

.nav-rsvp:hover,
.nav-rsvp:focus {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: var(--ivory);
}

/* Elegant hover line for text links, not buttons */
.site-nav a:not(.nav-rsvp),
.guide-jump-links a,
.text-link {
    position: relative;
}

.site-nav a:not(.nav-rsvp)::after,
.guide-jump-links a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--burnt-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.site-nav a:not(.nav-rsvp):hover::after,
.site-nav a:not(.nav-rsvp):focus::after,
.guide-jump-links a:hover::after,
.guide-jump-links a:focus::after,
.text-link:hover::after,
.text-link:focus::after {
    transform: scaleX(1);
}

/* Wedding venue address */
.venue-address {
    margin-bottom: 4px;
}

.venue-address a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.venue-address-note {
    margin: -4px 0 26px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: .95rem;
    font-style: italic;
    line-height: 1.45;
    letter-spacing: .01em;
}

/* Welcome and local guide images */
.illustration-image,
.guide-art-image {
    width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--paper);
}

.illustration-image img,
.guide-art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Local guide hero */
.local-guide-hero {
    background:
        linear-gradient(rgba(46, 40, 36, .56), rgba(46, 40, 36, .56)),
        url('/assets/images/local-guide-hero.jpg') center/cover no-repeat;
}

.guide-jump-links {
    gap: 18px 32px;
    padding: 22px;
}

/* FAQ */
.accordion button span[aria-hidden="true"] {
    color: var(--burnt-orange);
}

/* Wedding section background */
@media (min-width: 901px) {
    .details-section {
        background:
            linear-gradient(rgba(48, 42, 38, .78), rgba(48, 42, 38, .78)),
            url('/assets/images/virginia-placeholder.jpg') center center / cover fixed;
        background-attachment: fixed;
    }
}

@media (max-width: 900px) {
    .details-section {
        background:
            linear-gradient(rgba(48, 42, 38, .36), rgba(48, 42, 38, .36)),
            url('/assets/images/virginia-placeholder.jpg') center center / cover no-repeat;
        background-attachment: scroll;
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .details-card {
        background: rgba(255, 253, 249, .90);
    }
}

/* Mobile adjustments */
@media (max-width: 700px) {
    .hero {
        min-height: calc(100svh - var(--header-height));
        align-items: start;
    }

    .hero-art {
        background-position: 82% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(29, 24, 21, .20) 0%, rgba(29, 24, 21, .42) 42%, rgba(29, 24, 21, .70) 100%),
            linear-gradient(90deg, rgba(29, 24, 21, .28), rgba(29, 24, 21, .10));
    }

    .hero-content {
        padding-top: clamp(210px, 32vh, 300px);
        padding-bottom: 92px;
    }

    .hero h1 {
        font-size: clamp(4.4rem, 18vw, 6.2rem);
        line-height: .92;
    }

    .hero-intro {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer {
        padding: 56px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }

    .footer-brand,
    .footer-hashtags,
    .footer-credit {
        justify-self: center;
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .made-by-auntie {
        white-space: normal;
    }
}

@media (max-width: 430px) {
    .hero-art {
        background-position: 86% center;
    }
}

/* Navigation RSVP and hero button contrast refinements */
.site-nav .nav-rsvp,
.site-nav .nav-rsvp:link,
.site-nav .nav-rsvp:visited {
    background: var(--burnt-orange);
    border: 1px solid var(--burnt-orange);
    color: var(--ivory);
    -webkit-text-fill-color: var(--ivory);
}

.site-nav .nav-rsvp:hover,
.site-nav .nav-rsvp:focus {
    background: transparent;
    border-color: var(--burnt-orange);
    color: var(--burnt-orange);
    -webkit-text-fill-color: var(--burnt-orange);
}

/* Keep the RSVP nav button from inheriting the menu underline hover treatment. */
.site-nav .nav-rsvp::after {
    display: none;
    content: none;
}

/* Hero buttons need more contrast over the photo than the rest of the page buttons. */
.hero .button,
.hero a.button,
.hero .button-primary,
.hero .button-secondary,
.hero .button-ghost,
.hero a.button-primary,
.hero a.button-secondary,
.hero a.button-ghost {
    background: rgba(255, 248, 239, .10);
    border-color: var(--ivory);
    color: var(--ivory);
    -webkit-text-fill-color: var(--ivory);
}

.hero .button:hover,
.hero .button:focus,
.hero a.button:hover,
.hero a.button:focus,
.hero .button-primary:hover,
.hero .button-primary:focus,
.hero .button-secondary:hover,
.hero .button-secondary:focus,
.hero .button-ghost:hover,
.hero .button-ghost:focus,
.hero a.button-primary:hover,
.hero a.button-primary:focus,
.hero a.button-secondary:hover,
.hero a.button-secondary:focus,
.hero a.button-ghost:hover,
.hero a.button-ghost:focus {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--burnt-orange);
    -webkit-text-fill-color: var(--burnt-orange);
}

