/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * genre: playful · tone: warm and curious · theme: existing Carret identity
 * structure: filterable project catalogue, conversation prompts, school invitation
 * nav: established N1b · footer: established Ft5
 * approved equal project previews; existing filter feedback; no scroll reveals
 * responsive rules reviewed in source; visual review delegated to the owner
 */
@import url('/home.css');
@import url('/student-gallery.css');

.creations-page { background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); }
.creations-page h1, .creations-page h2, .creations-page h3 { font-family: var(--font-display); font-weight: 700; font-style: normal; min-width: 0; overflow-wrap: anywhere; }
.creations-page h2 { font-size: var(--text-heading); line-height: 1.15; letter-spacing: -.035em; }
.creations-page p { color: var(--color-muted); }
.creations-page a:focus-visible, .creations-page button:focus-visible, .creations-page select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 5px; }
.creations-page .hm-header nav a[aria-current]::after { display: none; }
.creations-page .hm-header nav a[aria-current] { text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 2px; color: var(--color-accent); }
.cr-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-xl) var(--space-2xl); }
.cr-intro h1 { font-size: clamp(2rem, 9.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.04em; }
.cr-intro h1 span { color: var(--color-accent); }
.cr-intro p { max-width: 38ch; line-height: 1.65; }
.cr-gallery { padding-bottom: var(--space-2xl); }
.cr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-lg); padding-bottom: var(--space-xl); }
.cr-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.cr-filters button { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); padding: var(--space-xs) var(--space-md); min-height: 44px; background: var(--color-clear); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.cr-filters button[aria-pressed=true] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.cr-filters button:active { transform: translateY(1px); }
.cr-count { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.cr-projects [hidden] { display: none !important; }
.creations-page .cr-project h3 { font-size: var(--text-lg); line-height: 1.25; letter-spacing: -.025em; }
.creations-page .hm-story-note p { color: var(--color-purple); }
.cr-example-note { margin-top: var(--space-xl); font-size: var(--text-sm); }
.cr-conversation { padding-block: var(--space-2xl); background: var(--color-blue-soft); }
.cr-conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.cr-conversation-layout > div > p { max-width: 36ch; margin-top: var(--space-lg); line-height: 1.65; }
.cr-conversation .hm-link { margin-top: var(--space-lg); font-size: var(--text-sm); }
.cr-questions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.cr-questions li { font: 700 var(--text-md)/1.4 var(--font-display); color: var(--color-blue-dark); }
.creations-page .hm-footer { background: var(--color-orange-soft); padding-block: var(--space-2xl) var(--space-lg); }
.creations-page .hm-footer-invite p { color: var(--color-ink); }

@media (hover: hover) and (pointer: fine) {
  .cr-filters button:hover:not(:disabled):not([aria-pressed=true]) { background: var(--color-blue-soft); border-color: var(--color-accent); color: var(--color-accent-deep); }
}
@media (min-width: 40rem) {
  .cr-intro h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
  .cr-toolbar { justify-content: center; }
  .cr-count { flex-basis: 100%; text-align: center; }
  .cr-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
}
@media (min-width: 60rem) {
  .cr-intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; }
  .cr-intro p { font-size: 1.125rem; }
  .cr-gallery { padding-bottom: var(--space-3xl); }
  .cr-toolbar { justify-content: space-between; }
  .cr-count { flex-basis: auto; text-align: right; }
  .creations-page .cr-project h3 { font-size: 1.625rem; }
  .cr-conversation { padding-block: var(--space-3xl); }
  .cr-conversation-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-2xl); align-items: center; }
  .cr-questions li { font-size: var(--text-lg); }
  .creations-page .hm-footer { padding-top: var(--space-3xl); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-filters button:active { transform: none; }
}

/* Public gallery: desktop catalogue, using the site's existing Studio tints. */
.creations-page .cr-intro { display: block; padding-block: var(--space-3xl) var(--space-xl); }
.creations-page .cr-intro p { max-width: 62ch; margin-top: var(--space-md); font-size: var(--text-md); }
.cr-section-intro { margin-bottom: var(--space-xl); }
.cr-section-intro p { max-width: 62ch; margin-top: var(--space-md); font-size: var(--text-md); line-height: 1.6; }
.student-gallery { padding-bottom: var(--space-3xl); }
.student-gallery .cr-toolbar { justify-content: flex-start; }
.student-gallery .cr-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
.student-gallery .cr-count { margin-left: auto; flex-basis: auto; text-align: right; }
.cr-year-filter { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.cr-year-filter select { min-height: 44px; padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); font: inherit; color: var(--color-ink); }
.student-gallery button:disabled, .cr-year-filter select:disabled { cursor: default; }
.cr-practice { background: var(--color-wash); padding-top: var(--space-3xl); }
.cr-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: var(--space-2xl); }
.cr-pages[hidden] { display: none; }
.cr-pages button { min-width: 44px; min-height: 44px; padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.cr-pages button[aria-current=page] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.cr-pages button:disabled { opacity: .45; }
.cr-pages span { min-width: 44px; text-align: center; color: var(--color-muted); }
@media (min-width: 40rem) {
  .student-gallery .cr-filters { display: flex; }
}
@media (min-width: 60rem) {
  .student-gallery .cr-toolbar { flex-wrap: nowrap; }
  .student-gallery .cr-filters { flex-basis: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .cr-pages button:hover:not(:disabled):not([aria-current=page]) { background: var(--color-blue-soft); border-color: var(--color-accent); color: var(--color-accent-deep); }
}
