@font-face{
  font-family:"DMMerab";
  src:url("dm-merab-kostava.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --black:#080807;
  --ink:#191814;
  --ivory:#f2eadf;
  --paper:#fbf7ef;
  --olive:#5c6555;
  --deep-olive:#252d22;
  --champagne:#d6c2a1;
  --muted:#7b756b;
  --line:rgba(37,45,34,.14);
  --safe-bottom:env(safe-area-inset-bottom);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  background:var(--black);
}

body{
  width:100%;
  min-height:100vh;
  margin:0 auto;
  font-family:"Inter", sans-serif;
  background:var(--black);
  color:var(--ivory);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}

body.opened{
  overflow:auto;
}

button,
input,
select{
  font-family:inherit;
}

.warm-card h2,
.story-copy h2,
.section-head h2,
.rsvp-panel h2,
.detail-card h3{
  font-family:"DMMerab", serif !important;
  font-weight:400;
}

.noise{
  position:fixed;
  inset:0;
  z-index:20;
  pointer-events:none;
  opacity:.045;
  background-image:url("https://grainy-gradients.vercel.app/noise.svg");
}

.site{
  width:100%;
  max-width:430px;
  margin:0 auto;
  min-height:100vh;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(214,194,161,.16), transparent 34%),
    linear-gradient(180deg, var(--ivory), #eee5d7);
  color:var(--ink);
}

/* INTRO */

.intro{
  position:fixed;
  inset:0;
  z-index:100;
  width:100%;
  max-width:430px;
  margin:0 auto;
  left:50%;
  transform:translateX(-50%);
  overflow:hidden;
  background:#080807;
  transition:opacity 1.25s ease, visibility 1.25s ease;
}

.intro.hide{
  opacity:0;
  visibility:hidden;
}

.intro-bg{
  position:absolute;
  inset:0;
  background:url("introo.jpg");
  background-size:cover;
  background-position:center;
  filter:grayscale(18%) contrast(1.08) brightness(.72);
  transform:scale(1.06);
  animation:slowZoom 24s ease-in-out infinite alternate;
}

.intro-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.44) 0%,
      rgba(0,0,0,.18) 32%,
      rgba(0,0,0,.10) 58%,
      rgba(0,0,0,.58) 100%
    ),
    radial-gradient(circle at center, transparent 34%, rgba(0,0,0,.42) 100%);
}

.intro-content{
  position:relative;
  z-index:3;
  min-height:calc(var(--vh, 1vh) * 100);
  padding:70px 26px calc(58px + var(--safe-bottom));
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  color:#efe7dc;
}

.intro-script{
  font-size:42px;
  font-weight:400;
  line-height:1.05;
  color:#f0e8dc;
  text-shadow:0 18px 42px rgba(0,0,0,.62);
  margin-top:6px;
}

