@font-face {
  font-family: "Noto Serif Devanagari";
  src: url("assets/fonts/NotoSerifDevanagari.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* The leaf, folio and event pages use the same ink as the painted rose borders. */
:root {
  --wine: #592a36;
  --leaf: #4e5941;
  --ochre: #9b692e;
  --letter-ink: #472b25;
  --ivory-paper: #fff3dc;
}
.scene-copy { container-type: size; }
.devotional {
  position: absolute;
  inset: 23% 8% 7%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: clamp(.57rem, 2cqh, 1.3rem);
  color: #fff2ce;
  text-align: center;
  text-shadow: 0 1px 3px #341322;
  isolation: isolate;
}
.devotional::before {
  content: "";
  position: absolute;
  inset: -3% -2%;
  z-index: -1;
  background: radial-gradient(ellipse, #42202cd6 22%, #5326389e 53%, transparent 73%);
}
.devotional h1 {
  max-width: 15ch;
  font: 400 clamp(1.65rem, min(8.8cqw, 5.2cqh), 3.05rem)/1 var(--serif);
  text-wrap: balance;
}
.ganesh-emblem {
  display: block;
  width: min(47cqw, 24cqh, 11.8rem);
  height: min(47cqw, 24cqh, 11.8rem);
  object-fit: contain;
}
.mantra {
  display: grid;
  gap: .16em;
  font: 550 clamp(.89rem, min(4.65cqw, 3.3cqh), 1.34rem)/1.55 "Noto Serif Devanagari", serif;
  text-wrap: balance;
  color: #fff1cb;
}
.invite-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .6rem;
  padding: .48rem .95rem;
  border: 1px solid #d6af69;
  border-radius: 2rem;
  background: #542735;
  color: #fff1cf;
  text-shadow: none;
  font: 600 .875rem/1.3 var(--sans);
  text-decoration: none;
}
.invite-button:hover { background: #74364b; }
.invite-button:focus-visible { outline: 2px solid #fbe5b4; outline-offset: 3px; }

.final-copy { position: absolute; inset: auto 0 max(1.25rem, 6cqh); text-align: center; }

/* The open envelope leads into a single closing folio. */
.practical {
  container-type: inline-size;
  padding: .75rem;
  color: var(--letter-ink);
  background: #512a35;
}
.invitation-paper {
  position: relative;
  max-width: 35rem;
  margin: auto;
  padding: clamp(1.6rem, 7.5cqw, 2.8rem) clamp(1.15rem, 5.4cqw, 2rem);
  background: radial-gradient(ellipse at top, #fff7e5 40%, #f2ddbc);
  outline: 1px solid #b89059;
  outline-offset: -.5rem;
}
.schedule > h2, .closing h2 { text-align: center; font: 400 clamp(2.1rem, 9cqw, 3.3rem)/1.06 var(--serif); color: var(--wine); }
.event-list { margin: 1.05rem 0 0; padding: 0; list-style: none; }
.event-list li { border-bottom: 1px solid #c4a38191; }
.event-list a { display: block; padding: .62rem .12rem; text-decoration: none; }
.event-list a > span:first-child { display: block; font: 400 1.55rem/1.14 var(--serif); }
.event-list a:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.schedule-date { display: block; margin-top: .15rem; font: 520 .9375rem/1.45 var(--sans); }
.closing { padding-top: 2.2rem; text-align: center; }
.contacts { display: flex; flex-flow: row wrap; justify-content: center; gap: .27rem .9rem; list-style: none; padding: 0; margin: .8rem auto; font: 500 .9rem/1.5 var(--sans); }
.contacts li { white-space: nowrap; }
.paper-download { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; font: 650 .9375rem/1.3 var(--sans); color: #592a36; text-underline-offset: .25em; }
.practical a:focus-visible { outline-color: #703149; }
.compliments { margin: 1.4rem 0 0; font: italic 400 1.2rem/1.2 var(--serif); }
.signature { color: var(--wine); font: 400 2rem/1.1 var(--serif); }
.closing-naara {
  position: relative;
  margin: 1.5rem auto .15rem;
  padding: 1.28rem 4% 0;
  max-width: 17em;
  color: #67303e;
  font: 400 clamp(1.55rem, 7.5cqw, 2.4rem)/1.07 var(--serif);
  text-wrap: balance;
}
.closing-naara::before {
  content: "";
  position: absolute; top: 0; height: 2px; left: 19%; width: 62%;
  background: linear-gradient(90deg, transparent, #b2854e, transparent);
}
