/* Surat Cinta: sampul berbentuk amplop dengan tutup segitiga, kartu surat, dan segel lilin. */
:root {
  --deep: #efe3cc; --flap: #e3d2b4; --seal: #a32b2b;
  --bg: #faf5ec; --bg-alt: #f2e9d9; --ink: #3a2c22; --muted: #7a6a5c; --accent: #a32b2b; --card: #fffdf8;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --fold: color-mix(in srgb, var(--deep) 88%, #000);
  --cover-bg:
    linear-gradient(to top right, var(--fold) 49.6%, transparent 50%) left bottom / 50.5% 58% no-repeat,
    linear-gradient(to top left, color-mix(in srgb, var(--fold) 70%, var(--deep)) 49.6%, transparent 50%) right bottom / 50.5% 58% no-repeat,
    var(--deep);
  --cover-ink: var(--ink);
  --airmail: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--card) 14px 22px, #2a4a7f 22px 36px, var(--card) 36px 44px);
  --f-display: "Playfair Display", Georgia, serif;
  --f-script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --f-body: "EB Garamond", Georgia, serif;
  --title-size: clamp(3.8rem, 17vw, 5.4rem);
  --r: 6px;
}
body.inv { font-size: 18px; }

/* tutup amplop dan bayangannya */
.inv-cover, .inv-aside { isolation: isolate; }
.inv-cover::before, .inv-aside::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%;
  background: linear-gradient(180deg, var(--flap), color-mix(in srgb, var(--flap) 88%, #000));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.inv-cover::after, .inv-aside::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(48% + 7px); z-index: -1;
  background: rgba(0, 0, 0, .09); clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* kartu surat */
.inv-cover-inner, .inv-aside-inner {
  background: var(--card); border-radius: 4px; padding: 26px 22px 28px;
  box-shadow: 0 1px 0 var(--line), 0 24px 40px -22px rgba(0, 0, 0, .45);
  outline: 1px solid var(--line); outline-offset: -10px;
}
.inv-cover .inv-orn-top, .inv-aside .inv-orn-top { width: 104px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); }
.inv-label { color: var(--accent); font-style: italic; text-transform: none; letter-spacing: .08em; font-size: 1rem; }
.inv-title { line-height: 1.05; padding-top: .1em; }
.inv-guest { background: var(--bg); border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.inv-guest b { font-style: italic; font-weight: 500; }
.inv-btn { border-radius: 4px; letter-spacing: .04em; }

/* isi seperti kertas surat dengan pinggiran pos udara */
.inv-hero::before, .inv-closing::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--airmail); }
.inv-hero::before { top: 0; }
.inv-closing::after { bottom: 0; }
.inv-sec-title, .inv-name, .inv-main .inv-title { color: var(--accent); }
.inv-card { box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--line), 0 14px 30px -24px rgba(0, 0, 0, .5); }
.inv-avatar { border-radius: 2px; border: 0; padding: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 24px -14px rgba(0, 0, 0, .45); transform: rotate(-2deg); }
.inv-person:nth-of-type(odd) .inv-avatar { transform: rotate(2deg); }
.inv-monogram { color: var(--accent); }
.inv-nav { background: color-mix(in srgb, var(--card) 94%, transparent); }
