:root {
    --bg: #f8f1ea;
    --paper: #fffaf6;
    --ink: #34251f;
    --muted: #7a6256;
    --accent: #9a6f5d;
    --accent2: #e2bda8;
    --line: #ead7ca;
    --rose: #b98678;
    --champagne: #f3dfcf;
    --shadow: 0 20px 60px rgba(52, 37, 31, 0.13);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI,
        sans-serif;
    background: radial-gradient(circle at top left, #fff7ed, transparent 35%),
        var(--bg);
    color: var(--ink);
}
a {
    color: inherit;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(251, 246, 241, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand {
    font-family: Georgia, serif;
    font-size: 1.45rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
}
.brand:hover {
    color: #8c6453;
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
span {
    color: var(--muted);
}
.emergency a {
    color: #8c6453;
}
.nav a {
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
}
.nav a:hover,
.pill {
    background: #7f5648 !important;
    color: #fff !important;
}
.nav-toggle {
    display: none;
}
.section {
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem);
    max-width: 1180px;
    margin: auto;
}
.hero {
    min-height: 82vh;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(
            120deg,
            rgba(143, 111, 95, 0.18),
            rgba(217, 184, 165, 0.2)
        ),
        url("../assets/images/hero.svg") center/cover;
    border-bottom: 1px solid var(--line);
    max-width: none;
}
.hero-card,
.page-hero {
    background: rgba(255, 253, 251, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    border-radius: 2rem;
    padding: clamp(1rem, 6vw, 5rem);
}
h1,
h2,
h3 {
    font-family: Georgia, serif;
    line-height: 1.08;
}

h1 {
    font-size: clamp(1.6rem, 4vw, 3.25rem);
    margin: 0.2em 0;
    color: #6f4d42;
    text-shadow: 0 2px 18px rgba(143, 111, 95, 0.16);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0.2em 0 0.5em;
    color: #8f5f50;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 2px;
    margin-top: 0.6rem;
    background: linear-gradient(90deg, var(--rose), transparent);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.2;
    margin: 0 0 0.65rem;
    color: #8c6453;
    font-weight: 600;
}
.hero-card h1.no-divider::after {
    content: none;
}
.lead {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}
.eyebrow {
   /*text-transform: uppercase;*/
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.68rem;
}
.eyebrow-raised {
   /*text-transform: uppercase;*/ 	
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.98rem;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: #8c6453;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #8c6453;
}
.button:hover {
    background: #7f5648;
    border-color: #7f5648;
}
.button.ghost {
    background: transparent;
    color: #8c6453;
    border-color: #d9c3b7;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.button.ghost:hover {
    background: rgba(140, 100, 83, 0.08);
    border-color: #8c6453;
}
.countdown {
    margin-top: 1.5rem;
    color: var(--muted);
    font-weight: 700;
}
.timeline {
    display: grid;
    gap: 1rem;
    border-left: 2px solid var(--accent2);
    padding-left: 1.5rem;
}
.timeline div {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 1.25rem;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.25rem;
}
.timeline strong {
    color: var(--accent);
}
.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}
.info-card,
.cards article,
.map-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 1.5rem;
    padding: 1.5rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.map-card iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 1rem;
}

/**/

/* Polished map card */
.map-card {
    overflow: hidden;
    padding: 0;
}

.map-card iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    display: block;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 253, 251, 0.92);
    border-top: 1px solid var(--line);
}

.map-actions .button {
    width: auto;
}

@media (max-width: 850px) {
    .map-card iframe {
        min-height: 320px;
    }

    .map-actions {
        flex-direction: column;
    }

    .map-actions .button {
        width: 100%;
    }
}


/**/




footer {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}
.page {
    padding-top: 2rem;
}
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
@media (max-width: 850px) {
    .site-header {
        align-items: flex-start;
    }
    .nav {
        display: none;
        width: 100%;
    }
    .nav.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 999px;
        padding: 0.5rem 0.7rem;
    }
    .split,
    .grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        align-items: stretch;
    }
    .button {
        width: 100%;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.98rem;
}
/* Improved mobile navigation */
@media (max-width: 850px) {
    .site-header {
        align-items: center;
        flex-wrap: wrap;
        padding: 0.85rem 1rem;
    }

    .brand {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 999px;
        font-size: 1.25rem;
        line-height: 1;
        box-shadow: 0 10px 30px rgba(48, 37, 31, 0.08);
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.65rem;
        background: rgba(255, 253, 251, 0.96);
        border: 1px solid var(--line);
        border-radius: 1.25rem;
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
    }

    .nav.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.75rem 0.65rem;
        border-radius: 0.95rem;
        background: #fff8f3;
        border: 1px solid rgba(234, 222, 213, 0.8);
        color: var(--ink);
        text-align: center;
        font-size: 0.95rem;
    }

    .nav a.pill {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .nav.open {
        grid-template-columns: 1fr;
    }
}