html[lang="en"] .intro-script{
  font-family:"Cinzel", serif;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

html[lang="ka"] .intro-script{
  font-family:"DMMerab", serif;
  letter-spacing:0;
  text-transform:none;
}

.intro-couple{
  margin-top:20px;
  font-family:"Cormorant Garamond", serif;
  font-size:18px;
  letter-spacing:5px;
  color:rgba(240,232,220,.78);
}

.intro-line{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(240,232,220,.58);
}

.intro-line span{
  width:54px;
  height:1px;
  background:rgba(240,232,220,.34);
}

.intro-line i{
  font-style:normal;
  font-size:9px;
}

.intro-date{
  margin-top:14px;
  font-family:"Cormorant Garamond", serif;
  font-size:17px;
  letter-spacing:3.2px;
  font-style:italic;
  color:rgba(240,232,220,.72);
}

.intro-lang{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding-bottom:8px;
}

.intro-lang span{
  width:1px;
  height:34px;
  background:rgba(240,232,220,.28);
}

.lang-btn{
  border:none;
  background:transparent;
  color:rgba(240,232,220,.82);
  font-family:"Cormorant Garamond", serif;
  font-size:22px;
  letter-spacing:3px;
  cursor:pointer;
  padding:10px 4px;
  transition:.35s ease;
}

.lang-btn:active{
  transform:scale(.94);
}

.lang-btn:hover{
  color:#fff;
}

/* MUSIC */

.music-btn{
  position:fixed;
  right:18px;
  bottom:calc(18px + var(--safe-bottom));
  z-index:50;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(12,12,10,.34);
  backdrop-filter:blur(14px);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.music-btn span{
  line-height:1;
}

/* GLOBAL */

.section-pad{
  padding:92px 22px;
}

/* HERO */

.hero{
  position:relative;
  min-height:calc(var(--vh, 1vh) * 100);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:62px 26px calc(58px + var(--safe-bottom));
  text-align:center;
  overflow:hidden;
  color:#efe7dc;
  background:#080807;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:url("hero.jpg");
  background-size:cover;
  background-position:center center;
  filter:grayscale(14%) contrast(1.08) brightness(.72);
  transform:scale(1.06);
  animation:slowZoom 26s ease-in-out infinite alternate;
}

.hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.46) 0%,
      rgba(0,0,0,.20) 30%,
      rgba(0,0,0,.10) 58%,
      rgba(0,0,0,.60) 100%
    ),
    radial-gradient(circle at center, transparent 38%, rgba(0,0,0,.38) 100%);
}

.hero-content{
  position:relative;
  z-index:2;
  width:min(92%, 350px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.hero-names{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1;
  text-shadow:0 16px 36px rgba(0,0,0,.68);
}

.hero-names span{
  font-size:40px;
  font-weight:400;
  line-height:1;
  color:#f0e8dc;
}

html[lang="en"] .hero-names span{
  font-family:"Cinzel", serif !important;
  letter-spacing:3px;
  text-transform:uppercase;
}

html[lang="ka"] .hero-names span{
  font-family:"DMMerab", serif !important;
  letter-spacing:0;
  text-transform:none;
}

.hero-names em{
  font-family:"Cormorant Garamond", serif !important;
  font-size:22px;
  font-style:italic;
  opacity:.72;
  margin:8px 0;
  color:rgba(240,232,220,.72);
}

.hero-line{
  margin:24px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:rgba(240,232,220,.55);
  opacity:.5;
}

.hero-line span{
  width:42px;
  height:1px;
  background:rgba(240,232,220,.34);
}

.hero-line i{
  font-style:normal;
  font-size:9px;
}

.scroll-indicator{
  position:absolute;
  left:50%;
  bottom:30px;
  transform:translateX(-50%);
  width:1px;
  height:46px;
  background:rgba(239,231,220,.2);
  overflow:hidden;
}

.scroll-indicator span{
  display:block;
  width:1px;
  height:18px;
  background:rgba(239,231,220,.9);
  animation:scrollLine 2.4s ease-in-out infinite;
}

/* WARM */

.warm{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(rgba(250,245,236,.94), rgba(244,236,224,.96)),
    url("paper-texture.jpg");
  background-size:cover;
  background-position:center;
}

.warm::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(214,194,161,.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(92,101,85,.08), transparent 24%);
  pointer-events:none;
}

.warm-card{
  position:relative;
  z-index:2;
  max-width:340px;
  margin:auto;
  padding:18px 0 20px;
  text-align:center;
}

.warm-card::before,
.warm-card::after{
  content:"";
  display:block;
  width:120px;
  height:1px;
  margin:0 auto;
  background:rgba(37,45,34,.14);
}

.warm-card::before{
  margin-bottom:34px;
}

.warm-card::after{
  margin-top:34px;
}

.warm-card h2{
  font-size:44px;
  line-height:1;
  color:var(--deep-olive);
  margin-bottom:34px;
}

.warm-card p{
  max-width:300px;
  margin:0 auto;
  color:#766f66;
  font-size:15px;
  line-height:2.1;
  letter-spacing:.1px;
}

/* STORY */

.story{
  background:linear-gradient(180deg, var(--paper), #f3eadc);
  padding:92px 18px;
}

.story-media{
  width:100%;
  height:430px;
  margin:0 auto 44px;
  overflow:hidden;
  position:relative;
  box-shadow:0 34px 100px rgba(37,45,34,.16);
}

.story-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.18)),
    url("story.jpg");
  background-size:cover;
  background-position:center top;
  filter:grayscale(8%) contrast(1.02) brightness(.96);
  transform:scale(1.04);
  animation:storyZoom 18s ease-in-out infinite alternate;
}

