/* ============================================================
   Palette & tokens — Hyderabadi Nizami colors
   ============================================================ */
:root {
  --teal-deep:  #0b4f4a;
  --teal-dark:  #073936;
  --gold:       #c9a227;
  --gold-light: #e8cf7a;
  --ivory:      #f6efe0;
  --maroon:     #7a2e2e;
  --ink:        #241c14;

  --font-display: 'Marcellus', serif;
  --font-body:    'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  text-align: center;
  padding-left: 78px;
  padding-right: 78px;
}

/* ============================================================
   Side artwork — repeating vine & paisley border
   ============================================================ */
.side-decor {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 78px;
  background-color: var(--maroon);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 62px auto;
  z-index: 5;
}

.side-decor.left {
  left: 0;
  background-image: url("mughal-border.svg");
  border-right: 3px solid var(--gold);
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

.side-decor.right {
  right: 0;
  background-image: url("mughal-border-right.svg");
  border-left: 3px solid var(--gold);
  box-shadow: -2px 0 10px rgba(0,0,0,0.15);
}

/* ============================================================
   Header
   ============================================================ */
header {
  background: var(--maroon);
  color: var(--ivory);
  padding: 2.6rem 1.5rem 2.2rem;
  border-bottom: 3px solid var(--gold);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
}

header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.7rem;
  letter-spacing: 0.02em;
}

.header-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
  margin: 0 auto;
  max-width: 280px;
}

.header-rule span {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.header-rule i {
  font-style: normal;
  font-size: 0.9rem;
}

.subtitle {
  margin: 0.9rem 0 0;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1rem;
}

main {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 4rem;
  overflow: hidden;
}

.jali-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 1px, transparent 26px),
                     repeating-linear-gradient(-45deg, var(--gold) 0, var(--gold) 1px, transparent 1px, transparent 26px);
  opacity: 0.08;
}

main h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--maroon);
  margin: 0 0 2rem;
}

.arch-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  aspect-ratio: 5 / 5;
  margin: 0 auto;
  padding: 12px;
  background: var(--maroon);
  border: 3px solid var(--gold);
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  box-shadow: 0 22px 45px -18px rgba(7, 57, 54, 0.5);
}

.arch-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory);
}

.arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 4px 4px / 28% 28% 4px 4px;
  overflow: hidden;
  border: 2px solid var(--gold-light);
  background: var(--teal-dark);
}

.arch-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.medallion {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}

.medallion-tl { top: 110px; left: 10px; }
.medallion-tr { top: 113px; right: 10px; }
.medallion-bl { bottom: 4px; left: 4px; }
.medallion-br { bottom: 4px; right: 4px; }

.caption {
  margin-top: 1.6rem;
  color: var(--maroon);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--maroon);
  color: var(--ivory);
  padding-bottom: 1rem;
}

.footer-strip {
  position: relative;
  top: -17px;
  height: 17px;
  background-image: linear-gradient(45deg, var(--gold) 25%, transparent 25%),
                     linear-gradient(-45deg, var(--gold) 25%, transparent 25%);
  background-size: 40px 16px;
  background-repeat: repeat-x;
  background-position: center;
}

footer p {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--gold-light);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  body {
    padding-left: 34px;
    padding-right: 34px;
  }
  .side-decor { width: 34px; background-size: 30px auto; }
  .arch-frame { aspect-ratio: 3 / 4; }
}
