/* hereby template: amour — "Red Doodle" (紅心塗鴉)
   A cream sheet on deep red, everything drawn in red felt-tip: hearts, clinking glasses, candles, a chandelier, rings.
   Hand-lettered headings (Caveat Brush, as Ink Sketch), the names in a red ribbon pill.
   Art (red marker on transparent): amour-hearts, amour-heart, amour-glasses, amour-candles, amour-chandelier, amour-rings. */
.inv[data-layout="amour"] { --am-red: #A3141C; --am-red-2: #B7242B; --am-cream: #FBF5EA; --am-ink: #4A2A26; --am-hair: rgba(163, 20, 28, 0.35);
  --am-hand: "Caveat Brush", "Caveat", var(--serif);
  --am-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6c10-5 18 3 28-1s16-4 26 0 18 4 28 0 18-4 34 1' fill='none' stroke='%23A3141C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --inv-ink: var(--am-red); --inv-btn: var(--am-red); --inv-btn-fg: var(--am-cream); color: var(--am-ink); font-variant-numeric: lining-nums; }

/* ---------- Cover: a cream sheet inset on red; hearts, the names in red script, the date on a red ribbon */
.inv[data-layout="amour"] .inv-cover { background: var(--am-red); padding: 70px 12% 11%; justify-content: flex-start; gap: 3cqw; }
.inv[data-layout="amour"] .inv-cover .inv-frame { display: block; position: absolute; inset: 14px; border-radius: 22px; background: var(--am-cream); box-shadow: 0 10px 30px rgba(60, 8, 10, 0.35); pointer-events: none; z-index: -1; }
.inv[data-layout="amour"] .inv-covertop { order: 1; }
.inv[data-layout="amour"] .inv-kicker { display: block; font-family: var(--am-hand); font-size: clamp(18px, 5.6cqw, 26px); letter-spacing: 0.04em; text-transform: none; font-weight: 400; color: var(--am-red); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-kicker { font-family: var(--serif); font-size: clamp(14px, 4.2cqw, 18px); letter-spacing: 0.3em; }
.inv[data-layout="amour"] .inv-covertop .i-date { display: none; }
.inv[data-layout="amour"] .inv-names { order: 2; font-family: var(--am-hand); color: var(--am-red); font-size: clamp(44px, 14cqw, 76px); line-height: 0.95; display: flex; flex-direction: column; align-items: center; padding: 0; transform: rotate(-3deg); }
.inv[data-layout="amour"] .inv-names em { font-family: var(--am-hand); color: var(--am-red); font-size: 0.6em; line-height: 1.1; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-names { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 10cqw, 52px); letter-spacing: 0.2em; text-indent: 0.2em; line-height: 1.3; transform: rotate(-2deg); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-names em { font-family: var(--serif); font-size: 0.45em; letter-spacing: 0; text-indent: 0; }
.inv[data-layout="amour"] .inv-ill { order: 3; flex: 1 1 0; min-height: 0; max-width: 320px; padding: 0; border-radius: 0; background: url("amour-hearts.webp") center / contain no-repeat; }
.inv[data-layout="amour"] .inv-ill img { display: none; }
.inv[data-layout="amour"] .inv-big { display: block; order: 4; padding: 10px 26px 8px; border-radius: 40% 46% 42% 48% / 60% 52% 58% 50%; background: var(--am-red); color: var(--am-cream); font-family: var(--am-hand); font-size: clamp(20px, 6.4cqw, 30px); letter-spacing: 0.08em; transform: rotate(2deg); }
.inv[data-layout="amour"] .inv-venue { display: block; order: 5; font-size: clamp(11px, 3.1cqw, 14px); letter-spacing: 0.2em; color: var(--am-ink); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-venue { font-size: clamp(13px, 3.7cqw, 16px); }
.inv[data-layout="amour"] .inv-open { order: 6; margin-top: auto; border-radius: 999px; background: var(--am-red); color: var(--am-cream); font-family: var(--am-hand); font-size: 21px; font-weight: 400; letter-spacing: 0.08em; text-transform: none; box-shadow: 0 0 0 0 rgba(163, 20, 28, 0.45); animation-name: am-pulse; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-open { font-family: var(--serif); font-size: 17px; letter-spacing: 0.3em; }
@keyframes am-pulse { 0% { box-shadow: 0 0 0 0 rgba(163, 20, 28, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(163, 20, 28, 0); } }
.inv[data-layout="amour"] .inv-skip { top: 26px; right: 26px; color: var(--am-red); font-family: var(--am-hand); font-style: normal; font-size: 18px; }

/* ---------- Body: one cream sheet with red margins */
.inv[data-layout="amour"] .inv-body { background: var(--am-red); }
.inv[data-layout="amour"] .inv-col { margin: 12px; padding: 16px 22px 34px; gap: 52px; background: var(--am-cream); border-radius: 22px; min-height: calc(100% - 24px); }
.inv[data-layout="amour"] .inv-back { color: var(--am-red); font-family: var(--am-hand); font-style: normal; font-size: 19px; }
.inv[data-layout="amour"] .inv-lang { border-color: var(--am-red); }
.inv[data-layout="amour"] .inv-lang button { color: var(--am-red); }
.inv[data-layout="amour"] .inv-lang button[aria-pressed="true"] { background: var(--am-red); color: var(--am-cream); }
.inv[data-layout="amour"] .inv-sec h2 { font-family: var(--am-hand); font-weight: 400; font-size: clamp(34px, 10cqw, 42px); line-height: 1.05; color: var(--am-red); padding: 0 0 14px; background: var(--am-squiggle) center bottom / 120px 10px no-repeat; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-sec h2 { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 0.22em; text-indent: 0.22em; }
.inv[data-layout="amour"] .inv-btn { border-radius: 999px; min-height: 50px; font-family: var(--am-hand); font-size: 20px; font-weight: 400; letter-spacing: 0.06em; text-transform: none; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-btn { font-family: var(--serif); font-size: 16px; }
.inv[data-layout="amour"] .inv-btn.line, .inv[data-layout="amour"] .inv-btn[aria-pressed="false"] { color: var(--am-red); border: 1.6px solid var(--am-red); background: transparent; font-style: normal; }
/* doodles beside headings */
.inv[data-layout="amour"] .inv-orn { display: block; position: absolute; width: 86px; aspect-ratio: 1; background: center / contain no-repeat; pointer-events: none; z-index: -1; }

/* 1. names: written large, the words, the countdown in a hand-drawn oval */
.inv[data-layout="amour"] [data-sec="names"] { padding-top: 26px; gap: 14px; }
.inv[data-layout="amour"] [data-sec="names"] .inv-orn { right: -10px; top: -14px; width: 76px; background-image: url("amour-rings.webp"); }
.inv[data-layout="amour"] .inv-photo { display: none !important; }
.inv[data-layout="amour"] .inv-hello { font-family: var(--am-hand); color: var(--am-red); font-size: clamp(46px, 14cqw, 66px); display: flex; flex-direction: column; align-items: center; line-height: 0.98; transform: rotate(-2deg); }
.inv[data-layout="amour"] .inv-hello em { font-family: var(--am-hand); font-size: 0.6em; color: var(--am-red); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-hello { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: 0.2em; text-indent: 0.2em; line-height: 1.3; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-hello em { font-family: var(--serif); font-size: 0.5em; letter-spacing: 0; text-indent: 0; line-height: 1.8; }
.inv[data-layout="amour"] .inv-lead { font-style: normal; font-size: 19px; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-lead { font-size: 18px; max-width: 16em; }
.inv[data-layout="amour"] .inv-when { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--am-red); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-when { font-size: 17px; font-weight: 600; letter-spacing: 0.12em; }
.inv[data-layout="amour"] [data-sec="names"] > .i-label { font-size: 12px; color: var(--am-ink); }
.inv[data-layout="amour"] .inv-count { max-width: 340px; margin: 10px auto 0; padding: 14px 10px; gap: 0; border: 1.8px solid var(--am-red); border-radius: 50% 46% 52% 48% / 58% 54% 46% 42%; }
.inv[data-layout="amour"] .inv-count div { border: none; background: none; aspect-ratio: auto; }
.inv[data-layout="amour"] .inv-count b { font-family: var(--am-hand); font-size: 32px; color: var(--am-red); }
.inv[data-layout="amour"] .inv-count span { font-size: 10px; color: var(--am-red); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-count span { font-size: 13px; font-weight: 400; }

/* 2. date: a calendar page with a red header, a chandelier hanging beside it */
.inv[data-layout="amour"] [data-sec="date"] .inv-orn { left: -12px; top: -10px; width: 90px; background-image: url("amour-chandelier.webp"); }
.inv[data-layout="amour"] .inv-cal { max-width: 290px; padding: 0 12px 12px; gap: 6px; background: #FFFFFF; border-radius: 14px; box-shadow: 0 8px 18px -10px rgba(74, 42, 38, 0.4); overflow: hidden; }
.inv[data-layout="amour"] .inv-cal-m { margin: 0 -12px; padding: 8px 0 6px; background: var(--am-red); color: var(--am-cream); font-family: var(--am-hand); font-style: normal; font-size: 22px; }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-cal-m { font-family: var(--serif); font-size: 17px; }
.inv[data-layout="amour"] .inv-cal-g b { color: var(--am-red); opacity: 1; }
.inv[data-layout="amour"] .inv-cal-g span { font-size: 15px; }
.inv[data-layout="amour"] .inv-cal-g .on { color: var(--am-cream); background: url("amour-heart.webp") center / 112% no-repeat; }

/* 3. order of the day: a red string winding between the times */
.inv[data-layout="amour"] [data-sec="order"] .inv-orn { right: -8px; top: -12px; width: 92px; background-image: url("amour-glasses.webp"); }
.inv[data-layout="amour"] .inv-order { position: relative; }
.inv[data-layout="amour"] .inv-order li { display: block; position: relative; border: none; padding: 10px 0 10px 0; width: 64%; }
.inv[data-layout="amour"] .inv-order li:last-child { border: none; }
.inv[data-layout="amour"] .inv-order li:nth-child(even) { margin-left: 36%; text-align: right; }
.inv[data-layout="amour"] .inv-order li + li::before { content: ""; position: absolute; top: -18px; left: 30%; width: 40%; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M2 2c20 2 30 10 48 11s34 8 48 11' fill='none' stroke='%23A3141C' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='1 5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.inv[data-layout="amour"] .inv-order li:nth-child(even)::before { left: auto; right: 30%; transform: scaleY(-1) rotate(180deg); }
.inv[data-layout="amour"] .inv-order time { display: block; width: auto; font-family: var(--am-hand); font-size: 26px; font-weight: 400; color: var(--am-red); }
.inv[data-layout="amour"] .inv-order strong { font-style: normal; font-size: 19px; }

/* 4. good to know: notes on little white cards with candles above */
.inv[data-layout="amour"] [data-sec="details"] .inv-orn { left: -10px; top: -16px; width: 70px; background-image: url("amour-candles.webp"); }
.inv[data-layout="amour"] .inv-cards { gap: 14px; }
.inv[data-layout="amour"] .inv-card, .inv[data-layout="amour"] .inv-card:last-child { border: 1.6px solid var(--am-red); border-radius: 16px 20px 14px 18px; background: #FFFFFF; padding: 18px 14px; }
.inv[data-layout="amour"] .inv-card h3 { font-family: var(--am-hand); font-size: 22px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--am-red); }
.inv[lang="zh-Hant"][data-layout="amour"] .inv-card h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.inv[data-layout="amour"] .inv-card p { font-style: normal; }
.inv[data-layout="amour"] .inv-sw i { border: 3px solid #FFFFFF; box-shadow: 0 0 0 1.5px var(--am-red); }

/* 5. reply */
.inv[data-layout="amour"] .inv-field label, .inv[data-layout="amour"] .inv-checks legend { color: var(--am-ink); }
.inv[data-layout="amour"] .inv-field input, .inv[data-layout="amour"] .inv-field select { border-bottom: 1.5px solid var(--am-hair); }
.inv[data-layout="amour"] .inv-field textarea { border: 1.5px solid var(--am-hair); background: #FFFFFF; }
.inv[data-layout="amour"] .inv-checks label { border-color: var(--am-hair); }
.inv[data-layout="amour"] .inv-checks label:has(input:checked) { background: #F7DEDB; }
.inv[data-layout="amour"] .inv-checks input { accent-color: var(--am-red); }
.inv[data-layout="amour"] .inv-form .inv-btn[aria-pressed="true"] { background: var(--am-red); color: var(--am-cream); }
.inv[data-layout="amour"] .inv-thanks { background: none; border: none; padding: 0; }

/* foot */
.inv[data-layout="amour"] .inv-made a { color: var(--am-red); }