.story-copy{
  max-width:340px;
  margin:auto;
  text-align:center;
}

.story-copy p{
  max-width:315px;
  margin:22px auto 0;
  color:var(--muted);
  line-height:1.9;
  font-size:14.5px;
}

/* DETAILS */

.details{
  background:
    radial-gradient(circle at 85% 10%, rgba(154,155,134,.18), transparent 34%),
    linear-gradient(180deg, #f1e8da, var(--ivory));
  padding-top:72px;
}

/* this removes empty heading space */
.details .section-head:empty{
  display:none;
}

.details-grid{
  max-width:360px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr;
  border-top:1px solid var(--line);
}

.detail-card{
  min-height:210px;
  padding:36px 24px;
  border-bottom:1px solid var(--line);
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:13px;
  position:relative;
  overflow:hidden;
  transition:.45s ease;
}

.detail-card::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid transparent;
  transition:.45s ease;
}

.detail-card:hover,
.detail-card:active{
  background:rgba(255,255,255,.22);
}

.detail-card:hover::before{
  border-color:rgba(214,194,161,.35);
}

.detail-card h3{
  font-size:36px;
  line-height:1;
  color:var(--deep-olive);
  position:relative;
  z-index:1;
}

.detail-time{
  font-family:"Cormorant Garamond", serif;
  font-size:28px;
  color:var(--muted);
  position:relative;
  z-index:1;
}

.map-link{
  margin-top:6px;
  color:var(--deep-olive);
  text-decoration:none;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:2.2px;
  border-bottom:1px solid rgba(37,45,34,.42);
  padding-bottom:6px;
  position:relative;
  z-index:1;
}

.dress-colors{
  display:flex;
  gap:15px;
  margin-top:8px;
  position:relative;
  z-index:1;
}

.color{
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(37,45,34,.2);
  box-shadow:0 12px 24px rgba(37,45,34,.08);
}

.color.black{ background:#11110f; }
.color.ivory{ background:#f4efe6; }
.color.olive{ background:#56614f; }

/* SECTION HEAD */

.section-head{
  max-width:340px;
  margin:0 auto 52px;
  text-align:center;
}

.section-head h2{
  font-size:38px;
  line-height:1.05;
  color:var(--deep-olive);
}

/* TIMELINE */

.timeline{
  background:var(--paper);
}

.timeline-list{
  max-width:340px;
  margin:auto;
  border-top:1px solid var(--line);
}

.timeline-list div{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:14px;
  padding:24px 0;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.timeline-list span{
  font-family:"Cormorant Garamond", serif;
  font-size:26px;
  color:var(--deep-olive);
}

.timeline-list p{
  color:var(--muted);
  font-size:14.5px;
}

/* RSVP */

.rsvp{
  background:
    linear-gradient(rgba(37,45,34,.86), rgba(37,45,34,.92));
  background-size:cover;
  background-position:center;
}

.rsvp-panel{
  max-width:360px;
  margin:auto;
  padding:56px 24px;
  text-align:center;
  background:
      linear-gradient(rgba(248,242,232,.28), rgba(244,236,224,.34)),
    url("rsvp.jpg");
  background-size:cover;
  background-position:center;
  color:var(--ink);
  box-shadow:
    0 30px 90px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.18);
  position:relative;
  overflow:hidden;
}

.rsvp-panel::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(37,45,34,.12);
  pointer-events:none;
}

.rsvp-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.28), transparent 34%);
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.rsvp-panel form,
.rsvp-panel h2,
.rsvp-note,
.success{
  position:relative;
  z-index:1;
}

