:root {
      --bg: #f7f1ec;
      --paper: #fffaf6;
      --paper-strong: #ffffff;
      --text: #332825;
      --muted: #7d6c66;
      --accent: #7b1e2b;
      --accent-dark: #5e1420;
      --gold: #c4a07a;
      --gold-soft: #ead9c4;
      --soft: #eee0d4;
      --sage: #8f9783;
      --line: rgba(123, 30, 43, 0.14);
      --shadow: 0 20px 60px rgba(51, 40, 37, 0.10);
      --shadow-soft: 0 12px 38px rgba(51, 40, 37, 0.07);
      --radius: 28px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Segoe UI", Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(185, 123, 133, 0.12), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(196, 160, 122, 0.12), transparent 22%),
        radial-gradient(circle at bottom right, rgba(143, 151, 131, 0.12), transparent 26%),
        var(--bg);
      color: var(--text);
      line-height: 1.6;
    }
    body.menu-open { overflow: hidden; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    .container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

    .topbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(255, 250, 246, 0.88);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .brand { font-family: Georgia, serif; font-size: 1.45rem; letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; }
    .nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.93rem; }
    .nav-links a { transition: color 0.2s ease; }
    .nav-links a:hover { color: var(--accent); }

    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      min-height: 46px; padding: 0 24px; border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: #fff; font-weight: 750; border: 0; cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
      box-shadow: 0 12px 30px rgba(123, 30, 43, 0.22);
    }
    .btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
    .btn.secondary { background: transparent; color: var(--accent); border: 1px solid rgba(123, 30, 43, 0.24); box-shadow: none; }
    .btn.small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

    .menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper-strong); box-shadow: 0 8px 22px rgba(45,37,32,.1); cursor: pointer; }
    .menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; transition: .25s ease; }
    .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
    .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { min-height: 100vh; padding: 130px 0 82px; display: flex; align-items: center; position: relative; overflow: hidden; }
    .hero::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: linear-gradient(135deg, rgba(123,30,43,.13), rgba(196,160,122,.13)); right: -200px; top: 90px; filter: blur(2px); }
    .hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(143,151,131,.10); left: -160px; bottom: 70px; }
    .hero-grid { position: relative; display: grid; grid-template-columns: 1fr .86fr; gap: 56px; align-items: center; z-index: 1; }
    .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; margin-bottom: 16px; }
    h1, h2, h3 { font-family: Georgia, serif; line-height: 1.1; font-weight: 500; }
    h1 { font-size: clamp(3.2rem, 8vw, 7rem); margin-bottom: 22px; letter-spacing: -0.05em; }
    .hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-bottom: 30px; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
    .date-card { display: inline-flex; gap: 18px; align-items: center; padding: 16px 20px; background: rgba(255,250,246,.78); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); box-shadow: var(--shadow-soft); }
    .date-card strong { color: var(--text); }
    .hero-photo { position: relative; }
    .hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(196,160,122,.55); border-radius: 46px; z-index: -1; }
    .hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 44px; box-shadow: var(--shadow); }
    .floating-card { position: absolute; left: -30px; bottom: 34px; background: rgba(255,250,246,.94); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; box-shadow: var(--shadow); max-width: 260px; }
    .floating-card strong { display: block; font-family: Georgia, serif; color: var(--accent); font-size: 1.3rem; margin-bottom: 4px; }

    section { padding: 90px 0; position: relative; }
    .section-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
    .section-head h2 { font-size: clamp(2rem, 4vw, 3.45rem); margin-bottom: 16px; letter-spacing: -0.03em; }
    .section-head p { color: var(--muted); font-size: 1.05rem; }
    .divider { width: 112px; height: 14px; margin: 18px auto 0; display: grid; place-items: center; position: relative; }
    .divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 44px; height: 1px; background: rgba(196,160,122,.75); }
    .divider::before { left: 0; } .divider::after { right: 0; }
    .divider span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(123,30,43,.08); }

    .countdown-grid, .info-grid, .abc-grid, .witness-grid, .timeline, .guest-list, .faq-list { display: grid; gap: 18px; }
    .countdown-grid { grid-template-columns: repeat(4, 1fr); }
    .info-grid, .stay-grid { grid-template-columns: repeat(4, 1fr); }
    .abc-grid { grid-template-columns: repeat(3, 1fr); }
    .witness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; text-align: center; gap: 42px; }
    .timeline { max-width: 860px; margin: 0 auto; }
    .faq-list { max-width: 880px; margin: 0 auto; gap: 14px; }
    .count-box, .info-card, .timeline-item, .abc-grid article, .faq-list details, .witness-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
    .count-box { border-radius: var(--radius); padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
    .count-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(123,30,43,.055), rgba(196,160,122,.08)); pointer-events: none; }
    .count-box span { display: block; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.2rem); color: var(--accent); line-height: 1; position: relative; }
    .count-box small { color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; position: relative; }
    .timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; border-radius: var(--radius); padding: 24px; }
    .timeline-time { color: var(--accent); font-weight: 850; font-size: 1.1rem; }
    .timeline-item p, .info-card p, .abc-grid p, .faq-list p, .witness-card p, .photo-upload p, .rsvp-text p { color: var(--muted); }
    .info-card { border-radius: var(--radius); padding: 28px; min-height: 230px; transition: transform .25s ease, box-shadow .25s ease; }
    .info-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(51,40,37,.10); }
    .info-card .icon { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--soft), #f6ebe3); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); font-size: 1.35rem; border: 1px solid rgba(196,160,122,.28); }
    .info-card h3 { font-size: 1.45rem; margin-bottom: 12px; }

    .gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; grid-auto-rows: 230px; gap: 18px; }
    .gallery-item { border: 0; padding: 0; border-radius: 30px; overflow: hidden; cursor: pointer; background: transparent; box-shadow: var(--shadow-soft); position: relative; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-row: span 2; }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
    .gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05) contrast(1.02); }

    .witness-card { border-radius: 34px; padding: 34px 28px; background: rgba(255,250,246,.68); }
    .witness-card img { width: 158px; height: 158px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 14px 34px rgba(51,40,37,.14); border: 5px solid rgba(255,255,255,.92); filter: saturate(.94); }
    .witness-card h3 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 850; font-size: 1.25rem; margin-bottom: 4px; color: var(--text); }
    .witness-card span { display: block; font-family: Georgia, serif; font-style: italic; color: var(--accent); margin-bottom: 16px; }
    .witness-card a { display: block; color: var(--accent-dark); margin: 5px 0; font-size: .95rem; }
    .witness-card p { margin-top: 18px; font-size: .95rem; }

    .photo-upload { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(135deg, rgba(123,30,43,.10), rgba(196,160,122,.14), rgba(143,151,131,.12)); border: 1px solid rgba(123,30,43,.10); border-radius: 42px; padding: 42px; box-shadow: var(--shadow); }
    .photo-upload h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
    .photo-upload p { max-width: 720px; }

    .abc-grid article { border-radius: 24px; padding: 24px; }
    .abc-grid strong { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--soft), var(--gold-soft)); color: var(--accent); margin-bottom: 14px; font-family: Georgia, serif; font-size: 1.2rem; }
    .abc-grid h3 { font-size: 1.3rem; margin-bottom: 8px; }
    .faq-list details { border-radius: 22px; padding: 20px 24px; }
    .faq-list summary { cursor: pointer; font-weight: 850; color: var(--text); }
    .faq-list p { padding-top: 12px; }

    .rsvp-wrap { display: grid; grid-template-columns: .86fr 1.14fr; gap: 34px; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 42px; padding: 28px; box-shadow: var(--shadow); }
    .rsvp-text { background: linear-gradient(135deg, rgba(123,30,43,.12), rgba(196,160,122,.16), rgba(143,151,131,.10)); border-radius: 32px; padding: 34px; display: flex; flex-direction: column; justify-content: center; }
    .rsvp-text h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
    form { padding: 8px; display: grid; gap: 16px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    label { display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
    input, select, textarea { width: 100%; border: 1px solid rgba(123,30,43,.18); border-radius: 18px; background: #fff; padding: 14px 16px; color: var(--text); outline: none; }
    input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(123,30,43,.10); }
    textarea { min-height: 116px; resize: vertical; }

    .guest-list { gap: 0; }
    .guest-list-wrap { background: rgba(238,224,212,.36); border: 1px solid rgba(123,30,43,.10); border-radius: 22px; overflow: hidden; }
    .guest-list-header { display: grid; grid-template-columns: 1fr 190px 64px; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.28); border-bottom: 1px solid rgba(123,30,43,.10); color: var(--muted); font-size: .9rem; font-weight: 600; }
    .guest-card { display: grid; grid-template-columns: 1fr 190px 64px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(123,30,43,.10); }
    .guest-card:last-child { border-bottom: 0; }
    .guest-card label { display: block; }
    .guest-card label > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .remove-guest { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(123,30,43,.18); background: rgba(255,255,255,.86); color: var(--accent); cursor: pointer; font-weight: 800; font-size: 1.15rem; line-height: 1; justify-self: end; }
    .remove-guest:disabled { opacity: .38; cursor: not-allowed; }
    .form-note { color: var(--muted); font-size: .9rem; }
    .success-message { display: none; padding: 16px 18px; border-radius: 18px; background: #eef7ef; color: #315f36; font-weight: 750; }

    .lightbox { position: fixed; inset: 0; background: rgba(18,14,12,.82); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
    .lightbox.open { display: flex; }
    .lightbox img { max-width: min(1000px, 92vw); max-height: 84vh; object-fit: contain; border-radius: 28px; box-shadow: var(--shadow); }
    .lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 1.8rem; cursor: pointer; background: #fff; color: var(--text); }

    .fade-up { opacity: 1; transform: translateY(0); transition: opacity .75s ease, transform .75s ease; }
    .js-ready .fade-up { opacity: 0; transform: translateY(28px); }
    .js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }
    footer { padding: 42px 0; text-align: center; color: var(--muted); }

    @media (max-width: 1060px) { .nav-links { gap: 12px; font-size: .87rem; } }
    @media (max-width: 900px) {
      .menu-btn { display: block; }
      .nav-links { position: fixed; top: 76px; left: 16px; right: 16px; display: grid; gap: 8px; padding: 18px; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .25s ease; }
      .menu-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
      .nav-links a, .nav-links .btn { width: 100%; justify-content: center; padding: 13px 16px; }
      .hero-grid, .rsvp-wrap { grid-template-columns: 1fr; }
      .floating-card { left: 16px; }
      .countdown-grid, .info-grid, .stay-grid, .abc-grid { grid-template-columns: repeat(2, 1fr); }
      .witness-grid { gap: 24px; }
      .photo-upload { align-items: flex-start; flex-direction: column; }
      .gallery-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .container { width: min(100% - 22px, 1120px); }
      .brand { font-size: 1.15rem; }
      .hero { padding-top: 112px; }
      .date-card { align-items: flex-start; border-radius: 22px; flex-direction: column; gap: 6px; }
      section { padding: 64px 0; }
      .countdown-grid, .info-grid, .stay-grid, .gallery-grid, .form-row, .witness-grid, .abc-grid { grid-template-columns: 1fr; }
      .guest-list-header { display: none; }
      .guest-card { grid-template-columns: 1fr; gap: 10px; }
      .guest-card label > span { position: static; width: auto; height: auto; margin: 0 0 6px 0; overflow: visible; clip: auto; white-space: normal; display: block; color: var(--muted); font-size: .9rem; }
      .remove-guest { justify-self: start; }
      .photo-upload { padding: 28px; border-radius: 30px; }
      .gallery-grid { grid-auto-rows: 240px; }
      .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-row: span 1; }
      .timeline-item { grid-template-columns: 1fr; gap: 8px; }
      .rsvp-wrap { padding: 16px; border-radius: 30px; }
      .rsvp-text { padding: 26px; }
    }
