/* Inland Letter */
:root {
  --paper: #d9e7ef; --paper-2: #cfe0ea; --ink-blue: #24435c; --postmark: #c0392b; --cream: #fdfbf6;
  --bg: #b9cfdc; --ink: var(--ink-blue); --muted: #4f6a7e; --accent: var(--postmark); --accent-ink: #fff;
  --card: rgba(255,255,255,.45); --line: rgba(36, 67, 92, .22);
  --font-display: "Special Elite", "Courier Prime", monospace; --font-body: "Courier Prime", monospace; --font-script: "Caveat", cursive;
  --font-label: "Courier Prime", monospace; --font-ta: "Arima", sans-serif; --radius: 2px;
  --ruled: repeating-linear-gradient(0deg, transparent 0 31px, rgba(36,67,92,.12) 31px 32px);
}
body { font-size: 17px; background: var(--bg); }
.sec { text-align: left; max-width: 760px; margin: 0 auto; padding-left: clamp(22px, 7vw, 70px); padding-right: clamp(22px, 7vw, 70px); }
.sec-head { margin-left: 0; }
.sec h2 { font-size: clamp(26px, 5vw, 36px); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.sec h2 [lang="ta"] { font-family: var(--font-ta); font-weight: 600; font-size: .8em; }
.eyebrow { color: var(--postmark); letter-spacing: .14em; }
.couple { justify-items: start; }

/* ---------- intro: the folded letter ---------- */
.il-intro { background: radial-gradient(ellipse at 50% 30%, #c8d9e4, #8fa9bb); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 20px; perspective: 1400px;
  transition: opacity .8s ease 1.4s, visibility 0s linear 2.3s; }
.il-card { position: relative; width: min(92vw, 520px); aspect-ratio: 1.55; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.6, 0, .2, 1) .7s; }
.il-face { position: absolute; inset: 0; background: var(--paper); padding: 22px 20px; box-shadow: 0 24px 50px -20px rgba(20, 40, 60, .55); border: 1px solid rgba(36,67,92,.25);
  background-image: radial-gradient(circle at 0 0, rgba(255,255,255,.35), transparent 60%); }
.il-head { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--ink-blue); padding-right: 90px; }
.il-head span { letter-spacing: .05em; font-weight: 400; }
.il-face .il-stamp { position: absolute; top: 14px; right: 14px; width: 62px; }
.il-address { margin-top: 26%; padding-left: 34%; font-family: var(--font-body); font-size: 15px; }
.il-lines span { display: block; height: 18px; border-bottom: 1px dotted var(--ink-blue); }
.il-from { position: absolute; left: 20px; bottom: 16px; font-family: var(--font-script); font-size: 22px; color: var(--ink-blue); }
.il-face .il-postmark { position: absolute; width: 96px; top: 34px; right: 54px; transform: rotate(-14deg); }
.il-flap { position: absolute; left: 0; right: 0; top: 0; height: 26%; z-index: 2; background: var(--paper-2); transform-origin: top; border-bottom: 2px dashed rgba(36,67,92,.45);
  display: grid; place-items: center; backface-visibility: hidden; transition: transform .9s cubic-bezier(.6, 0, .2, 1); box-shadow: 0 6px 10px -6px rgba(0,0,0,.3); }
