:root {
    --cream: #f7f2e6;
    --cream-deep: #efe4cd;
    --ink: #3a3226;
    --ink-soft: #6b6055;
    --olive-dark: #55622f;
    --olive-deep: #414c22;
    --olive-line: #3f4a24;
    --olive-tint: #eef1e2;
    --serif: 'Neucha', cursive;
    --sans: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    margin: 0;
}

/* Full-width page — each band stretches edge to edge, content centered inside */

.page-frame {
    position: relative;
}

.band {
    position: relative;
    padding: 56px 24px;
    text-align: center;
}

.band-inner {
    max-width: 640px;
    margin: 0 auto;
}

.band-cream { background: var(--cream); }
.band-olive { background: var(--olive-dark); color: var(--cream); }

/* Torn paper divider between bands */

.torn-top {
    display: block;
    width: 100%;
    height: 30px;
    margin-top: -30px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    line-height: 0;
}

.torn-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.torn-top svg path {
    fill: currentColor;
}

/* Doodle hearts scattered in hero */

.doodle-heart {
    position: absolute;
    color: var(--olive-dark);
    font-size: 1.6rem;
    opacity: 0.85;
}

.h1 { top: 18px; left: 14%; transform: rotate(-14deg); font-size: 1.3rem; }
.h2 { top: 60px; left: 32%; transform: rotate(8deg); font-size: 2rem; }
.h3 { top: 30px; right: 16%; transform: rotate(10deg); }
.h4 { top: 76px; right: 30%; transform: rotate(-8deg); font-size: 1.2rem; }

/* Hero */

.hero-band {
    padding-top: 96px;
}

.script-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin: 0 0 8px;
}

.script-h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 13vw, 4.2rem);
    line-height: 1.05;
    color: var(--olive-deep);
    margin-bottom: 32px;
}

.script-h2 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 9vw, 3rem);
    color: var(--olive-deep);
    margin-bottom: 24px;
}

.script-h2.on-olive {
    color: var(--cream);
}

.script-h3 {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--olive-deep);
    margin: 0 0 8px;
}

.couple-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 28px;
}

.cutout {
    position: relative;
    margin: 0;
}

.cutout img {
    width: clamp(120px, 34vw, 180px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid var(--cream);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cutout:first-child img { transform: rotate(-4deg); }
.cutout:last-child img { transform: rotate(4deg); }

.cutout-tag {
    position: absolute;
    top: -34px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--olive-dark);
    z-index: 2;
    white-space: nowrap;
}

.tag-groom {
    left: 4px;
    transform: rotate(-6deg);
}

.tag-bride {
    right: 4px;
    transform: rotate(6deg);
}

.ribbon {
    display: inline-block;
    background: var(--olive-dark);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.6rem;
    padding: 8px 32px;
    border-radius: 4px;
    margin-bottom: 32px;
    transform: rotate(-1deg);
}

.asked {
    max-width: 380px;
    margin: 0 auto;
}

.asked-text {
    color: var(--ink-soft);
    font-size: 1rem;
}

/* Olive greeting + calendar */

.invite-text {
    font-size: 1.1rem;
    max-width: 420px;
    margin: 0 auto 36px;
}

.calendar-strip {
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    padding: 24px 20px;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--serif);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--cream-deep);
    padding-bottom: 10px;
}

.calendar-month {
    font-size: 1.8rem;
    color: var(--olive-deep);
}

.calendar-year {
    font-size: 1.4rem;
    color: var(--ink-soft);
}

.calendar-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.calendar-days {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.calendar-dates {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ink);
}

.calendar-circled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 3px solid var(--olive-dark);
    border-radius: 50%;
    color: var(--olive-deep);
    transform: rotate(-4deg);
}

/* Countdown */

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 4vw, 20px);
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.countdown-unit {
    background: var(--olive-tint);
    border-radius: 12px;
    padding: 16px clamp(12px, 4vw, 20px);
    min-width: 74px;
}

.countdown-value {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--olive-deep);
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-top: 2px;
}

.equation {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--olive-deep);
}

.equation span {
    color: var(--ink-soft);
}

.equation-heart {
    color: var(--olive-dark) !important;
}

/* Venue */

.venue-line {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.map-frame {
    background: var(--cream);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    margin: 0 auto 24px;
    transform: rotate(-1.5deg);
}

.map-frame iframe {
    width: 100%;
    height: 260px;
    display: block;
    border: 0;
    border-radius: 4px;
}

/* Schedule timeline */

.schedule-band {
    padding-bottom: 40px;
}

.schedule-note {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--olive-dark);
    opacity: 0.25;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timeline-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--olive-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 6px;
}

.timeline-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-time {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--olive-deep);
    line-height: 1.1;
}

.timeline-text {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* Dress code (olive band) */

.dresscode-text-olive {
    max-width: 420px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}

.dresscode-palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.dresscode-palette span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Gift */

.gift-text-new {
    max-width: 420px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

/* RSVP */

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    background: var(--cream);
    color: var(--ink);
    padding: 28px clamp(20px, 5vw, 32px);
    border-radius: 14px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--cream-deep);
    background: var(--cream);
    color: var(--ink);
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--olive-dark);
}

.rsvp-thanks {
    margin-top: 20px;
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--cream);
}

/* Buttons */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 13px 36px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-cream {
    background: var(--cream);
    color: var(--olive-deep);
}

/* Footer */

.footer {
    text-align: center;
    padding: 36px 24px 44px;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--ink-soft);
    background: var(--cream);
}

@media (max-width: 480px) {
    .band {
        padding: 44px 20px;
    }
    .hero-band {
        padding-top: 72px;
    }
}
