/* ==========================================================================
   1. CSS Variables & Editorial Architecture
   ========================================================================== */
   :root {
    --bg-color: #F8F4EC;
    --primary-color: #22304A;
    --accent-color: #C86B5A;
    --text-color: #2E2E2E;
    --white: #FFFFFF;
    
    /* Physical Layered Elevations */
    --shadow-subtle: 0 2px 6px -1px rgba(34, 48, 74, 0.03), 0 6px 16px -3px rgba(34, 48, 74, 0.04);
    --shadow-soft: 0 4px 10px -2px rgba(34, 48, 74, 0.03), 0 14px 32px -6px rgba(34, 48, 74, 0.06), 0 24px 48px -10px rgba(34, 48, 74, 0.03);
    --shadow-sticker: 0 2px 4px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(34, 48, 74, 0.1), 0 24px 48px -8px rgba(34, 48, 74, 0.07);
    --shadow-featured: 0 4px 12px rgba(0, 0, 0, 0.03), 0 18px 36px -6px rgba(34, 48, 74, 0.1), 0 32px 64px -10px rgba(34, 48, 74, 0.06);
  
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
    /* Kinetic Timing tuned for Apple/Linear-grade micro-interactions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* ==========================================================================
     2. Base & Premium Cotton Paper Surface
     ========================================================================== */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    background-color: var(--bg-color);
    /* Luminous center lighting softly rolling into a warm paper tone */
    background-image: 
      radial-gradient(ellipse 75% 55% at 50% 25%, #FAF7F0 0%, #F8F4EC 65%, #F1EAE0 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    position: relative;
  }
  
  /* Layer 1: Ambient Editorial Lighting & Warm Edge Vignette */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: 
      /* Soft white top glow for paper luminosity */
      radial-gradient(ellipse 85% 40% at 50% 0%, rgba(255, 255, 255, 0.7) 0%, transparent 80%),
      /* Organic warm corner vignette */
      radial-gradient(ellipse 110% 110% at 50% 50%, transparent 55%, rgba(34, 48, 74, 0.035) 100%),
      /* Extremely soft warm accent wash at base */
      radial-gradient(circle at 50% 100%, rgba(200, 107, 90, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  
  /* Layer 2: Tactile Hot-Pressed Cotton Stationery Texture Overlay */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: 
      linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, transparent 45%, rgba(215, 205, 190, 0.12) 100%),
      linear-gradient(215deg, rgba(248, 244, 236, 0.25) 0%, transparent 50%, rgba(34, 48, 74, 0.012) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* Max Container Desktop Constraint */
  .app-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
  }
  
  .section {
    padding: 3.25rem 0;
  }
  
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
  }
  
  .image-fallback {
    background-color: #EFEADF !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .image-fallback::after {
    content: "📷";
    font-size: 1.35rem;
    opacity: 0.3;
  }
  
  /* ==========================================================================
     3. Micro Motion & Reduced Motion
     ========================================================================== */
  .fade-in {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (prefers-reduced-motion: reduce) {
    .fade-in {
      transition: opacity 0.25s ease-in-out;
      transform: none !important;
    }
    .arrow-down, .hero-photo-wrapper, .featured-photo-wrapper {
      animation: none !important;
      transition: none !important;
    }
  }
  
  /* ==========================================================================
     4. Hero Section & Optical Reading Hierarchy
     ========================================================================== */
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }
  
  .hero-header {
    margin-bottom: 1.15rem;
  }
  
  .bismillah {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--primary-color);
    opacity: 0.85;
    margin-bottom: 0.3rem;
    direction: rtl;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  
  .blessing-text {
    font-size: 0.775rem;
    color: var(--text-color);
    opacity: 0.62;
    letter-spacing: 0.06em;
    font-weight: 400;
    text-transform: uppercase;
  }
  
  /* Photo Cover Styling */
  .hero-photo-wrapper {
    position: relative;
    margin: 1.25rem 0 2rem;
    transform: rotate(-2deg);
    transition: var(--transition-bounce);
    display: inline-block;
    will-change: transform;
  }
  
  .hero-photo-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
  }
  
  .hero-photo {
    width: 285px;
    height: 370px;
    max-width: 100%;
    object-fit: cover;
    background-color: var(--white);
    padding: 10px 10px 48px 10px;
    border-radius: 2px;
    box-shadow: var(--shadow-sticker);
    display: block;
    aspect-ratio: 10 / 13;
  }
  
  .sticker-badge {
    position: absolute;
    bottom: 12px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(200, 107, 90, 0.32);
    transform: rotate(3deg);
    z-index: 2;
  }
  
  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* 1. UNDANGAN */
  .sub-heading {
    display: block;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
  }
  
  /* 2. PROSESI LAMARAN (Primary Headline) */
  .main-heading {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  
  /* 3. COUPLE NAMES (80-85% size, lighter weight) */
  .couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 1.75rem;
    position: relative;
  }
  
  .couple-names .name {
    font-family: var(--font-serif);
    font-size: 1.95rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  
  .couple-names .ampersand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    opacity: 0.85;
    line-height: 1;
    margin: 0.05rem 0;
  }
  
  /* 4. HEART ICON (~30% smaller) */
  .heart-icon {
    position: relative;
    display: inline-block;
    margin: 0 0.25rem;
    transform: translateY(1px) scale(0.7);
    opacity: 0.8;
  }
  
  .heart-icon svg {
    display: block;
  }
  
  /* 5. TANGGAL (Tertiary soft info) */
  .hero-date {
    border-top: 1px solid rgba(34, 48, 74, 0.08);
    border-bottom: 1px solid rgba(34, 48, 74, 0.08);
    padding: 0.4rem 1.5rem;
    display: inline-block;
  }
  
  .hero-date .full-date {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.68;
    font-weight: 400;
    letter-spacing: 0.035em;
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--primary-color);
    opacity: 0.48;
    transition: var(--transition-fast);
  }
  
  .scroll-indicator:hover {
    opacity: 0.88;
    transform: translateY(2px);
  }
  
  .scroll-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
  }
  
  .arrow-down {
    font-size: 0.9rem;
    animation: bounce 2.4s infinite ease-in-out;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
  }
  
  /* ==========================================================================
     5. Tactile Scrapbook Doodles
     ========================================================================== */
  .doodle {
    position: absolute;
    pointer-events: none;
    z-index: 3;
  }
  
  .tape-tape {
    width: 78px;
    height: 20px;
    background-color: rgba(248, 244, 236, 0.82);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(2px);
  }
  
  .tape-tape.top-left {
    top: -8px;
    left: -14px;
    transform: rotate(-13deg);
    border-left: 2px dashed rgba(0, 0, 0, 0.08);
    border-right: 2px dashed rgba(0, 0, 0, 0.08);
  }
  
  .tape-tape.bottom-right {
    bottom: 28px;
    left: -10px;
    transform: rotate(8deg);
    border-left: 2px dashed rgba(0, 0, 0, 0.08);
    border-right: 2px dashed rgba(0, 0, 0, 0.08);
  }
  
  .tape-tape.top-center {
    top: -9px;
    left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
    width: 86px;
    height: 22px;
    border-left: 2px dashed rgba(0, 0, 0, 0.08);
    border-right: 2px dashed rgba(0, 0, 0, 0.08);
  }
  
  .paperclip {
    top: -13px;
    right: 24px;
    width: 13px;
    height: 36px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    opacity: 0.6;
    transform: rotate(11deg);
  }
  
  /* ==========================================================================
     6. Event Detail Card & Editorial Dividers
     ========================================================================== */
  .detail-section {
    display: flex;
    justify-content: center;
  }
  
  .card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2.75rem 2rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.95);
  }
  
  .card-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 1.85rem;
    position: relative;
    letter-spacing: -0.01em;
  }
  
  .card-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0.45rem auto 0;
    border-radius: 2px;
  }
  
  .detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1.5rem;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
  }
  
  .detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .detail-value {
    font-size: 0.975rem;
    color: var(--text-color);
    font-weight: 500;
  }
  
  .detail-value.highlight {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* Refined Subtle Gradient Separator */
  .detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 48, 74, 0.08), transparent);
    width: 65%;
    margin: 0 auto;
  }
  
  .location-note {
    font-size: 0.825rem;
    color: var(--text-color);
    opacity: 0.72;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  
  /* Functional Micro Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
    min-height: 48px;
    will-change: transform, box-shadow;
  }
  
  .btn-icon {
    flex-shrink: 0;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px -2px rgba(34, 48, 74, 0.22);
  }
  
  .btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: 0 8px 20px -4px rgba(200, 107, 90, 0.35);
    transform: translateY(-1.5px);
  }
  
  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px -2px rgba(200, 107, 90, 0.22);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(34, 48, 74, 0.16);
  }
  
  .btn-secondary:hover {
    background-color: rgba(34, 48, 74, 0.03);
    border-color: rgba(34, 48, 74, 0.32);
    transform: translateY(-1px);
  }
  
  .btn-secondary:active {
    transform: translateY(0);
  }
  
  /* ==========================================================================
     7. Featured Photograph Section
     ========================================================================== */
  .featured-photo-section {
    display: flex;
    justify-content: center;
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }
  
  .featured-photo-wrapper {
    position: relative;
    max-width: 420px;
    width: 100%;
    transform: rotate(1.2deg);
    transition: var(--transition-bounce);
    margin: 0 auto;
  }
  
  .featured-photo-wrapper:hover {
    transform: rotate(0deg) scale(1.012);
  }
  
  .featured-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--white);
    padding: 14px 14px 50px 14px;
    border-radius: 2px;
    box-shadow: var(--shadow-featured);
    display: block;
  }
  
  /* ==========================================================================
     8. Closing Section
     ========================================================================== */
  .closing-section {
    text-align: center;
    padding-bottom: 4.5rem;
  }
  
  .closing-card {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .closing-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
  }
  
  .closing-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  
  .closing-names .name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .closing-names .ampersand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
  }
  
  .closing-heart {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.82;
  }
  
  /* ==========================================================================
     9. Toast Notification
     ========================================================================== */
  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.35rem;
    border-radius: 100px;
    font-size: 0.825rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(34, 48, 74, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1100;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* ==========================================================================
     10. Fluid Viewport Responsive Scaling (320px – 920px)
     ========================================================================== */
  @media (min-width: 320px) and (max-width: 359px) {
    .hero-photo {
      width: 250px;
      height: 330px;
    }
  
    .main-heading {
      font-size: 2.1rem;
    }
  
    .couple-names .name {
      font-size: 1.7rem;
    }
  
    .card {
      padding: 2.25rem 1.25rem;
    }
  }
  
  @media (min-width: 360px) and (max-width: 374px) {
    .hero-photo {
      width: 270px;
      height: 350px;
    }
  
    .main-heading {
      font-size: 2.25rem;
    }
  
    .couple-names .name {
      font-size: 1.85rem;
    }
  }
  
  @media (min-width: 375px) {
    .hero-photo {
      width: 285px;
      height: 370px;
    }
    
    .main-heading {
      font-size: 2.6rem;
    }
  
    .couple-names .name {
      font-size: 2.15rem;
    }
  }
  
  @media (min-width: 430px) {
    .hero-photo {
      width: 300px;
      height: 390px;
    }
  
    .main-heading {
      font-size: 2.85rem;
    }
  
    .couple-names .name {
      font-size: 2.3rem;
    }
  }
  
  @media (min-width: 640px) {
    .hero-photo {
      width: 315px;
      height: 410px;
    }
  
    .main-heading {
      font-size: 2.95rem;
    }
  
    .couple-names {
      flex-direction: row;
      gap: 0.55rem;
    }
  
    .couple-names .name {
      font-size: 2.4rem;
    }
  
    .closing-names .name {
      font-size: 1.45rem;
    }
  }
  
  @media (min-width: 920px) {
    .section {
      padding: 3.75rem 0;
    }
  
    .hero-photo {
      width: 325px;
      height: 420px;
    }
  
    .main-heading {
      font-size: 3.1rem;
    }
  
    .couple-names .name {
      font-size: 2.5rem;
    }
  }