/* hereby template: story — "Storybook" (童話繪本)
   A gouache picture book: pale sky, the couple painted in a cream arch among blue poppies, a dusty blue band,
   pastel pills for the order of the day. Art: story-sky.jpg, story-couple / story-flowers / story-icons (4-icon strip),
   story-hills.webp + sc-story-b.webp (scene bands). */
.inv[data-layout="story"] { --st-blue: #9DB0CC; --st-blue-2: #7F94B6; --st-navy: #4D5F80; --st-cream: #F6F1E6; --st-hair: rgba(77, 95, 128, 0.3);
  --st-yellow: #F6EBB8; --st-green: #DDE8C6; --st-sky: #D3E6F2; --st-pink: #F6DCE4; --st-lilac: #E3DDF2;
  --inv-ink: var(--st-navy); --inv-btn: var(--st-navy); --inv-btn-fg: #FFFDF8; color: var(--st-navy); font-variant-numeric: lining-nums; }

/* ---------- Cover: the names at the top, the painted couple in a cream arch, the date */
.inv[data-layout="story"] .inv-cover { background: url("story-sky.jpg") center / cover, var(--st-sky); padding: 60px 7% 8%; justify-content: flex-start; gap: 2.4cqw; }
.inv[data-layout="story"] .inv-covertop { order: 1; gap: 2px; }
.inv[data-layout="story"] .inv-kicker { display: block; font-size: clamp(12px, 3.6cqw, 16px); font-weight: 700; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--st-blue-2); }
.inv[lang="zh-Hant"][data-layout="story"] .inv-kicker { font-size: clamp(13px, 4cqw, 17px); font-weight: 500; }
.inv[data-layout="story"] .inv-covertop .i-date { display: none; }
.inv[data-layout="story"] .inv-names { order: 2; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 9cqw, 48px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; color: var(--st-navy); padding: 0; }
.inv[data-layout="story"] .inv-names em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--st-blue-2); font-size: 0.8em; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-names { font-size: clamp(28px, 8.6cqw, 46px); letter-spacing: 0.18em; }
.inv[data-layout="story"] .inv-ill { order: 3; flex: 1 1 0; min-height: 0; width: 86%; max-width: 380px; padding: 0; border-radius: 999px 999px 0 0; background: url("story-couple.webp") center bottom / auto 94% no-repeat, var(--st-cream); box-shadow: 0 0 0 6px rgba(246, 241, 230, 0.6); }
.inv[data-layout="story"] .inv-ill img { display: none; }
.inv[data-layout="story"] .inv-big { display: block; order: 4; margin-top: 2cqw; font-size: clamp(16px, 5cqw, 24px); font-weight: 700; letter-spacing: 0.22em; color: var(--st-navy); }
.inv[data-layout="story"] .inv-venue { display: block; order: 5; font-size: clamp(11px, 3.1cqw, 14px); letter-spacing: 0.2em; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-venue { font-size: clamp(13px, 3.7cqw, 16px); }
.inv[data-layout="story"] .inv-open { order: 6; margin-top: 1cqw; border-radius: 999px; background: var(--st-navy); color: #FFFDF8; box-shadow: 0 0 0 0 rgba(77, 95, 128, 0.45); animation-name: st-pulse; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 95, 128, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(77, 95, 128, 0); } }
.inv[data-layout="story"] .inv-skip { color: var(--st-navy); background: rgba(246, 241, 230, 0.75); }
/* poppies growing in from both lower corners */
.inv[data-layout="story"] .inv-cover .inv-deco.d1, .inv[data-layout="story"] .inv-cover .inv-deco.d2 { display: block; position: absolute; bottom: 0; width: 28%; aspect-ratio: 1 / 2.2; background: url("story-flowers.webp") center bottom / contain no-repeat; pointer-events: none; z-index: 0; }
.inv[data-layout="story"] .inv-cover .inv-deco.d1 { left: -5%; }
.inv[data-layout="story"] .inv-cover .inv-deco.d2 { right: -5%; transform: scaleX(-1); }

/* ---------- Body: cream pages with a dusty blue band */
.inv[data-layout="story"] .inv-body { background: var(--st-cream); }
.inv[data-layout="story"] .inv-col { padding: 14px 20px 30px; gap: 46px; }
.inv[data-layout="story"] .inv-back { color: var(--st-navy); }
.inv[data-layout="story"] .inv-lang { border-color: var(--st-navy); }
.inv[data-layout="story"] .inv-lang button { color: var(--st-navy); }
.inv[data-layout="story"] .inv-lang button[aria-pressed="true"] { background: var(--st-navy); color: #FFFDF8; }
.inv[data-layout="story"] .inv-sec h2 { padding: 0; background: none; font-weight: 700; font-size: clamp(26px, 8cqw, 34px); letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-blue-2); }
.inv[lang="zh-Hant"][data-layout="story"] .inv-sec h2 { font-size: 26px; letter-spacing: 0.24em; text-indent: 0.24em; }
.inv[data-layout="story"] .inv-btn { border-radius: 999px; min-height: 50px; }
.inv[data-layout="story"] .inv-btn.line, .inv[data-layout="story"] .inv-btn[aria-pressed="false"] { color: var(--st-navy); border-color: var(--st-navy); background: transparent; }
.inv[data-layout="story"] .inv-btn.line { font-size: 17px; }

/* 1. names: on the blue band; the date shown as yesterday, today, tomorrow */
.inv[data-layout="story"] [data-sec="names"] { margin: 0 -20px; padding: 40px 26px 36px; background: var(--st-blue); color: #FFFDF8; gap: 14px; }
.inv[data-layout="story"] .inv-photo { display: none !important; }
.inv[data-layout="story"] .inv-hello { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 9.6cqw, 44px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; display: flex; flex-direction: column; align-items: center; }
.inv[data-layout="story"] .inv-hello em { font-style: italic; text-transform: none; color: #FFFDF8; font-size: 0.7em; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-hello { font-size: 32px; letter-spacing: 0.2em; text-indent: 0.2em; line-height: 1.35; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-hello em { font-style: normal; font-size: 0.5em; letter-spacing: 0; text-indent: 0; line-height: 1.8; }
.inv[data-layout="story"] .inv-lead { font-style: normal; font-size: 19px; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-lead { font-size: 18px; max-width: 16em; }
.inv[data-layout="story"] .inv-when { color: #FFFDF8; font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; padding: 10px 0; border-top: 1px solid rgba(255, 253, 248, 0.55); border-bottom: 1px solid rgba(255, 253, 248, 0.55); }
.inv[lang="zh-Hant"][data-layout="story"] .inv-when { font-size: 17px; font-weight: 500; letter-spacing: 0.12em; }
.inv[data-layout="story"] [data-sec="names"] > .i-label { font-size: 12px; }
.inv[data-layout="story"] .inv-count div { border: none; background: rgba(255, 253, 248, 0.92); color: var(--st-navy); }
.inv[data-layout="story"] .inv-count div:nth-child(1) { background: var(--st-yellow); }
.inv[data-layout="story"] .inv-count div:nth-child(2) { background: var(--st-green); }
.inv[data-layout="story"] .inv-count div:nth-child(3) { background: var(--st-pink); }
.inv[data-layout="story"] .inv-count div:nth-child(4) { background: var(--st-lilac); }
.inv[data-layout="story"] .inv-count b { font-weight: 700; }
.inv[data-layout="story"] .inv-count span { font-size: 10px; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-count span { font-size: 13px; font-weight: 400; }
.inv[data-layout="story"] [data-sec="names"] .inv-btn.line { color: #FFFDF8; border-color: #FFFDF8; }

/* 2. date: a cream arch */
.inv[data-layout="story"] [data-sec="date"] { padding: 48px 22px 28px; background: #FFFDF8; border-radius: 999px 999px 18px 18px; box-shadow: 0 0 0 1px var(--st-hair); }
.inv[data-layout="story"] .inv-cal-m { font-style: normal; font-weight: 700; font-size: 18px; letter-spacing: 0.24em; text-transform: uppercase; }
.inv[lang="zh-Hant"][data-layout="story"] .inv-cal-m { font-size: 19px; font-weight: 500; letter-spacing: 0.16em; }
.inv[data-layout="story"] .inv-cal-g b { color: var(--st-blue-2); opacity: 1; }
.inv[data-layout="story"] .inv-cal-g .on { color: var(--st-navy); font-weight: 700; background: radial-gradient(circle closest-side, var(--st-yellow) 92%, transparent 96%); }

/* 3. order of the day: a time bubble and a pastel pill for each moment */
.inv[data-layout="story"] [data-sec="order"] { margin: 0 -20px; padding: 46px 22px 40px; background: #FFFDF8; border-radius: 999px 999px 0 0; }
.inv[data-layout="story"] .inv-order li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; border: none; padding: 6px 0; }
.inv[data-layout="story"] .inv-order li:last-child { border: none; }
.inv[data-layout="story"] .inv-order time { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--st-navy); background: var(--st-yellow); }
.inv[data-layout="story"] .inv-order li > div { padding: 12px 18px; border-radius: 999px; background: var(--st-yellow); min-height: 52px; display: flex; flex-direction: column; justify-content: center; }
.inv[data-layout="story"] .inv-order li:nth-child(5n+2) time, .inv[data-layout="story"] .inv-order li:nth-child(5n+2) > div { background: var(--st-green); }
.inv[data-layout="story"] .inv-order li:nth-child(5n+3) time, .inv[data-layout="story"] .inv-order li:nth-child(5n+3) > div { background: var(--st-sky); }
.inv[data-layout="story"] .inv-order li:nth-child(5n+4) time, .inv[data-layout="story"] .inv-order li:nth-child(5n+4) > div { background: var(--st-pink); }
.inv[data-layout="story"] .inv-order li:nth-child(5n+5) time, .inv[data-layout="story"] .inv-order li:nth-child(5n+5) > div { background: var(--st-lilac); }
.inv[data-layout="story"] .inv-order li > div:has(span) { border-radius: 26px; }
.inv[data-layout="story"] .inv-order strong { font-style: normal; font-weight: 600; font-size: 19px; }
.inv[data-layout="story"] .inv-order span { color: #5F6E8A; font-size: 15px; }

/* 4. good to know: on blue, the four little paintings above */
.inv[data-layout="story"] [data-sec="details"] { margin: 0 -20px; padding: 40px 24px 34px; background: var(--st-blue); color: #FFFDF8; }
.inv[data-layout="story"] [data-sec="details"] h2 { color: #FFFDF8; }
.inv[data-layout="story"] [data-sec="details"] .inv-orn { display: block; order: -1; width: 100%; max-width: 330px; aspect-ratio: 4 / 1; background: url("story-icons.webp") center / contain no-repeat; }
.inv[data-layout="story"] .inv-cards { gap: 12px; }
.inv[data-layout="story"] .inv-card, .inv[data-layout="story"] .inv-card:last-child { border: none; border-radius: 20px; background: #FFFDF8; color: var(--st-navy); padding: 20px 16px; }
.inv[data-layout="story"] .inv-card h3 { color: var(--st-blue-2); font-weight: 700; }
.inv[data-layout="story"] .inv-card p { font-style: normal; }
.inv[data-layout="story"] .inv-sw i { width: 34px; height: 34px; border: none; }

/* 5. reply: a cream arch card */
.inv[data-layout="story"] [data-sec="rsvp"] { padding: 54px 22px 28px; background: #FFFDF8; border-radius: 999px 999px 18px 18px; box-shadow: 0 0 0 1px var(--st-hair); }
.inv[data-layout="story"] .inv-field label, .inv[data-layout="story"] .inv-checks legend { color: #5F6E8A; }
.inv[data-layout="story"] .inv-field input, .inv[data-layout="story"] .inv-field select { border-bottom-color: var(--st-hair); }
.inv[data-layout="story"] .inv-field textarea { border-color: var(--st-hair); background: #FFFFFF; }
.inv[data-layout="story"] .inv-checks label { border-color: var(--st-hair); }
.inv[data-layout="story"] .inv-checks label:has(input:checked) { background: var(--st-sky); }
.inv[data-layout="story"] .inv-checks input { accent-color: var(--st-navy); }
.inv[data-layout="story"] .inv-form .inv-btn[aria-pressed="true"] { background: var(--st-navy); color: #FFFDF8; }
.inv[data-layout="story"] .inv-thanks { background: none; border: none; padding: 0; }

/* foot */
.inv[data-layout="story"] .inv-made a { color: var(--st-navy); }
