@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Cinzel:wght@400;600&family=Cormorant+Garamond:wght@400;500;600&family=Great+Vibes&family=Nunito:wght@300;400;600&display=swap');

@font-face {
  font-family: 'Uthmanic Hafs';
  src: url('assets/fonts/UthmanicHafs1-Ver09.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Holy Type';
  src: url('assets/fonts/HolyType.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f2ed;
  --bg-deep: #efe4da;
  --ink: #5C3120;
  --muted: #6c5c50;
  --accent: #c76d4d;
  --accent-soft: rgba(199, 109, 77, 0.15);
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 60px rgba(33, 24, 16, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg) 0%, var(--bg-deep) 70%);
  min-height: 100vh;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 48px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  background: url('assets/bg.pdf') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(247, 242, 237, 0.32) 60%,
    rgba(239, 228, 218, 0.48) 100%
  );
  z-index: 0;
}

.details {
  flex-direction: column;
  align-items: stretch;
  background: url('assets/bg.pdf') center/cover no-repeat;
}

.details > :not(.grain) {
  position: relative;
  z-index: 2;
}

.details::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(247, 242, 237, 0.32) 60%,
    rgba(239, 228, 218, 0.48) 100%
  );
  z-index: 0;
}

.details::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  backdrop-filter: none;
  background: transparent;
  z-index: 0;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="220" height="220" filter="url(%23n)" opacity="0.06"/></svg>');
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

.card {
  position: relative;
  background: transparent;
  padding: 60px 56px;
  border-radius: 28px;
  max-width: 680px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  animation: floatIn 0.9s ease-out;
}

.intro {
  z-index: 2;
  background: transparent;
}

.hero .card {
  backdrop-filter: none;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 14px;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin: 0 0 12px;
}

.script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 400;
}

.caps {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin: 0;
}

.forever {
  font-family: 'Holy Type', 'Great Vibes', cursive;
  font-size: clamp(9.3rem, 22.5vw, 16.2rem);
  font-weight: 400;
  margin: -162px 0 4px;
  line-height: 1.05;
}

@media (max-width: 600px) {
  .forever {
    font-size: clamp(5.2rem, 18vw, 9.5rem);
    margin: -36px 0 8px;
  }
}

.forever.new-line {
  display: block;
}

.names-script {
  font-family: 'Holy Type', 'Great Vibes', cursive;
  font-size: clamp(5.2rem, 10vw, 8.8rem);
  font-weight: 400;
}

.hero .names-script {
  transform: translateY(-44px);
}

@media (max-width: 600px) {
  .hero .names-script {
    transform: translateY(-30px);
  }
}

.name-separator {
  width: 72px;
  height: 1px;
  background: rgba(43, 36, 29, 0.4);
  margin: 14px auto 18px;
}


.arabic {
  font-family: 'Amiri Quran', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  direction: rtl;
  text-align: center;
  color: var(--ink);
  margin: 10px 0;
}

.arabic.big {
  font-size: 1.6rem;
  font-weight: 600;
}

.bismillah {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.arabic.small {
  font-size: 1rem;
  color: var(--muted);
}

.amp {
  color: var(--accent);
  font-weight: 500;
}

.subtitle {
  font-size: 1.2rem;
  margin: 0 0 28px;
}

.divider {
  width: 72px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto 24px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(199, 109, 77, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(199, 109, 77, 0.35);
}

.note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-text {
  transform: translateY(-88px);
}

@media (max-width: 600px) {
  .intro-text {
    transform: translateY(-56px);
  }
}

.cta-block {
  transform: translateY(88px);
}

@media (max-width: 600px) {
  .cta-block {
    transform: translateY(56px);
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 6px 34px;
}

.back {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: transparent;
  padding: 28px;
  border-radius: 0;
  box-shadow: none;
  animation: fadeUp 0.9s ease-out both;
}

.panel.lift-up {
  margin-top: -116px;
}

@media (max-width: 600px) {
  .panel.lift-up {
    margin-top: -76px;
  }
}

.panel:nth-child(2) {
  animation-delay: 0.1s;
}

.panel:nth-child(3) {
  animation-delay: 0.2s;
}

.detail {
  font-size: 1.02rem;
  margin: 8px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.countdown div {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
}

.countdown span {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.countdown small {
  color: var(--muted);
  font-size: 0.8rem;
}

.link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.map-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
}

.rsvp .btn {
  margin-top: 14px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .card {
    padding: 42px 28px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

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