* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --cream:#f6f0e4;       /* overall background */
  --cream-2:#efe8d8;
  --sage:#7d8a6f;        /* main accent */
  --sage-dark:#5c6a4f;   /* headings */
  --ink:#4a4d40;         /* body text */
  --muted:#8a8a7a;
  --line:#ddd6c4;
}
html, body { background:var(--cream); color:var(--ink); font-family:'Cormorant Garamond',serif; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
.hidden { display:none !important; }
@font-face {
    font-family: 'Vrdznagir';
    src: url('assets/fonts/Vrdznagir.woff2') format('woff2'),
         url('assets/fonts/Vrdznagir.woff') format('woff'),
         url('assets/fonts/Vrdznagir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ArmAllegroU';
    src: url('fonts/ArmAllegroU.ttf') format('truetype');
}

@font-face {
    font-family: 'SHK Dzeragir';
    src: url('fonts/SHK_Dzeragir.otf') format('opentype');
}
/* ===== ENVELOPE ===== */
.envelope { position:fixed; inset:0; z-index:50;  overflow:hidden; }
.envelope::before{ content:""; position:absolute; inset:0;
  background:radial-gradient(ellipse at center, #faf5ea 0%, #ece3d2 100%); z-index:0; }
  .envelope.opening::before {
        background: transparent;
  }
.env-top, .env-bottom, .env-left, .env-right {
  position:absolute; inset:0;
  transition:transform 1.4s cubic-bezier(.7,0,.25,1), opacity 1.2s ease; z-index:2;
  box-shadow: inset 0 0 60px rgba(92,106,79,.08);
}
.env-hint {
       margin-top: 83px;
    font-size: 13px;
    letter-spacing: 3px;
    color: mintcream;
    line-height: 1.8;
    text-transform: lowercase;
    z-index: 9899;
    position: fixed;
    top: 50%;
    left: 19%;
}

.env-top    { clip-path: polygon(0 0, 100% 0, 50% 50%); background:#95a386; }
.env-bottom { clip-path: polygon(0 100%, 100% 100%, 50% 50%); background:#95a386; }
.env-left   { clip-path: polygon(0 0, 0 100%, 50% 50%);
  background:#95a386; box-shadow: inset -2px 0 6px rgba(92,106,79,.06); }
.env-right  { clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background:#95a386; box-shadow: inset 2px 0 6px rgba(92,106,79,.06); }
.env-seams{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.env-seams::before, .env-seams::after{ content:""; position:absolute; left:50%; top:50%;
  width:150vmax; height:1px; background:rgba(92,106,79,.08); transform-origin:center; }
.env-seams::before{ transform:translate(-50%,-50%) rotate(45deg); }
.env-seams::after { transform:translate(-50%,-50%) rotate(-45deg); }
.env-content { position:absolute; inset:0; z-index:4;
  display:flex; align-items:center; justify-content:center; padding:20px; transition:opacity .6s ease; }
.seal-btn { background:none; border:none; cursor:pointer; padding:0;
  animation:floaty 4s ease-in-out infinite; filter: drop-shadow(0 14px 26px rgba(92,106,79,.28)); }
.seal-img { width:210px; height:210px; object-fit:contain; }
@keyframes floaty { 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-6px);} }
.envelope.opening .env-top    { transform:translateY(-100%); }
.envelope.opening .env-bottom { transform:translateY(100%); }
.envelope.opening .env-left   { transform:translateX(-100%); opacity:0; }
.envelope.opening .env-right  { transform:translateX(100%); opacity:0; }
.envelope.opening .env-content{ opacity:0; }
.envelope.opening .env-seams  { opacity:0; transition:opacity .4s; }
.envelope.gone { display:none; }

/* ===== INVITATION ===== */
.invitation { background:var(--cream); color:var(--ink); animation:fadeIn .8s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* HERO */
.hero { position:relative; width:100%; height:100vh; min-height:600px; overflow:hidden; }
.hero-img { position:absolute; inset:0; background-size:cover; background-position:center;
  filter:sepia(.18) saturate(.7) contrast(1.02); }
.hero-overlay { position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(60,66,48,.12) 0%, rgba(60,66,48,.1) 40%, rgba(46,52,38,.82) 100%); }
.hero-bottom { position:absolute; bottom:0; left:0; right:0; padding:40px 24px 54px; text-align:center; color:#f6f0e4; }
.hero-eyebrow { font-size:12px; letter-spacing:6px; opacity:.9; margin-bottom:10px; font-weight:500; }
.hero-names {     font-family: 'SHK Dzeragir'; font-weight:400; font-size:58px; line-height:1.05; letter-spacing:1px; color:#f6f0e4; }
.hero-names .amp {   font-size:64px; margin:0 4px; color:#d9d3b8; }
.hero-date { margin-top:14px; font-size:20px; letter-spacing:8px; font-weight:400; opacity:.95; }

/* SECTIONS */
.section { padding:78px 28px; text-align:center; max-width:600px; margin:0 auto; }
.section-eyebrow { font-size:12px; letter-spacing:5px; color:var(--sage); margin-bottom:12px; font-weight:600; }
.section-title { font-weight:500; font-size:38px; margin-bottom:34px; letter-spacing:1px; color:var(--sage-dark); }
.ornament { font-size:18px; color:var(--sage); margin:16px auto; }

/* BLESSING */
.blessing-text { font-style:italic; font-weight:400; font-size:24px; line-height:1.7; color:var(--sage-dark); margin:24px 0 36px; }
.invite-text { font-size:18px; line-height:1.85; color:var(--ink); font-weight:400; }

/* COUNTDOWN */
.countdown-section { position:relative; width:100%; height:88vh; min-height:540px; overflow:hidden; }
.cd-img { position:absolute; inset:0; background-size:cover; background-position:center; filter:sepia(.2) saturate(.7); }
.cd-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(46,52,38,.25), rgba(46,52,38,.6)); }
.cd-content { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  padding:0 16px 64px; color:#f6f0e4; text-align:center; }
.cd-title { font-family:'Pinyon Script',cursive; font-size:44px; margin-bottom:30px; color:#f6f0e4; }
.cd-grid { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; max-width:480px; }
.cd-cell { display:flex; flex-direction:column; align-items:center; flex:1; }
.cd-num { font-weight:500; font-size:42px; line-height:1; color:#f6f0e4; }
.cd-label { font-size:11px; letter-spacing:3px; margin-top:8px; color:#e2dcc8; }
.cd-sep { color:rgba(246,240,228,.5); font-weight:300; font-size:30px; padding-bottom:18px; }

/* CALENDAR */
.calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; max-width:360px; margin:0 auto; }
.cal-h { font-size:12px; letter-spacing:2px; color:var(--sage); padding:8px 0; text-transform:uppercase; font-weight:600; }
.cal-d { padding:10px 0; font-size:18px; color:var(--ink); position:relative; aspect-ratio:1; display:flex; align-items:center; justify-content:center; }
.cal-d.empty { color:transparent; }
.cal-d.highlight::before { content:""; position:absolute; inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237d8a6f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M16 27 S4 19 4 11 a6 6 0 0 1 12 -2 a6 6 0 0 1 12 2 c0 8 -12 16 -12 16 z'/></svg>");
  background-repeat:no-repeat; background-position:center; background-size:112% 112%; z-index:0; }
.cal-d.highlight span { position:relative; z-index:1; color:var(--sage-dark); font-weight:600; font-size:17px; transform:translateY(1px); }

/* VENUE */

.venue-card { text-align:center; }
.venue-photo { width:500px; height: 500px;  background-size: contain;
    background-position: center;
    background-repeat: no-repeat; background-position:center;
  border-radius:2px; margin-bottom:18px;  }
.venue-kicker { font-size:10px; letter-spacing:3px; color:var(--sage); font-weight:600; margin-bottom:6px; }
.venue-name { font-weight:500; font-size:24px; color:var(--sage-dark); margin-bottom:6px; }
.venue-addr { font-size:15px; color:var(--ink); margin-bottom:4px; }
.venue-time { font-size:25px; letter-spacing:2px; color:var(--muted); }

/* TIMELINE */
.timeline { list-style:none; max-width:420px; margin:0 auto; text-align:left; }
.timeline li { display:flex; gap:24px; padding:18px 0; border-bottom:1px solid var(--line); }
.timeline li:last-child { border-bottom:none; }
.t-time { font-size:24px; color:var(--sage); min-width:62px; padding-top:2px; }
.t-body h3 { font-weight:600; letter-spacing:3px; font-size:16px; color:var(--sage-dark); margin-bottom:4px; }
.t-body p { font-size:15px; color:var(--ink); font-weight:400; }

/* RSVP */
.rsvp-form { max-width:380px; margin:0 auto; text-align:left; display:flex; flex-direction:column; gap:28px; }
.rsvp-field { display:flex; flex-direction:column; gap:8px; }
.rsvp-label { font-size:15px; letter-spacing:.5px; color:var(--sage-dark); font-weight:600; margin-bottom:4px; }
.rsvp-input { width:100%; padding:10px 0; border:none; border-bottom:1px solid var(--line); background:transparent;
  font-family:'Cormorant Garamond',serif; font-size:18px; color:var(--ink); outline:none; transition:border-color .2s; }
.rsvp-input:focus { border-bottom-color:var(--sage); }
.rsvp-radio { display:flex; align-items:center; gap:12px; font-size:17px; color:var(--ink); cursor:pointer; padding:6px 0; }
.rsvp-radio input[type="radio"] { appearance:none; -webkit-appearance:none; width:18px; height:18px; border:1.5px solid var(--sage);
  border-radius:50%; position:relative; cursor:pointer; flex-shrink:0; transition:border-color .2s; }
.rsvp-radio input[type="radio"]:checked::after { content:""; position:absolute; inset:3px; background:var(--sage); border-radius:50%; }
.rsvp-submit { margin-top:8px; padding:14px 24px; background:var(--sage); color:var(--cream); border:none;
  font-family:'Cormorant Garamond',serif; font-size:14px; letter-spacing:4px; cursor:pointer; transition:background .2s; font-weight:600; }
.rsvp-submit:hover { background:var(--sage-dark); }
.rsvp-thanks { margin-top:16px; text-align:center; font-style:italic; font-size:20px; color:var(--sage-dark); }

/* FOOTER */
.footer { background:var(--sage-dark); color:var(--cream); text-align:center; padding:60px 20px; }
.footer-names { font-weight:400; font-size:40px; letter-spacing:2px; }
.footer-names .amp { font-family:'Pinyon Script',cursive; font-size:46px; color:#d9d3b8; margin:0 4px; }
.footer-date { margin-top:10px; font-size:15px; letter-spacing:6px; color:#cfd2bf; }
.footer .ornament { color:#a7b094; }

/* MUSIC BUTTON */
.music-btn { position:fixed; top:18px; right:18px; z-index:100; width:46px; height:46px; border-radius:50%;
  background:rgba(124,138,111,.7); backdrop-filter:blur(6px); border:1px solid rgba(246,240,228,.25);
  color:#f6f0e4; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform .2s, background .2s; box-shadow:0 4px 14px rgba(92,106,79,.3); }
.music-btn:hover { transform:scale(1.08); background:rgba(92,106,79,.85); }
.music-btn svg { width:22px; height:22px; }
.music-btn.muted svg { opacity:.55; }
.music-btn.muted::after{ content:""; position:absolute; left:9px; right:9px; top:50%; height:2px; background:#f6f0e4; transform:rotate(-35deg); border-radius:2px; }

/* ===== KOTAYK FONT (Armenian names/headings) ===== */
@font-face { font-family:'Kotayk'; src:url('fonts/Kotayk-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Kotayk'; src:url('fonts/Kotayk-Italic.ttf') format('truetype'); font-weight:400; font-style:italic; font-display:swap; }
.hero-names, .section-title, .footer-names, .venue-name { font-family:'Kotayk','Cormorant Garamond',serif; }

@media (max-width: 480px) {
  .hero-names { font-size:46px; }
  .hero-names .amp { font-size:54px; }
  .section-title { font-size:30px; }
  .cd-num { font-size:32px; }
  .cd-sep { font-size:24px; }
  .cd-title { font-size:36px; }
  .seal-img { width:175px; height:175px; }
  .venue-grid { grid-template-columns:1fr; gap:40px; }
  .venue-photo { max-width:320px; height: 300px; margin-left:auto; margin-right:auto; }
}
.btn-map {
      padding: 10px 30px;
    border-radius: 20px;
    background: var(--cream);
    margin-top: 14px;
}
.btn-map a {
  color: var(--sage);
}