/* Shared portfolio system. The original blue / purple / yellow / red palette is retained.
   Photos and authored content remain the source of each page's identity. */
:root {
  --surface: #edf3fb;
  --line: rgba(106,70,156,.23);
  --ui-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-size: 13px;
  --chapter-nav-size: 18px;
  --menu-detail-size: 15px;
  --radius: 16px;
}
body { background: var(--blue); color: var(--ink); }
.site-header, .site-header.is-scrolled { background: var(--surface); border-color: var(--line); }
.site-header > .wordmark { font-size: clamp(24px,1.7vw,30px); letter-spacing: -.02em; }
.site-header nav { gap: 8px; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 24px; font: 500 var(--nav-size)/1.4 var(--ui-font); letter-spacing: .01em; color: var(--purple); }
.site-header nav a::after { display: none; }
.site-header nav a:hover { background: rgba(106,70,156,.08); color: var(--purple); }
.site-header nav a[aria-current="page"] { background: var(--purple); color: var(--surface); }
.menu-toggle { min-height: 44px; color: var(--purple); }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 5px; }
html { scroll-padding-top: 120px; }

/* Page title, section title, project title, UI label: separate, consistent roles. */
main h1:not(.home-copy h1) { font-size: clamp(64px,8vw,144px); line-height: 1.04; letter-spacing: -.05em; }
.section-heading h2 { font: 400 clamp(32px,3.4vw,48px)/1.12 var(--serif); letter-spacing: -.035em; text-transform: none; }
.chapter-copy h3 { font-size: clamp(32px,2.7vw,44px); line-height: 1.15; letter-spacing: -.035em; }
.community-section h2 { font-size: clamp(36px,3.4vw,52px); line-height: 1.12; }
.research-title h2 { font-size: clamp(29px,2.7vw,42px); line-height: 1.18; }
.section-heading > p { font: italic 17px/1.45 var(--serif); letter-spacing: 0; color: var(--purple); }
.chapter-copy .subheading { font-size: 22px; line-height: 1.4; }
.pdf-excerpts h4 { font: 500 14px/1.5 var(--ui-font); letter-spacing: .02em; }
.excerpt-caption { font: 11px/1.5 var(--ui-font); letter-spacing: .055em; }
.timeline-context, .chapter-stage span:last-child { color: var(--ink); opacity: .75; }

/* Section rules share one weight; a short accent identifies a new reading chapter. */
.heading-rule { position: relative; height: 1px; background: var(--line); }
.heading-rule::before { content: ''; position: absolute; inset: -1px auto auto 0; width: 32px; height: 2px; background: var(--red); }
.section-heading { gap: 28px; margin-bottom: 36px; }
.chapter, .research-row, .community-section, .composition, .site-footer,
.chapter-stage, .project-principles li, .excerpt-caption { border-color: var(--line); }
.chapter-stage { padding-bottom: 22px; }
.chapter-stage span:first-child { font-size: 16px; }
.project-timeline a { border-color: var(--line); }
.project-timeline a::before { width: 7px; height: 7px; top: -4px; }

/* Architecture: accessible disclosures, no numbers or competing solid color blocks. */
.page-architecture .architecture-index { gap: 16px; padding-block: 0; margin-block: 44px 64px; background: transparent; }
.project-index-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-index-group + .project-index-group { border-left: 1px solid var(--line); }
.project-index-group summary { min-height: 100px; padding: 28px 32px; color: var(--purple); font: 400 26px/1.25 var(--serif); letter-spacing: -.015em; }
.project-index-group summary:hover, .project-index-group[open] summary { color: var(--red-ink); }
.project-index-group summary svg { width: 20px; }
.project-index-list { padding: 0 32px 24px; }
.page-architecture .architecture-index .project-index-list a { padding-block: 16px; font: 400 var(--menu-detail-size)/1.6 var(--ui-font); color: var(--ink); border-color: var(--line); }
.page-architecture .architecture-index .project-index-list a:hover,
.page-architecture .architecture-index .project-index-list a[aria-current="location"] { color: var(--red-ink); background: transparent; }
.project-index-group[data-active="true"] { border-color: rgba(106,70,156,.45); }
.signature-intro { position: relative; background: var(--surface); border-radius: var(--radius); border-left: 6px solid var(--yellow); }
.signature-intro .eyebrow { color: var(--purple); }
.project-principles strong { font-size: 16px; }
.works-intro { padding-top: 32px; }
.works-intro h2, .works-period { font-family: 'Fraunces Soft', Georgia, serif; }

/* Music / community: an open chapter track, with an active location rather than boxes. */
main .section-nav:not(.architecture-index) { justify-content: flex-start; align-items: stretch; gap: 6px 28px; background: transparent; padding-block: 0; margin-block: 44px 64px; border-bottom: 1px solid var(--line); }
main .section-nav:not(.architecture-index) a,
main .section-nav:not(.architecture-index) a:hover { position: relative; flex: 0 1 auto; width: auto; min-height: 72px; padding: 20px 4px; border: 0; border-radius: 0; gap: 0; background: transparent; color: var(--purple); font: 400 var(--chapter-nav-size)/1.4 var(--ui-font); letter-spacing: .01em; text-decoration: none; transform: none; box-shadow: none; }
main .section-nav:not(.architecture-index) a { isolation: isolate; }
main .section-nav:not(.architecture-index) a[aria-current="location"]::before { content: ''; position: absolute; inset: 14px -12px 14px; z-index: -1; border-radius: 24px; background: var(--yellow); }
main .section-nav:not(.architecture-index) a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
main .section-nav:not(.architecture-index) a:hover,
main .section-nav:not(.architecture-index) a[aria-current="location"] { color: var(--red-ink); }
main .section-nav:not(.architecture-index) a[aria-current="location"]::after { transform: scaleX(1); }