.il-open-here { font-family: var(--font-label); font-size: 12px; letter-spacing: .14em; color: var(--postmark); white-space: nowrap; }
.il-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .4s; }
.il-cta { background: var(--postmark); color: #fff; font-family: var(--font-label); font-weight: 700; }
.il-lang { background: transparent; color: var(--ink-blue); border: 1px dashed var(--ink-blue); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
html.intro-opening .il-flap { transform: rotateX(-170deg); }
html.intro-opening .il-card { transform: translateY(-8vh) scale(1.9) rotateX(10deg); }
html.intro-opening .il-actions { opacity: 0; }
html.intro-opening .il-intro { opacity: 0; visibility: hidden; }

/* ---------- hero: the open letter ---------- */
.il-hero { min-height: 100svh; display: grid; place-items: center; padding: 26px 14px; }
.il-paper { position: relative; width: min(100%, 760px); background: var(--paper); background-image: var(--ruled); padding: clamp(70px, 12vw, 110px) clamp(22px, 7vw, 70px) 60px;
  box-shadow: 0 30px 60px -30px rgba(20,40,60,.6); border: 1px solid rgba(36,67,92,.2); }
.il-paper .il-stamp { position: absolute; top: 18px; right: 18px; width: 72px; transform: rotate(3deg); }
.il-paper .il-postmark { position: absolute; top: 30px; right: 70px; width: 110px; transform: rotate(-18deg); }
.il-dateline { text-align: right; padding-right: 120px; font-size: 15px; color: var(--muted); }
.il-dear { margin-top: 40px; font-family: var(--font-display); font-size: 22px; }
.il-body { margin: 14px 0 32px; }
.il-hero .couple { gap: 10px; }
.il-hero .name { font-family: var(--font-display); font-size: clamp(40px, 10vw, 72px); color: var(--ink-blue); }
.il-hero .name [lang="ta"] { font-family: var(--font-ta); font-weight: 600; font-size: .6em; }
.il-hero .weds { font-family: var(--font-script); color: var(--postmark); font-size: 34px; }
.il-hero .weds [lang="ta"] { font-family: var(--font-ta); font-size: 18px; }
.il-sign { margin-top: 36px; }
.il-hand { font-family: var(--font-script); font-size: 34px; color: var(--ink-blue); }
.il-hand [lang="ta"] { font-family: var(--font-ta); font-size: 22px; }

/* ---------- the rest of the letter ---------- */
.il-sheet { width: min(100% - 28px, 760px); margin: 0 auto 30px; background: var(--paper); background-image: var(--ruled); box-shadow: 0 30px 60px -30px rgba(20,40,60,.6); border: 1px solid rgba(36,67,92,.2); }
.il-sheet .sec + .sec { border-top: 2px dashed rgba(36,67,92,.25); }
.scratch { --foil-1: #8fa9bb; --foil-2: #e8f1f6; --foil-3: #6f8ea3; --foil-label: "Scratch the seal"; --burst: #c0392b, #24435c, #f2b8c6, #fff; margin: 0; background: var(--cream); border: 1px dashed var(--ink-blue); border-radius: 0; }
.scratch-under { text-align: center; }
.events { gap: 26px; }
.event { grid-template-columns: 1fr; gap: 4px; }
.event-date { display: flex; gap: 8px; align-items: baseline; text-align: left; }
.event-date b { font-size: 28px; font-family: var(--font-display); }
.event-date span, .event-date small { display: inline; margin: 0; }
.event h3 { font-family: var(--font-display); font-size: 24px; }
.event h3::before { content: "▸ "; color: var(--postmark); }
.cd-grid { max-width: none; }
.cd-cell { border: 3px solid var(--postmark); color: var(--postmark); border-radius: 6px; transform: rotate(-2deg); background: rgba(192,57,43,.05); }
.cd-cell:nth-child(even) { transform: rotate(2deg); }
.cd-cell b { color: var(--postmark); font-family: var(--font-display); }
.cd-cell small { color: var(--postmark); }
.cd-date { text-align: left; }
.venues, .venue { text-align: left; }
.venue h3 { font-family: var(--font-display); }
.address { margin-left: 0; }
.note { text-align: left; }
.note blockquote { font-family: var(--font-display); font-style: normal; }
.signature { font-family: var(--font-script); color: var(--ink-blue); }
.share-row, .contacts { justify-content: flex-start; justify-items: start; }
.btn { border-radius: 2px; font-family: var(--font-label); }
.foot { text-align: left; max-width: 760px; margin: 0 auto; padding-left: clamp(22px, 7vw, 70px); }
.foot-names { font-family: var(--font-script); font-size: 46px; }
.text-btn, .palette, .muhurtham { text-align: left; }
@media (max-width: 560px) {
  .il-dateline { padding-right: 90px; }
  .il-paper .il-postmark { width: 84px; right: 56px; }
}
@media (max-width: 560px) {
  .il-card { aspect-ratio: 1.02; }
  .il-face { padding: 18px 16px; }
  .il-head { margin-top: 26%; padding-right: 0; font-size: 11px; letter-spacing: .2em; }
  .il-face .il-stamp { top: auto; bottom: 64px; right: 16px; width: 56px; }
  .il-face .il-postmark { top: auto; bottom: 46px; right: 58px; width: 84px; }
  .il-address { margin-top: 10%; padding-left: 0; padding-right: 110px; font-size: 14px; }
}
