body[data-theme="glass"] {
  --paper: #f1d2c3;
  --surface: #fff4eb;
  --ink: #321c29;
  --muted: #523644;
  --line: #825662;
  --accent: #702843;
  --display: Prata, Georgia, serif;
  --corner: 20px;
  --page-width: 1040px;
  --catalogue-card-sheet: linear-gradient(148deg, #fff7f1de, #f7ded4d5 74%, #ffeae0de);
}

[data-theme="glass"] .glass-replica {
  background-color: var(--anna-background-color, var(--paper));
  background-image: var(--anna-background, none);
  background-position: var(--anna-background-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}

[data-theme="glass"] .site-header {
  border-color: #fff3eb66;
  background: #fdf1e8b8;
}

[data-theme="glass"] .hero-title {
  font-weight: 400;
  letter-spacing: -.049em;
}

[data-theme="glass"] .home-hero .hero-title { max-width: min(100%, 11ch); }

body[data-theme="glass"] .home-hero {
  --cover-ink: #fff9f6;
  --cover-button-ink: #fff9f6;
  text-shadow: 0 2px 18px #2d122a80;
}

body[data-theme="glass"] .home-hero::after {
  background: linear-gradient(90deg, #341827de, #392032ab 38%, #45243b45 72%, #45243b10);
}

body[data-theme="glass"][data-site-color]:not([data-site-image]):not([data-background-tone="dark"]) .home-hero {
  --cover-ink: #321c29;
  text-shadow: none;
}

:where([data-theme="glass"] :is(.browse-catalogue, .occasion-card, .work-card, .detail-copy, .dialog-close)) {
  position: relative;
}

[data-theme="glass"] :is(.browse-catalogue, .occasion-card, .work-card, .detail-copy, .dialog-close) {
  isolation: isolate;
  --glass-sheet: var(--catalogue-card-sheet);
  --glass-rim: #fff4eead;
  border: 1px solid var(--glass-rim);
  border-radius: var(--corner);
  color: #321c29;
  background: var(--glass-sheet);
  box-shadow: 0 10px 26px #42223824, inset 0 1px 0 #fff8ec72;
}

[data-theme="glass"] .browse-catalogue {
  --corner: 999px;
  min-height: 52px;
  padding-inline: 23px;
  text-shadow: none;
}

[data-theme="glass"] :is(.occasion-card, .work-card) { padding: clamp(7px, 1vw, 13px); }
[data-theme="glass"] :is(.occasion-media, .work-card .gallery-stage) {
  border-radius: calc(var(--corner) - 7px);
}
[data-theme="glass"] .occasion-media { aspect-ratio: 1.5; }
[data-theme="glass"] :is(.occasion-caption, .work-caption) { padding: 9px 5px 5px; }
[data-theme="glass"] :is(.work-price, .occasion-arrow) { color: #582e43; }

[data-theme="glass"] .home-catalogue .catalogue-head {
  --glass-sheet: var(--catalogue-card-sheet);
  isolation: isolate;
  padding: 9px clamp(12px, 2vw, 20px) 10px;
  border: 1px solid #fff7edd3;
  border-radius: 17px;
  background: var(--glass-sheet);
  box-shadow: 0 7px 24px #4222381f, inset 0 1px 0 #fff9;
}
body[data-theme="glass"] .home-catalogue .catalogue-title {
  position: relative;
  padding: 0;
  background: none;
  color: #321c29;
}

body[data-theme="glass"] [data-glass-active] { background: transparent; }

body[data-theme="glass"] .view:not(.view--home) .collection-hero {
  --glass-sheet: var(--catalogue-card-sheet);
  position: relative;
  isolation: isolate;
  border: 1px solid #fff4eead;
  background: var(--glass-sheet);
  color: #321c29;
  box-shadow: 0 10px 26px #42223824, inset 0 1px 0 #fff8ec72;
}
body[data-theme="glass"] .collection-hero .hero-intro { color: #523644; }

[data-theme="glass"] .glass-optic,
[data-theme="glass"] .glass-pixels,
[data-theme="glass"] .glass-replica,
[data-theme="glass"] .glass-scene-wash {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

[data-theme="glass"] .glass-optic {
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  contain: paint;
}

[data-theme="glass"] .glass-pixels { overflow: hidden; }

[data-theme="glass"] .glass-optic::after {
  position: absolute;
  inset: 0;
  content: '';
  background: var(--glass-sheet);
  box-shadow: inset 0 1px 0 #fff8e9a9;
  border-radius: inherit;
}

[data-theme="glass"] :is(.glass-replica, .glass-scene-wash) {
  inset: 0 auto auto 0;
  max-width: none;
}

[data-theme="glass"] .work-dialog {
  padding: 7px;
  border-color: #fff2ebaa;
  background: #e3ccdfd1;
  box-shadow: 0 18px 68px #28132080, inset 0 1px 1px #fff9;
  backdrop-filter: blur(13px) saturate(1.14);
}
[data-theme="glass"] .work-dialog::backdrop { background: #311a2b91; }
[data-theme="glass"] .work-dialog .gallery-stage {
  border-radius: calc(var(--corner) - 6px);
}
[data-theme="glass"] .dialog-close {
  --glass-sheet: linear-gradient(145deg, #fffaf1ab, #ead1c673);
  border-radius: 50%;
  padding: 0;
}
@media (pointer: coarse) {
  [data-theme="glass"] .work-dialog { background: #ead7e7eb; backdrop-filter: none; }
}

@media (max-width: 680px) {
  body[data-theme="glass"] .home-hero::after {
    background: linear-gradient(0deg, #341827eb, #392032b7 37%, #45243b2c 72%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-theme="glass"] .browse-catalogue { transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
  [data-theme="glass"] .browse-catalogue:active { transform: scale(.98); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  body[data-theme="glass"] .view:not(.view--home) .collection-hero { background: #fff5ee; }
  body[data-theme="glass"] :is(.browse-catalogue, .occasion-card, .work-card, .site-header, .work-dialog, .detail-copy, .dialog-close, .catalogue-head) {
    --glass-sheet: #fff5ee;
    background: #fff5ee;
  }
  [data-theme="glass"] .glass-optic { display: none; }
}
