*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  background: color-mix(in srgb, var(--theme-bg, #FAF6F0) 85%, #1C1917 15%);
  color: var(--theme-ink, #231F1D);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }

/* Native Mobile Frame (full-bleed on phones, centered 430px card on desktop) */
.ei-shell {
  /* Theme tokens: defaults = Kisah Abadi; each [data-theme] block below overrides them. */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --display-weight: 500;
  --cover-shape: 999px 999px 1.25rem 1.25rem;
  --photo-shape: 999px 999px 0.75rem 0.75rem;
  --avatar-shape: 50%;
  --card-radius: 1rem;
  --btn-radius: 999px;
  --frame: 1px solid;
  --rule: 1px solid;
  --ornament: none;
  --pattern: none;
  /* Photo frames: a theme may set e.g. --cover-ratio: 9 / 16; photos are stored uncropped. */
  --cover-ratio: 4 / 5;
  --avatar-ratio: 1 / 1;
  --gallery-ratio: 1 / 1;
  --motif: color-mix(in srgb, var(--theme-accent, #9A7B4F) 10%, transparent);

  inline-size: min(100%, 26.875rem);
  min-block-size: 100dvh;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size-adjust: from-font;
  background: var(--pattern), var(--theme-bg, #FAF6F0);
  color: var(--theme-ink, #231F1D);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.14);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ei-shell.is-locked {
  block-size: 100dvh;
  overflow: hidden;
}

.ei-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-accent, #9A7B4F);
}

/* Cover Gate (100dvh safe for WhatsApp / IG WebViews) */
.ei-cover {
  min-block-size: 100dvh;
  padding: 1.5rem 1.25rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.ei-cover-arch {
  inline-size: 100%;
  background: var(--theme-surface, #FFFFFF);
  border: var(--frame) color-mix(in srgb, var(--theme-accent, #9A7B4F) 45%, transparent);
  border-radius: var(--cover-shape);
  padding: 2rem 1.25rem 1.75rem;
}

.ei-cover-photo {
  inline-size: min(100%, 12.5rem);
  aspect-ratio: var(--cover-ratio);
  margin: 0 auto 1.25rem;
  border-radius: var(--photo-shape);
  overflow: hidden;
  background: color-mix(in srgb, var(--theme-accent, #9A7B4F) 10%, var(--theme-bg, #FAF6F0));
  display: grid;
  place-items: center;
}

.ei-cover-photo img,
.ei-avatar img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

.ei-photo-placeholder {
  font-size: 0.75rem;
  color: var(--theme-accent, #9A7B4F);
  opacity: 0.85;
}

.ei-couple-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.6rem + 2.5vw, 2.75rem);
  font-weight: var(--display-weight);
  line-height: 1.08;
  text-wrap: balance;
}

.ei-couple-title span {
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
}

.ei-date-line {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  opacity: 0.78;
}

.ei-guest-box {
  padding: 0.875rem 1rem;
  border-radius: var(--card-radius);
  background: var(--theme-bg, #FAF6F0);
  margin-block-end: 1.25rem;
}

.ei-guest-label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.72;
  margin-block-end: 0.2rem;
}

.ei-guest-name {
  font-size: 1rem;
  font-weight: 600;
}

.ei-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--btn-radius);
  border: 0;
  background: var(--theme-accent, #9A7B4F);
  color: var(--theme-on-accent, #FFFFFF);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

/* Content Sections */
.ei-section {
  padding: 2.5rem 1.35rem;
  text-align: center;
  border-block-start: var(--rule) color-mix(in srgb, var(--theme-accent, #9A7B4F) 25%, transparent);
}

.ei-section::before {
  content: var(--ornament);
  display: block;
  margin-block-end: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--theme-accent, #9A7B4F);
}

.ei-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: var(--display-weight);
  line-height: 1.15;
  text-wrap: balance;
}

.ei-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

.ei-quote cite {
  display: block;
  margin-block-start: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-accent, #9A7B4F);
}

.ei-couple-grid {
  display: grid;
  gap: 1.25rem;
}

.ei-avatar {
  inline-size: 8.5rem;
  aspect-ratio: var(--avatar-ratio);
  margin: 0 auto 0.875rem;
  border-radius: var(--avatar-shape);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 40%, transparent);
  background: color-mix(in srgb, var(--theme-accent, #9A7B4F) 10%, var(--theme-surface, #FFF));
  display: grid;
  place-items: center;
}

.ei-person-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}

.ei-person-parents {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.78;
}

.ei-amp {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
}

/* Countdown & Events */
.ei-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.ei-countdown > div {
  background: var(--theme-surface, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 25%, transparent);
  border-radius: var(--card-radius);
  padding: 0.65rem 0.25rem;
}

.ei-countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.ei-countdown span {
  font-size: 0.7rem;
  opacity: 0.72;
}

.ei-events-list {
  display: grid;
  gap: 1rem;
}

.ei-card {
  background: var(--theme-surface, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 25%, transparent);
  border-radius: var(--card-radius);
  padding: 1.35rem 1rem;
}

.ei-event-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.15;
}

.ei-event-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-accent, #9A7B4F);
}

.ei-event-venue {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.ei-event-addr {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

.ei-event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ei-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--theme-accent, #9A7B4F);
  color: var(--theme-ink, #231F1D);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Closing & Demo Bar */
.ei-outro-quote {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
}

.ei-closing-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.ei-monogram {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
  margin-block-end: 1.5rem;
}

.ei-viral-footer {
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: center;
  line-height: 1.5;
}

.ei-viral-footer .ei-viral-q {
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.ei-viral-footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ei-music-btn {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  z-index: 40;
  min-block-size: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--theme-accent, #9A7B4F);
  background: var(--theme-surface, #FFFFFF);
  color: var(--theme-ink, #231F1D);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
}

.ei-demo-bar {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1C1917;
  border: 1px solid #EAE4DC;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
  font-size: 0.75rem;
}

.ei-demo-dot {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.ei-demo-dot[aria-pressed="true"] {
  outline: 2px solid #1C1917;
  outline-offset: 2px;
}

/* Live preview in /create reloads often: no reveal animation, so it never flickers. */
.ei-shell.is-preview .ei-reveal {
  opacity: 1;
  translate: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ei-reveal {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.6s ease, translate 0.6s ease;
  }
  .ei-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

:focus-visible {
  outline: 2px solid var(--theme-accent, #9A7B4F);
  outline-offset: 2px;
}

/* RSVP & Wishes Section */
.ei-rsvp-form {
  display: grid;
  gap: 0.9rem;
  text-align: start;
}

.ei-field {
  display: grid;
  gap: 0.35rem;
}

.ei-field label,
.ei-fieldset legend {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme-ink, #231F1D);
}

.ei-input {
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 35%, transparent);
  background: var(--theme-bg, #FAF6F0);
  color: var(--theme-ink, #231F1D);
  font: inherit;
  font-size: max(1rem, 1em);
}

.ei-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.45rem;
}

.ei-radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.ei-radio-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.85rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 35%, transparent);
  background: var(--theme-bg, #FAF6F0);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.ei-radio-pill input {
  accent-color: var(--theme-accent, #9A7B4F);
  margin-inline-end: 0.35rem;
}

.ei-rsvp-status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--theme-accent, #9A7B4F);
  min-block-size: 1.25rem;
}

.ei-wishes-list {
  display: grid;
  gap: 0.65rem;
  margin-block-start: 1.25rem;
  text-align: start;
}

.ei-wish-item {
  padding: 0.85rem 1rem;
  border-radius: var(--card-radius);
  background: var(--theme-bg, #FAF6F0);
}

.ei-wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.ei-wish-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent, #9A7B4F) 16%, transparent);
  color: var(--theme-accent, #9A7B4F);
}

.ei-wish-body {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  opacity: 0.88;
}

/* Galeri, Dresscode & Turut Mengundang */
.ei-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.ei-gallery-item {
  aspect-ratio: var(--gallery-ratio);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--theme-bg, #FAF6F0);
}

.ei-gallery-item img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

.ei-swatch-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ei-swatch-chip {
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--theme-ink, #231F1D) 20%, transparent);
}

.ei-cohost-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

/* Love Story & Digital Gift */
.ei-timeline {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
  border-inline-start: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 45%, transparent);
  display: grid;
  gap: 1.1rem;
  text-align: start;
}

.ei-timeline-item {
  position: relative;
  padding-inline-start: 0.5rem;
}

.ei-timeline-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-accent, #9A7B4F);
  margin-block-end: 0.15rem;
}

.ei-timeline-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
}

.ei-timeline-body {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  opacity: 0.85;
}

.ei-gift-list {
  display: grid;
  gap: 0.65rem;
  text-align: start;
}

.ei-gift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--card-radius);
  background: var(--theme-bg, #FAF6F0);
}

.ei-gift-bank {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-accent, #9A7B4F);
}

.ei-gift-num {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.1rem 0;
}

.ei-gift-name {
  font-size: 0.78rem;
  opacity: 0.8;
}

.ei-copy-btn {
  min-block-size: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 45%, transparent);
  background: var(--theme-surface, #FFFFFF);
  color: var(--theme-ink, #231F1D);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ei-gift-address {
  margin-block-start: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  background: var(--theme-bg, #FAF6F0);
  font-size: 0.82rem;
  text-align: start;
}

/* ---------- 20 Themes: typography, shapes, ornament and background motif ---------- */
/* Ornaments use `"glyph" / ""` so screen readers skip them. Patterns are pure CSS gradients, no images. */

.ei-shell[data-theme="editorial-ivory"] {
  --ornament: "✦" / "";
}

.ei-shell[data-theme="syari-sakinah"] {
  --font-display: "Amiri", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --cover-shape: 50% 50% 1.25rem 1.25rem / 28% 28% 1.25rem 1.25rem;
  --photo-shape: 50% 50% 0.75rem 0.75rem / 30% 30% 0.75rem 0.75rem;
  --ornament: "❁" / "";
  --pattern: repeating-conic-gradient(from 45deg, var(--motif) 0 25%, transparent 0 50%) 0 0 / 34px 34px;
}

.ei-shell[data-theme="bali-pawiwahan"] {
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --display-weight: 600;
  --cover-shape: 0;
  --photo-shape: 0;
  --avatar-shape: 0;
  --card-radius: 0;
  --btn-radius: 0.25rem;
  --frame: 4px double;
  --rule: 3px double;
  --ornament: "❖" / "";
  /* Kain poleng: the black-and-white checker of Bali, softened. */
  --pattern: repeating-conic-gradient(var(--motif) 0 25%, transparent 0 50%) 0 0 / 22px 22px;
}

.ei-shell[data-theme="botanical-bloom"] {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --photo-shape: 50%;
  --cover-shape: 2rem;
  --ornament: "❀" / "";
}

.ei-shell[data-theme="jawa-keraton"] {
  --font-display: "Cinzel Decorative", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, serif;
  --display-weight: 400;
  --cover-shape: 1.5rem 1.5rem 0 0;
  --photo-shape: 0.25rem;
  --avatar-shape: 0.5rem;
  --card-radius: 0.25rem;
  --btn-radius: 0.25rem;
  --frame: 4px double;
  --rule: 3px double;
  --ornament: "❋" / "";
  /* Kawung batik: interlocking ovals. */
  --pattern:
    radial-gradient(circle at 50% 0, var(--motif) 32%, transparent 33%) 0 0 / 26px 26px,
    radial-gradient(circle at 50% 100%, var(--motif) 32%, transparent 33%) 13px 13px / 26px 26px;
}

.ei-shell[data-theme="sunda-pasundan"] {
  --font-display: "Philosopher", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --photo-shape: 1.25rem;
  --avatar-shape: 1.25rem;
  --card-radius: 1.25rem;
  --rule: 1px dashed;
  --ornament: "✾" / "";
  /* Bamboo stripes. */
  --pattern: repeating-linear-gradient(90deg, var(--motif) 0 2px, transparent 2px 20px);
}

.ei-shell[data-theme="minang-gadang"] {
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --display-weight: 400;
  /* Gonjong roof: a pointed top on the cover frame. */
  --cover-shape: 45% 45% 0.5rem 0.5rem / 18% 18% 0.5rem 0.5rem;
  --photo-shape: 0.5rem;
  --card-radius: 0.5rem;
  --btn-radius: 0.5rem;
  --frame: 2px solid;
  --ornament: "◈" / "";
  /* Songket diamonds. */
  --pattern:
    repeating-linear-gradient(45deg, var(--motif) 0 1.5px, transparent 1.5px 16px),
    repeating-linear-gradient(-45deg, var(--motif) 0 1.5px, transparent 1.5px 16px);
}

.ei-shell[data-theme="batak-horas"] {
  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "Libre Franklin", system-ui, sans-serif;
  --display-weight: 400;
  --cover-shape: 0;
  --photo-shape: 0;
  --avatar-shape: 0;
  --card-radius: 0;
  --btn-radius: 0;
  --frame: 2px solid;
  --rule: 2px solid;
  --ornament: "▲▼▲" / "";
  /* Ulos woven bands. */
  --pattern: repeating-linear-gradient(0deg, var(--motif) 0 3px, transparent 3px 9px, var(--motif) 9px 10px, transparent 10px 34px);
}

.ei-shell[data-theme="tionghoa-shuangxi"] {
  --font-display: "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --display-weight: 700;
  --cover-shape: 1.5rem;
  /* Moon gate: a round window for the couple photo. */
  --photo-shape: 50%;
  --frame: 3px double;
  --ornament: "囍" / "";
  --pattern: radial-gradient(var(--motif) 2px, transparent 2.5px) 0 0 / 22px 22px;
}

.ei-shell[data-theme="islami-nur"] {
  --font-display: "El Messiri", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --photo-shape: 50%;
  --cover-shape: 1.75rem;
  --card-radius: 1.5rem;
  --ornament: "✶" / "";
  --pattern:
    repeating-linear-gradient(60deg, var(--motif) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-60deg, var(--motif) 0 1px, transparent 1px 22px);
}

.ei-shell[data-theme="nasrani-kasih"] {
  --font-display: "Cormorant Infant", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;
  --display-weight: 600;
  --photo-shape: 50% 50% 50% 50% / 40% 40% 40% 40%;
  --cover-shape: 999px 999px 0.5rem 0.5rem;
  --rule: 1px solid;
  --ornament: "✢" / "";
}

.ei-shell[data-theme="floral-peony"] {
  --font-display: "Italiana", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --display-weight: 400;
  --photo-shape: 50%;
  --cover-shape: 3rem;
  --card-radius: 1.75rem;
  --ornament: "✿" / "";
  --pattern: radial-gradient(var(--motif) 1.5px, transparent 2px) 0 0 / 16px 16px;
}

.ei-shell[data-theme="floral-melati"] {
  --font-display: "Gilda Display", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --display-weight: 400;
  --photo-shape: 999px;
  --cover-shape: 999px 999px 2rem 2rem;
  --card-radius: 1.25rem;
  --ornament: "❃" / "";
  --pattern:
    radial-gradient(circle, var(--motif) 2px, transparent 2.5px) 0 0 / 28px 28px,
    radial-gradient(circle, var(--motif) 1px, transparent 1.5px) 14px 14px / 28px 28px;
}

.ei-shell[data-theme="deco-gatsby"] {
  --font-display: "Poiret One", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, sans-serif;
  --display-weight: 400;
  --cover-shape: 0;
  --photo-shape: 999px 999px 0 0;
  --avatar-shape: 0;
  --card-radius: 0;
  --btn-radius: 0;
  --frame: 4px double;
  --rule: 3px double;
  --ornament: "◆ ◇ ◆" / "";
  --pattern: repeating-linear-gradient(90deg, var(--motif) 0 1px, transparent 1px 18px);
}

.ei-shell[data-theme="retro-senja"] {
  --font-display: "Abril Fatface", Georgia, serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --display-weight: 400;
  --cover-shape: 2.5rem;
  --photo-shape: 999px 999px 0 0;
  --avatar-shape: 999px 999px 0 0;
  --card-radius: 1.5rem;
  --ornament: "✺" / "";
  /* Sunset arcs. */
  --pattern: repeating-radial-gradient(circle at 50% 110%, var(--motif) 0 6px, transparent 6px 24px);
}

.ei-shell[data-theme="minimal-satu"] {
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --cover-shape: 0;
  --photo-shape: 0;
  --avatar-shape: 0;
  --card-radius: 0;
  --btn-radius: 0;
  --ornament: "—" / "";
}

.ei-shell[data-theme="minimal-noir"] {
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --display-weight: 400;
  --cover-shape: 0.5rem;
  --photo-shape: 0.5rem;
  --avatar-shape: 0.5rem;
  --card-radius: 0.5rem;
  --btn-radius: 0.5rem;
  --rule: 1px solid;
}

.ei-shell[data-theme="rustic-kayu"] {
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --cover-shape: 1.5rem;
  --photo-shape: 1rem;
  --avatar-shape: 1rem;
  --card-radius: 0.75rem;
  --btn-radius: 0.75rem;
  --frame: 2px dashed;
  --rule: 1px dashed;
  --ornament: "❦" / "";
  /* Kraft paper grain. */
  --pattern: repeating-linear-gradient(0deg, var(--motif) 0 1px, transparent 1px 7px);
}

.ei-shell[data-theme="rustic-kebun"] {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --cover-shape: 2rem 0.5rem;
  --photo-shape: 2rem 0.5rem;
  --avatar-shape: 50% 0;
  --card-radius: 1.5rem 0.5rem;
  --ornament: "❧" / "";
  --pattern: radial-gradient(ellipse 4px 8px, var(--motif) 90%, transparent) 0 0 / 30px 30px;
}

.ei-shell[data-theme="pantai-ombak"] {
  --font-display: "Satisfy", cursive;
  --font-body: "Quicksand", system-ui, sans-serif;
  --display-weight: 400;
  --cover-shape: 2rem;
  --photo-shape: 50%;
  --card-radius: 1.5rem;
  --ornament: "≈" / "";
  /* Waves. */
  --pattern: radial-gradient(circle at 50% 100%, transparent 8px, var(--motif) 9px 10px, transparent 11px) 0 0 / 26px 13px;
}
