 :root {
      --bg: #f8f4ef;
      --bg-soft: rgba(255, 255, 255, 0.52);
      --card: rgba(255, 255, 255, 0.68);
      --text: #2f2430;
      --muted: #6f6270;
      --accent: #b88b6a;
      --accent-dark: #8d6a50;
      --line: rgba(120, 97, 84, 0.18);
      --shadow: 0 20px 60px rgba(63, 39, 30, 0.12);
      --radius: 28px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Georgia", "Times New Roman", serif;
      background:
        radial-gradient(circle at top left, rgba(212, 185, 162, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(184, 139, 106, 0.18), transparent 28%),
        linear-gradient(135deg, #fbf8f4 0%, #f6efe7 45%, #f9f5f1 100%);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .grain::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.05;
      background-image:
        linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
      background-size: 4px 4px;
      mix-blend-mode: multiply;
    }

    .floating-blur {
      position: fixed;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.34;
      pointer-events: none;
      z-index: 0;
    }

    .blur-1 {
      top: -120px;
      left: -120px;
      background: rgba(214, 183, 156, 0.55);
      animation: drift 12s ease-in-out infinite alternate;
    }

    .blur-2 {
      right: -140px;
      top: 35vh;
      background: rgba(191, 154, 122, 0.32);
      animation: drift 16s ease-in-out infinite alternate-reverse;
    }

    @keyframes drift {
      from { transform: translate(0, 0) scale(1); }
      to { transform: translate(40px, -25px) scale(1.08); }
    }

    .wrapper {
      position: relative;
      z-index: 1;
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 48px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 22px;
      padding: 14px 18px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.46);
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 30px rgba(70, 46, 34, 0.06);
    }

    .brand {
      font-size: 0.9rem;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--accent-dark);
    }

    .nav {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav a {
      text-decoration: none;
      color: var(--muted);
      font-size: 0.96rem;
      transition: 0.25s ease;
    }

    .nav a:hover {
      color: var(--accent-dark);
    }

    .hero {
      min-height: calc(100vh - 88px);
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 22px;
      align-items: stretch;
    }

    .hero-card,
    .panel,
    .countdown,
    .story-card,
    .footer-card {
      border: 1px solid var(--line);
      background: var(--card);
      backdrop-filter: blur(18px);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
    }

    .hero-card {
      padding: 56px;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }

    .hero-card::after {
      content: "";
      position: absolute;
      inset: auto -40px -40px auto;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 1px solid rgba(184, 139, 106, 0.18);
    }

    .eyebrow {
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--accent-dark);
      font-size: 0.82rem;
      margin-bottom: 22px;
    }

    h1 {
      font-size: clamp(3rem, 7vw, 6rem);
      line-height: 0.95;
      font-weight: 400;
      margin-bottom: 22px;
    }

    .subtitle {
      max-width: 640px;
      font-size: 1.12rem;
      line-height: 1.9;
      color: var(--muted);
      margin-bottom: 32px;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 34px;
    }

    .pill {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 12px 18px;
      font-size: 0.92rem;
      background: rgba(255,255,255,0.56);
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .btn {
      appearance: none;
      border: 0;
      border-radius: 999px;
      padding: 14px 22px;
      font-size: 0.96rem;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent) 0%, #d0a784 100%);
      color: white;
      box-shadow: 0 10px 24px rgba(184, 139, 106, 0.28);
    }

    .btn-secondary {
      background: rgba(255,255,255,0.72);
      color: var(--accent-dark);
      border: 1px solid var(--line);
    }

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

    .hero-side {
      display: grid;
      gap: 22px;
    }

    .panel {
      padding: 30px;
      position: relative;
      overflow: hidden;
    }

    .photo-panel {
      min-height: 420px;
      background:
        linear-gradient(rgba(60, 36, 26, 0.16), rgba(60, 36, 26, 0.22)),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
      display: flex;
      align-items: flex-end;
      color: white;
    }

    .photo-caption {
      width: 100%;
      padding: 22px;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.28));
      backdrop-filter: blur(10px);
    }

    .photo-caption p:first-child {
      font-size: 0.8rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      opacity: 0.9;
      margin-bottom: 8px;
    }

    .photo-caption h2 {
      font-size: 1.7rem;
      font-weight: 400;
      line-height: 1.2;
    }

    .countdown {
      padding: 28px;
    }

    .section-title {
      font-size: 0.86rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--accent-dark);
      margin-bottom: 18px;
    }

    .count-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .count-item {
      text-align: center;
      padding: 18px 10px;
      border-radius: 22px;
      background: rgba(255,255,255,0.68);
      border: 1px solid var(--line);
    }

    .count-item span {
      display: block;
    }

    .count-value {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      margin-bottom: 6px;
      color: var(--accent-dark);
    }

    .count-label {
      font-size: 0.82rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .content-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 22px;
    }

    .story-card {
      padding: 30px;
      min-height: 240px;
    }

    .story-card h3 {
      font-size: 1.5rem;
      font-weight: 400;
      margin-bottom: 14px;
    }

    .story-card p,
    .story-card li {
      color: var(--muted);
      line-height: 1.9;
      font-size: 1rem;
    }

    .story-card ul {
      list-style: none;
      display: grid;
      gap: 10px;
      margin-top: 8px;
    }

    .timeline {
      display: grid;
      gap: 14px;
      margin-top: 8px;
    }

    .timeline-item {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,0.54);
      border: 1px solid var(--line);
    }

    .timeline-time {
      display: block;
      color: var(--accent-dark);
      margin-bottom: 6px;
      font-size: 0.95rem;
    }

    .rsvp-form {
      margin-top: 14px;
      display: grid;
      gap: 12px;
    }

    .input,
    .textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.7);
      border-radius: 18px;
      padding: 14px 16px;
      font: inherit;
      color: var(--text);
      outline: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .textarea {
      min-height: 110px;
      resize: vertical;
    }

    .input:focus,
    .textarea:focus {
      border-color: rgba(184, 139, 106, 0.55);
      box-shadow: 0 0 0 4px rgba(184, 139, 106, 0.12);
    }

    .success-message {
      margin-top: 12px;
      font-size: 0.95rem;
      color: var(--accent-dark);
      display: none;
    }

    .footer-card {
      margin-top: 22px;
      padding: 30px;
      text-align: center;
    }

    .monogram {
      width: 74px;
      height: 74px;
      margin: 0 auto 18px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.72);
      font-size: 1.45rem;
      color: var(--accent-dark);
      letter-spacing: 0.08em;
    }

    .footer-card p {
      color: var(--muted);
      line-height: 1.8;
    }

    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.9s ease, transform 0.9s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 980px) {
      .hero,
      .content-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: auto;
      }

      .hero-card {
        padding: 42px 28px;
      }

      .photo-panel {
        min-height: 340px;
      }
    }

    @media (max-width: 680px) {
      .wrapper {
        width: min(100% - 18px, 1120px);
        padding-top: 10px;
      }

      .topbar {
        border-radius: 26px;
        padding: 16px;
        justify-content: center;
      }

      .brand {
        width: 100%;
        text-align: center;
      }

      .nav {
        gap: 12px 16px;
      }

      .count-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      h1 {
        line-height: 1.02;
      }
    }