:root {
  font-size: 17px;
  color-scheme: light;
  scrollbar-gutter: stable;
  --bg: #fbf7ef;
  --fg: #151925;
  --muted: #6d7280;
  --accent: #1a3a8e;
  --border: #e6dfd2;
  --font-display: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #fbf7ef;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 218, 124, 0.45), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(111, 153, 255, 0.22), transparent 24rem),
    linear-gradient(180deg, #fbf7ef 0%, #f5f2ec 100%);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body.sheet-open {
  overflow: hidden;
}

/* Filter chips rendered into the bottom sheet (light DOM). */
.dlp-filters {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.dlp-filters .sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.dlp-filters .sheet-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}
.dlp-filters .sheet-action {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
}
.dlp-filters .sheet-action.primary { font-weight: 600; }
.dlp-filters .sheet-action:disabled { color: var(--muted); cursor: default; }

.dlp-filters .filter-group { display: flex; flex-direction: column; gap: 0.4rem; }
.dlp-filters .filter-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.dlp-filters .chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dlp-filters .chip {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
  font: inherit;
}
.dlp-filters .chip[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.dlp-filters .chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* View transitions between the list and the detail card.
   The matched element is named `hero-image`; the rest of the page
   cross-fades via the default `root` group. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.28s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  ::view-transition-group(hero-image) {
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  }
  /* Contain the morph so the image doesn't bleed past its rounded box. */
  ::view-transition-image-pair(hero-image) {
    overflow: hidden;
    border-radius: 1rem;
  }
  ::view-transition-old(hero-image),
  ::view-transition-new(hero-image) {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