.rsvp-panel h2{
  font-size:38px;
  line-height:1.05;
  color:var(--deep-olive);
}

.rsvp-note{
  max-width:290px;
  margin:16px auto 0;
  color:var(--muted);
  line-height:1.7;
  font-size:14px;
}

.rsvp-panel form{
  margin-top:34px;
  display:grid;
  gap:16px;
}

.rsvp-panel input,
.rsvp-panel select{
  height:54px;
  border:none;
  border-bottom:1px solid rgba(37,45,34,.28);
  background:transparent;
  padding:0 2px;
  color:var(--ink);
  outline:none;
  font-size:14px;
}

.rsvp-panel input:focus,
.rsvp-panel select:focus{
  border-bottom-color:var(--deep-olive);
}

.rsvp-panel button{
  position:relative;
  width:fit-content;
  min-width:166px;
  height:50px;
  margin:12px auto 0;
  padding:0 30px;
  border:1px solid var(--deep-olive);
  background:transparent;
  color:var(--deep-olive);
  cursor:pointer;
  font-family:"Cormorant Garamond", serif;
  font-size:18px;
  letter-spacing:1.1px;
  overflow:hidden;
  transition:.35s ease;
  z-index:1;
}

.rsvp-panel button::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--deep-olive);
  transform:scaleX(0);
  transform-origin:left;
  transition:.35s ease;
  z-index:-1;
}

.rsvp-panel button:hover{
  color:#fff;
}

.rsvp-panel button:hover::before{
  transform:scaleX(1);
}

.success{
  display:none;
  margin-top:22px;
  color:var(--olive);
}

.success.show{
  display:block;
}

/* FOOTER */

.footer{
  padding:58px 20px calc(86px + var(--safe-bottom));
  text-align:center;
  background:var(--ivory);
  color:var(--muted);
}

.footer-text{
  display:block;
  font-size:10px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(37,45,34,.62);
}

.footer-text span{
  display:inline;
}

.footer a{
  color:var(--deep-olive);
  text-decoration:none;
  font-family:"Cormorant Garamond", serif;
  font-size:16px;
  letter-spacing:1px;
  text-transform:none;
  border-bottom:1px solid rgba(37,45,34,.35);
  padding-bottom:2px;
  transition:.3s ease;
}

.footer a:hover{
  opacity:.7;
}

.footer a:active{
  opacity:.5;
}

/* REVEAL */

.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .9s ease, transform .9s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* DESKTOP APP FRAME */

@media(min-width:431px){
  body{
    background:
      radial-gradient(circle at top, rgba(214,194,161,.12), transparent 32%),
      #050505;
  }

  .site{
    min-height:100vh;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.06),
      0 0 90px rgba(0,0,0,.72);
  }

  .intro{
    box-shadow:0 0 90px rgba(0,0,0,.72);
  }

  .music-btn{
    right:calc(50% - 196px);
  }
}

/* SMALL MOBILE */

@media(max-width:370px){
  .intro-script{
    font-size:38px;
  }

  .intro-couple{
    font-size:16px;
    letter-spacing:4px;
  }

  .hero-names span{
    font-size:36px;
  }

  .section-pad{
    padding:82px 20px;
  }

  .details{
    padding-top:64px;
  }

  .story-media{
    height:390px;
  }
}

/* ANIMATIONS */

@keyframes slowZoom{
  from{ transform:scale(1.04); }
  to{ transform:scale(1.12); }
}

@keyframes storyZoom{
  from{ transform:scale(1.04); }
  to{ transform:scale(1.12); }
}

@keyframes scrollLine{
  0%{ transform:translateY(-28px); }
  100%{ transform:translateY(60px); }
}