/* Research categories remain real filters. Their selected state is deliberately stronger. */
.page-research .research-filters { justify-content: flex-start; gap: 12px; background: transparent; margin-block: 8px 64px; padding-block: 22px; border-block: 1px solid var(--line); }
.page-research .research-filters button,
.page-research .research-filters button:hover { flex: 0 1 auto; min-height: 48px; width: auto; max-width: 100%; padding: 12px 22px; border: 1px solid rgba(106,70,156,.4); border-radius: 28px; background: transparent; color: var(--purple); font: 400 15px/1.5 var(--ui-font); letter-spacing: 0; text-align: left; transform: none; box-shadow: none; }
.page-research .research-filters button:hover { background: rgba(106,70,156,.07); }
.page-research .research-filters button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--surface); }
.page-research .research-filters button + button { border-left: 1px solid rgba(106,70,156,.4); }

/* Yellow and red are small moments of emphasis, rather than full-width rival surfaces. */
.keyword-rail { background: var(--surface); border-block: 1px solid var(--line); gap: 10px; padding-block: 22px; }
.keyword-rail span { border-radius: 20px; padding: 7px 14px; rotate: none; transform: none; box-shadow: none; background: var(--blue); color: var(--purple); font-size: 15px; }
.keyword-rail span::before, .keyword-rail span::after { display: none; }
.keyword-rail span:nth-child(3n+2) { background: var(--yellow); color: var(--ink); }
.keyword-rail span:nth-child(3n) { background: transparent; color: var(--red-ink); border: 1px solid rgba(169,45,60,.3); }
.directory-row:nth-child(even) { background: var(--surface); }
.directory-row { padding-block: 36px; }
.directory-row:hover { background: var(--surface); color: var(--ink); }
.directory-row:hover h2, .directory-row:hover .directory-number,
.directory-row:hover .directory-arrow svg { color: var(--red-ink); }
.directory-number { color: var(--purple); }
.composer, .community-section.yellow, .community-intro { background: var(--surface); }
.research-row:nth-child(odd) { background: var(--surface); }
.research-row:nth-child(even) { background: transparent; }
.community-section.yellow { border-block: 1px solid var(--line); }
main .text-link, main .text-link:hover { min-height: 44px; padding: 11px 18px; border: 1px solid var(--purple); border-radius: 24px; font: 500 12px/1.5 var(--ui-font); letter-spacing: .04em; background: var(--purple); color: var(--surface); gap: 12px; transform: none; box-shadow: none; }
main .text-link:hover { background: var(--red-ink); border-color: var(--red-ink); }
main .article-preview > span, main .anthologies a > span { border-radius: 24px; background: var(--purple); color: var(--surface); box-shadow: none; }
.project-film-placeholder { border-color: var(--line); border-radius: var(--radius); background: var(--surface); }
.film-symbol { border-color: var(--line); }
.play-circle { background: var(--yellow); }
.availability { color: var(--ink); opacity: .75; }
.site-footer { background: var(--blue); padding-block: 40px; }
.footer-top { padding: 0; }
.project-popup { background: var(--blue); border: 1px solid var(--line); border-radius: var(--radius); }
.project-popup-toolbar { background: var(--surface); border-color: var(--line); }
.project-popup-video summary { border-radius: 24px; }

@media (max-width: 1100px) {
  .site-header { height: 80px; }
  .site-header > .wordmark { font-size: 26px; }
  .menu-toggle { display: flex; flex-shrink: 0; }
  .site-header nav { display: none; position: absolute; top: 80px; left: var(--gutter); right: var(--gutter); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); gap: 4px; flex-direction: column; align-items: stretch; box-shadow: none; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { min-height: 52px; padding-inline: 18px; font-size: 17px; }
  .site-header nav a[aria-current="page"] { border-radius: 10px; }
  main .section-nav:not(.architecture-index) { gap: 0 24px; }
}
@media (max-width: 580px) {
  :root { --chapter-nav-size: 16px; }
  .site-header { height: 72px; gap: 12px; }
  .site-header > .wordmark { font-size: 18px; max-width: calc(100% - 68px); }
  .site-header nav { top: 72px; }
  html { scroll-padding-top: 94px; }
  .page-architecture .architecture-index { gap: 12px; margin-block: 28px 40px; }
  .project-index-group summary { min-height: 80px; padding: 22px; font-size: 23px; }
  .project-index-list { padding: 0 22px 22px; }
  main .section-nav:not(.architecture-index) { gap: 0 22px; margin-block: 28px 40px; }
  main .section-nav:not(.architecture-index) a,
  main .section-nav:not(.architecture-index) a:hover { min-height: 60px; padding: 18px 2px; }
  .page-research .research-filters { margin-bottom: 40px; gap: 10px; padding-block: 18px; }
  .page-research .research-filters button,
  .page-research .research-filters button:hover { padding: 11px 18px; font-size: 14px; }
  .signature-intro { border-radius: 12px; padding-block: 32px; }
  .section-heading { gap: 16px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 33px; }
  .section-heading > p { width: 100%; font-size: 16px; }
  .heading-rule { min-width: 30px; }
  .chapter-copy h3 { font-size: 32px; }
  .chapter-copy .subheading { font-size: 20px; }
  .community-section h2 { font-size: 36px; }
  .page-culture-and-community main .community-intro h1 { font-size: clamp(40px,11.3vw,56px); letter-spacing: -.05em; }
  .research-title h2 { font-size: 29px; }
  .directory-row { padding-block: 28px; }
  .keyword-rail { gap: 8px; padding-block: 18px; }
  .keyword-rail span { font-size: 13px; padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav a::after { transition: none; }
}