/* PWA install prompt */
.install-strip {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 40;
    width: min(920px, calc(100% - 2rem));
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.9rem 3rem 0.9rem 1rem;

    background: rgba(255, 253, 251, 0.96);
    border: 1px solid var(--line);
    border-radius: 1.25rem;

    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.install-strip[hidden],
.install-modal[hidden] {
    display: none !important;
}

.install-strip strong,
.install-strip span {
    display: block;
}

.install-strip strong {
    color: #7f5648;
}

.install-strip span {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.1rem;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-button {
    border: 0;
    border-radius: 999px;

    background: #8c6453;
    color: #fff;

    font-weight: 700;
    padding: 0.85rem 1.1rem;

    white-space: nowrap;
    cursor: pointer;
}

.install-button:hover {
    background: #7f5648;
}

.install-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.install-dismiss:hover {
    background: rgba(143, 111, 95, 0.08);
    color: var(--ink);
}

.install-modal {
    position: fixed;
    inset: 0;
    z-index: 50;

    display: grid;
    place-items: center;

    padding: 1rem;

    background: rgba(48, 37, 31, 0.42);
    backdrop-filter: blur(8px);
}

.install-modal-card {
    position: relative;

    width: min(620px, 100%);
    max-height: min(88vh, 760px);
    overflow: auto;

    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1.75rem;

    box-shadow: var(--shadow);

    padding: clamp(1.25rem, 4vw, 2rem);
}

.install-modal-card h2 {
    margin-bottom: 0.25rem;
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;

    width: 2.5rem;
    height: 2.5rem;

    border-radius: 999px;
    border: 1px solid var(--line);

    background: #fff8f3;
    color: var(--ink);

    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;
}

.install-gif {
    display: block;
    width: 100%;

    margin-top: 1rem;

    border-radius: 1.25rem;
    border: 1px solid var(--line);

    background: #fff8f3;
}

@media (max-width: 640px) {
    .install-strip {
        flex-direction: column;
        align-items: stretch;
        bottom: 0.75rem;
    }

    .install-actions {
        width: 100%;
    }

    .install-button {
        flex: 1;
    }
}



.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.9rem 1.2rem;

    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;

    text-decoration: none;
    color: var(--ink);

    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: #fff;
}

.contact-link .icon {
    font-size: 1.1rem;
}

.contact-link:visited,
.contact-link:active,
.contact-link:focus {
    color: #8c6453;
    background: var(--paper);
    outline: none;
}

@media (max-width: 700px) {
    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }
}
.wedding-crest {
  display: block;
  width: min(260px, 70vw);
  max-width: 260px;
  margin: 0 auto 1.5rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../assets/images/liz-michael-crest.webp");
  background-repeat: no-repeat;
  background-position: center 45px;
background-size: min(260px, 60vw);

  opacity: 0.54;

  filter:
    sepia(0.2)
    saturate(0.9)
    contrast(0.95);

  pointer-events: none;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

/* Main heading */
.hero-card h1 {
  
  margin-bottom: 20rem;
  color: #7f5648;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(143,111,95,0.15);
}

.hero-card h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rose),
    transparent
  );
}

/* Date */
.hero-date {
  margin: 0;
  font-size: 1.35rem;
  color: var(--muted);
  font-weight: 500;
}

/* Venue title */
.hero-kicker {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: #7f5648;
  font-size: 1rem;
  letter-spacing: 0.08em;
  
}

/* Venue details */
.venue-line {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Countdown */
.countdown-lower {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--accent);
}

/* Buttons */
.hero-actions-lower {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(143, 111, 95, 0.15);
}

.nav-divider {
    width: 1px;
    height: 1.25rem;
    background: var(--line);
    margin: 0 0.4rem;
}

.offline-banner {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #8c6453;
  color: #fffaf6;
  text-align: center;
  font-weight: 700;
}
body.is-offline .offline-banner {
  display: block;
}

.offline-map-fallback {
  display: none;
}

body.is-offline .offline-map-fallback {
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

body.is-offline .map-card iframe {
  display: none;
}

body.is-offline .map-actions {
  opacity: 0.5;
}