:root {
    --ink: #ffffff;
    --ink-soft: #f4f1ea;
    --ink-mute: #e0dcd2;
    --cream: #f7f2ea;
    --cream-deep: #efe7db;
    --dark: #2a2622;
    --dark-deep: #211d19;
    --brown: #4a4038;
    --brown-soft: #6f6357;
    --gold: #b79a6a;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    color: var(--brown);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: linear-gradient(180deg, rgba(20,18,14,0.45), rgba(20,18,14,0));
    mix-blend-mode: normal;
}
.nav__brand {
    font-family: 'Pinyon Script', cursive;
    font-size: 30px;
    color: var(--ink);
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.nav__links {
    display: flex;
    gap: 26px;
}
.nav__links a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.55) 100%),
        linear-gradient(180deg, rgba(20,18,14,0.15), rgba(20,18,14,0.45)),
        url("photo.jpg");
    background-size: cover, cover, cover;
    background-position: center, center, center 30%;
    background-repeat: no-repeat;
    color: var(--ink);
    overflow: hidden;
}
.hero__scrim {
    position: absolute; left: 0; right: 0;
    pointer-events: none; z-index: 2;
}
.hero__scrim--top {
    top: 0; height: 45%;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}
.hero__scrim--bottom {
    bottom: 0; height: 50%;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%);
}
.hero__grain {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.5;
}
.hero__content {
    position: relative;
    z-index: 4;
    padding: 0 24px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45);
}
.hero__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: var(--ink);
}
.hero__names {
    font-family: 'Pinyon Script', 'Allura', cursive;
    font-weight: 400;
    font-size: 84px;
    line-height: 1;
    margin: 0;
}
.hero__amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 54px;
    display: inline-block;
    margin: 0 6px;
    color: var(--ink-soft);
}
.hero__date {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin: 26px 0 10px;
    font-family: 'Cormorant Garamond', serif;
}
.hero__day, .hero__year {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.hero__month {
    font-family: 'Pinyon Script', 'Allura', cursive;
    font-size: 46px;
    color: var(--ink-soft);
}
.hero__sep {
    font-size: 14px;
    color: var(--gold);
    transform: translateY(-6px);
}
.hero__location {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 19px;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    margin: 8px 0 0;
}
.hero__scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 26px; height: 42px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute;
    top: 8px; left: 50%;
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Sections ---------- */
.section {
    padding: 110px 24px;
}
.section--cream {
    background: var(--cream);
    color: var(--brown);
}
.section--dark {
    position: relative;
    background: var(--dark);
    color: var(--ink);
}
.section--tone {
    background: var(--cream-deep);
    color: var(--brown);
}
.section--dark::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.6;
    pointer-events: none;
}
.wrap {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.wrap--narrow { max-width: 620px; }
.center { text-align: center; }

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 4px;
}
.eyebrow--light { color: var(--gold); }

.rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 120px;
    margin: 16px auto 22px;
}
.rule::before, .rule::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(183,154,106,0.8), transparent);
}
.rule .dot {
    width: 5px; height: 5px;
    transform: rotate(45deg);
    background: var(--gold);
}

.display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    margin: 6px 0 22px;
    color: var(--ink);
}
.display--ink { color: var(--brown); }

.lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-style: italic;
    line-height: 1.6;
    color: var(--brown-soft);
    margin: 0 auto;
    max-width: 620px;
}
.lead--light { color: var(--ink-soft); }

.signature {
    font-family: 'Pinyon Script', 'Allura', cursive;
    font-size: 40px;
    color: var(--brown);
    margin: 28px 0 0;
}

