/* UI hierarchy. Canvas category labels are intentionally managed separately. */
:root {
  --type-page: 24px;
  --type-section: 18px;
  --type-item: 16px;
  --type-body: 14px;
  --type-meta: 12px;
  --type-caption: 10px;
}
.surface-title, .collection-content h2, .group-header h2,
.art-info h2, .about-content h2, #empty h2 {
  font-size: var(--type-page);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .3px;
  color: var(--text);
}
.surface-title { margin: 6px 0 8px; }
.group-header h2 { overflow-wrap: anywhere; }
h1, .brand-wordmark strong {
  font-size: var(--type-section);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .3px;
}
h1 { margin: 12px 0 10px; }
.filter-head h2, .folder-name {
  font-size: var(--type-item);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}
.filter-head { margin-bottom: 12px; }
.intro, .collection-content > p, .group-header > p,
#artDescription, .about-content p, #empty p {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.8;
}
.header-nav, #search, .filter, .style-filter,
.segmented button, .controls button, .folder-open, #original {
  font-size: var(--type-body);
  line-height: 1.5;
}
.filter, .segmented button, .controls button, .folder-open {
  font-weight: 500;
}
.search-label, .text-button, .view-head p, .filter-note,
.scope p, .scope strong span, .bottom-bar p, .folder-count,
.folder-subtitle, #collectionCount, .dialog-brand,
#groupTags, #groupSource, .gallery-item span, .title-note,
#artTags span, dl, footer, footer .text-button, #tooltip {
  font-size: var(--type-meta);
  line-height: 1.7;
  font-weight: 400;
}
.filter .count, .controls output, .art-nav {
  font-size: var(--type-meta);
}
.folder-subtitle { line-height: 1.7; }
.group-card > * { flex-shrink: 0; }
#grid, #collectionFolders { grid-auto-rows: max-content; }
.folder-open { padding-top: 14px; }
.folder-suffix { font-size: 11px; color: #6b7784; }
.eyebrow, .small-label, .orb-corner, .orbit-label,
.edition, .dialog-brand span, footer .muted {
  font-size: var(--type-caption);
  line-height: 1.5;
  letter-spacing: 1px;
}
.eyebrow, .small-label { color: #68788d; }
.orb-corner, .orbit-label { color: #6c7989; }
.brand-wordmark small { font-size: 9px; letter-spacing: 2px; }
.scope strong { font-size: 22px; }
.scope { margin-top: 22px; }
.controls { flex-wrap: wrap; justify-content: center; }
/* Image-led folder cards: larger prints, compact supporting text. */
#collectionFolders, #grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}
.group-card { container-type: inline-size; padding: 16px 18px 18px; gap: 5px; }
.preview-fan { height: clamp(250px, 80cqw, 350px); margin-bottom: 12px; }
.preview-print {
  width: min(62cqw, 260px);
  height: auto;
  aspect-ratio: 4 / 5;
  bottom: 20px;
  padding: 6px;
  transform: translateX(calc(-50% + var(--shift)*14%)) rotate(calc(var(--shift)*5deg));
}
.group-card:focus-visible .preview-print {
  transform: translateX(calc(-50% + var(--shift)*22%)) translateY(-8px) rotate(calc(var(--shift)*8deg));
}
@media (hover: hover) {
  .group-card:hover .preview-print {
    transform: translateX(calc(-50% + var(--shift)*22%)) translateY(-8px) rotate(calc(var(--shift)*8deg));
  }
}
.group-card .folder-name { font-size: 14px; line-height: 1.5; -webkit-line-clamp: 2; }
.group-card .folder-suffix { display: none; }
.group-card .folder-count { font-size: 11px; line-height: 1.5; }
.group-card .folder-subtitle { font-size: 12px; line-height: 1.5; }
.group-card .folder-open { font-size: 12px; padding-top: 7px; }
.collection-content { padding: 38px 32px 30px; }
.collection-content > .eyebrow { padding-bottom: 12px; }
.collection-content h2 { font-size: 20px; margin: 14px 0 8px; }
.collection-content > p { font-size: 12px; line-height: 1.65; margin: 6px 0; }
#collectionFolders { margin-top: 20px; }
@media (max-width: 720px) {
  :root { --type-page: 22px; --type-section: 16px; }
  .brand-wordmark strong { font-size: 14px; letter-spacing: .2px; }
  .brand-wordmark small { font-size: 8px; letter-spacing: 1.4px; }
  .header-nav button { font-size: 0; }
  .header-nav button:after { font-size: var(--type-meta); }
  .view-head { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .view-head p { max-width: none; }
  .segmented button { padding: 8px 10px; }
  .intro { margin-bottom: 20px; }
  .filter { padding: 8px 10px; }
  .filter .count { font-size: var(--type-meta); }
  .bottom-bar { padding-left: 16px; padding-right: 16px; }
  .bottom-bar p { max-width: 340px; }
  .controls { flex-shrink: 1; }
  .controls button { padding: 8px; }
  .collection-content { padding: 44px 16px 24px; }
  .collection-content h2 { font-size: 18px; }
  #collectionFolders, #grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .group-card { padding: 12px 14px 16px; }
}
