/* ============================================================
   Antonela & San — Botanical Editorial
   ============================================================ */

:root {
    /* Palette */
    --ivory: #FAF7F1;
    --linen: #F1EBE0;
    --olive: #39412F;
    --olive-deep: #2C3325;
    --sage: #8E9783;
    --terracotta: #C26E4A;
    --terracotta-dark: #A85A3A;
    --ink: #232720;
    --muted: #6F6A5D;
    --line: rgba(57, 65, 47, 0.14);
    --line-light: rgba(250, 247, 241, 0.22);

    /* Type */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", "Helvetica Neue", sans-serif;

    /* Space */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;

    --nav-height: 4.5rem;
    --radius: 16px;
}

/* ---------- Reset / base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-weight: 340;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 6vw;
}

.label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sage);
}

.label--light { color: var(--sage); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.9em 2.2em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, transform 0.25s ease;
}

.btn--primary {
    background: var(--terracotta);
    color: var(--ivory);
}

.btn--primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.btn--ghost {
    border-color: var(--line);
    color: var(--olive);
}

.btn--ghost:hover {
    background: var(--olive);
    border-color: var(--olive);
    color: var(--ivory);
    transform: translateY(-2px);
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
    background: rgba(250, 247, 241, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 420;
    letter-spacing: 0.06em;
    color: var(--olive);
}

.nav__logo span {
    font-style: italic;
    color: var(--terracotta);
}

.nav__links { display: none; }

.nav__link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 420;
    color: var(--olive);
    padding-bottom: 2px;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link--cta {
    padding: 0.45em 1.4em;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
    background: var(--olive);
    color: var(--ivory);
}

.nav__toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--olive);
    cursor: pointer;
}

.nav__toggle .icon-close { display: none; }
.nav__toggle.is-open .icon-open { display: none; }
.nav__toggle.is-open .icon-close { display: block; }

.nav__menu {
    display: none;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm) 6vw var(--space-md);
}

.nav__menu.is-open { display: flex; }

.nav__menu-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 380;
    color: var(--olive);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--line);
}

.nav__menu-link:last-child { border-bottom: 0; }
.nav__menu-link:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    padding-bottom: var(--space-lg);
}

.hero__grid {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.hero__names {
    font-family: var(--font-display);
    font-weight: 340;
    font-size: clamp(3.2rem, 12vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    color: var(--olive);
    margin: var(--space-sm) 0 var(--space-md);
}

.hero__amp {
    font-style: italic;
    font-weight: 300;
    color: var(--terracotta);
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.hero__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--terracotta);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__figure { justify-self: center; width: min(100%, 26rem); }

/* Arch motif */
.arch {
    position: relative;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.arch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(250, 247, 241, 0.35);
    pointer-events: none;
}

.hero__figure::before {
    content: "";
    position: absolute;
}

/* offset hairline frame behind the arch */
.hero__figure, .rsvp__figure { position: relative; }

.hero__figure .arch, .rsvp__figure .arch { position: relative; z-index: 1; }

.hero__figure::after, .rsvp__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(14px, 14px);
    border: 1px solid var(--line);
    border-radius: 999px 999px var(--radius) var(--radius);
}

.hero__figure .arch { max-height: 60vh; margin-inline: auto; }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-xl); }
.section--linen { background: var(--linen); }

.section__head {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section__title {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    color: var(--olive);
    margin-top: var(--space-xs);
}

/* ---------- Detail cards ---------- */

.cards {
    display: grid;
    gap: var(--space-sm);
}

.card {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(44, 51, 37, 0.35);
}

.card__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--olive);
    margin-top: var(--space-xs);
}

.card__value span { font-size: 1rem; }

.card__sub { color: var(--muted); margin-top: 2px; }

/* ---------- Map ---------- */

.map {
    margin-top: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Story ---------- */

.story__grid {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.story__figure {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: 0 30px 60px -40px rgba(44, 51, 37, 0.45);
}

.story__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 340;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
    color: var(--olive);
    margin: var(--space-sm) 0 var(--space-md);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--terracotta);
}

.story__copy p + p { margin-top: var(--space-sm); }

.story__sign {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--terracotta);
}

/* ---------- Playlist ---------- */

.playlist__inner {
    max-width: 38rem;
    margin-inline: auto;
    text-align: center;
}

.playlist__inner .section__title { margin-top: var(--space-xs); }

.playlist__copy {
    color: var(--muted);
    margin-top: var(--space-sm);
}

.playlist__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin-top: var(--space-md);
}

.playlist__icon { flex-shrink: 0; }

.playlist__embed {
    width: 100%;
    margin-top: var(--space-md);
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 1px 0 var(--line);
}

/* ---------- RSVP ---------- */

.rsvp {
    background: var(--olive);
    color: var(--ivory);
}

.rsvp__grid {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.rsvp__figure { justify-self: center; width: min(100%, 20rem); }
.rsvp__figure::after { border-color: var(--line-light); }

.rsvp__copy { text-align: center; }

.rsvp__title {
    font-family: var(--font-display);
    font-weight: 340;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: var(--space-xs) 0 var(--space-sm);
}

.rsvp__copy p {
    color: rgba(250, 247, 241, 0.78);
    max-width: 42ch;
    margin: 0 auto var(--space-md);
}

.rsvp__copy strong { color: var(--ivory); font-weight: 500; }

/* ---------- Footer ---------- */

.footer {
    background: var(--olive-deep);
    color: rgba(250, 247, 241, 0.65);
    text-align: center;
    padding-block: var(--space-lg);
}

.footer__names {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 380;
    color: var(--ivory);
}

.footer__names span {
    font-style: italic;
    color: var(--terracotta);
}

.footer__meta {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

.footer__credits {
    font-size: 0.8rem;
    margin-top: var(--space-md);
    opacity: 0.7;
}

.footer__credits a { text-decoration: underline; text-underline-offset: 3px; }
.footer__credits a:hover { color: var(--ivory); }

/* ============================================================
   Tablet
   ============================================================ */

@media (min-width: 640px) {
    .cards { grid-template-columns: repeat(3, 1fr); }

    .map { aspect-ratio: 16 / 9; }

    .hero__figure .arch { max-height: none; }
}

/* ============================================================
   Desktop
   ============================================================ */

@media (min-width: 1024px) {
    .nav__links {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }

    .nav__toggle, .nav__menu { display: none; }

    .hero__grid { grid-template-columns: 1.15fr 0.85fr; }

    .story__grid { grid-template-columns: 1.1fr 0.9fr; }

    .rsvp__grid { grid-template-columns: 0.8fr 1.2fr; }
    .rsvp__copy { text-align: left; }
    .rsvp__copy p { margin-inline: 0; }
}

/* ---------- Reduced motion ---------- */

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