/* ---------- Countdown ---------- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 42px;
    margin: 40px 0 0;
}
.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown__num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 60px;
    line-height: 1;
    color: var(--ink);
}
.countdown__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 10px;
}

/* ---------- Timeline ---------- */
.schedule {
    max-width: 560px;
    margin: 20px auto 0;
}
.schedule__day {
    margin-top: 48px;
}
.schedule__day:first-child {
    margin-top: 28px;
}
.schedule__daytitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 32px;
    color: var(--brown);
    text-align: center;
    margin: 0 0 4px;
}
.schedule__daysub {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin: 0 0 6px;
}
.schedule__note {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    color: var(--brown-soft);
    text-align: center;
    margin: 12px 0 0;
}
.timeline {
    list-style: none;
    padding: 0;
    margin: 12px auto 0;
    max-width: 520px;
    text-align: left;
}
.timeline__item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 4px 24px;
    padding: 22px 0;
    border-top: 1px solid rgba(74,64,56,0.16);
}
.timeline__item:last-child { border-bottom: 1px solid rgba(74,64,56,0.16); }
.timeline__time {
    grid-row: span 2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    color: var(--gold);
    align-self: center;
}
.timeline__title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brown);
}
.timeline__desc {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--brown-soft);
}

/* ---------- Info cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}
.info-card {
    background: var(--cream-deep);
    border: 1px solid rgba(74,64,56,0.12);
    padding: 30px 26px;
}
.info-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 26px;
    margin: 0 0 12px;
    color: var(--brown);
}
.info-card__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.55;
    color: var(--brown-soft);
    margin: 0;
}
.info-card__text + .info-card__text { margin-top: 12px; }
.info-card__list {
    list-style: none;
    margin: 14px 0;
    padding: 0;
}
.info-card__list li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--brown-soft);
    padding: 8px 0 8px 18px;
    position: relative;
    border-top: 1px solid rgba(74,64,56,0.12);
}
.info-card__list li:first-child { border-top: none; }
.info-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--gold);
}

.location-figure {
    margin: 40px auto 0;
    max-width: 760px;
}
.location-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(183,154,106,0.35);
    box-shadow: 0 30px 60px -24px rgba(0,0,0,0.7);
}

.location-detail {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    margin: 26px 0 0;
}

/* ---------- Dresscode ---------- */
.dress {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.dress__card {
    background: var(--cream);
    border: 1px solid rgba(74,64,56,0.12);
    padding: 34px 30px;
    text-align: center;
}
.dress__day {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 28px;
    color: var(--brown);
    margin: 0;
}
.dress__code {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 8px 0 24px;
}
.dress__lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    text-align: left;
    border-top: 1px solid rgba(74,64,56,0.12);
    padding-top: 22px;
}
.dress__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brown);
    margin: 0 0 12px;
}
.dress__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dress__list li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.4;
    color: var(--brown-soft);
    padding: 6px 0 6px 22px;
    position: relative;
}
.dress__list li::before {
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}
.dress__list--do li::before {
    content: "\2713";
    color: #6f8f6a;
}
.dress__list--dont li::before {
    content: "\2715";
    color: #b57a68;
}

/* ---------- Button ---------- */
.btn {
    display: inline-block;
    margin-top: 32px;
    padding: 15px 44px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--gold);
    transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover {
    background: var(--gold);
    color: var(--dark-deep);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-deep);
    color: var(--ink-soft);
    text-align: center;
    padding: 64px 24px;
}
.footer__monogram {
    font-family: 'Pinyon Script', cursive;
    font-size: 46px;
    color: var(--gold);
    margin: 0 0 10px;
}
.footer__names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}
.footer__meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav { padding: 14px 18px; }
    .nav__links { display: none; }
    .hero__names { font-size: 52px; }
    .hero__amp { font-size: 34px; }
    .hero__month { font-size: 34px; }
    .hero__day, .hero__year { font-size: 24px; }
    .section { padding: 76px 20px; }
    .display { font-size: 34px; }
    .lead { font-size: 18px; }
    .countdown { gap: 26px; }
    .countdown__num { font-size: 44px; }
    .cards { grid-template-columns: 1fr; }
    .dress { grid-template-columns: 1fr; }
    .timeline__item { grid-template-columns: 70px 1fr; }
    .timeline__time { font-size: 24px; }
}
