/* 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;
  --yellow-wash: color-mix(in srgb, var(--yellow) 18%, var(--surface));
  --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-family: var(--ui-font); font-weight: 500; font-size: clamp(24px,1.7vw,30px); line-height: 1.4; 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: var(--yellow-wash); color: var(--purple); }
.site-header nav a[aria-current="page"] { background: var(--yellow); color: var(--purple); }
.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: -2px auto auto 0; width: 64px; max-width: 100%; height: 5px; background: var(--yellow); }
.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 { padding-block: 38px; }
.timeline-label { grid-column: 1 / -1; justify-self: start; margin: 0 0 42px; padding: 6px 12px; border-radius: 4px; background: var(--yellow); color: var(--purple); font: 500 11px/1.5 var(--ui-font); letter-spacing: .12em; }
.project-timeline a { border-top: 2px solid rgba(106,70,156,.35); padding: 42px 28px 20px 0; }
.project-timeline a::before { display: none; }
.project-timeline a:last-child::after { content: ''; position: absolute; right: 0; top: -6px; width: 9px; height: 9px; border-top: 2px solid var(--purple); border-right: 2px solid var(--purple); transform: rotate(45deg); }
.timeline-icon { position: absolute; top: -24px; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--purple); border-radius: 50%; background: var(--yellow); color: var(--purple); transition: background .2s, color .2s; }
.timeline-icon svg { width: 24px; height: 24px; }
.project-timeline a:hover .timeline-icon, .project-timeline a:focus-visible .timeline-icon { background: var(--purple); color: var(--yellow); }

/* Architecture: accessible disclosures, no numbers or competing solid color blocks. */
.page-architecture .architecture-index { gap: 16px; padding: 0; margin-block: 44px 64px; background: transparent; }
.project-index-group { background: var(--surface); border: 0; border-left: 6px solid var(--yellow); border-radius: var(--radius); overflow: hidden; }
.project-index-group + .project-index-group { border-left: 6px solid var(--yellow); }
.project-index-group summary { min-height: 100px; padding: 28px var(--gutter); 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: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--yellow); }
.project-index-list { padding: 0 var(--gutter) 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-left-color: var(--yellow); }
.signature-intro { position: relative; background: var(--surface); border-radius: var(--radius); border-left: 6px solid var(--yellow); }
.page-architecture .signature-intro .eyebrow { color: var(--purple); background: var(--yellow); width: fit-content; padding: 6px 12px; border-radius: 4px; }
.project-principles strong { font-size: 16px; }
.works-intro { padding: 48px; background: var(--surface); border-radius: var(--radius); border-left: 6px solid var(--yellow); }
.works-intro .eyebrow { margin-bottom: 24px; color: var(--purple); background: var(--yellow); width: fit-content; padding: 6px 12px; border-radius: 4px; }
.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(--yellow); border-color: var(--purple); color: var(--purple); }
.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. */
.directory-row:nth-child(even) { background: var(--surface); }
.directory-row:nth-child(2) { background: color-mix(in srgb, var(--yellow) 35%, 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); }
.composer, .community-section.yellow { background: var(--yellow-wash); }
.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; border-top: 4px solid var(--yellow); }
.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; }
}
/* Research introductions consistently lead with publication or recognition. */
.page-research .research-row-inner { grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); align-items: start; gap: 7%; }
.page-research .research-row-inner > img { width: 100%; height: auto; max-height: 380px; object-fit: contain; grid-column: 1; grid-row: 1; }
.page-research .research-copy { grid-column: 2; grid-row: 1; }
.research-copy .research-topic { font-size: 14px; color: var(--purple); margin-bottom: 18px; }
.research-copy .publication-meta { margin-bottom: 22px; font: italic 500 clamp(20px,1.5vw,24px)/1.45 var(--serif); color: var(--red-ink); letter-spacing: 0; }
.research-copy .research-paper-title { margin-bottom: 20px; font: 700 clamp(20px,1.5vw,25px)/1.4 var(--ui-font); color: var(--ink); letter-spacing: -.015em; }
.research-keywords { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 24px 0; padding: 0; list-style: none; }
.research-keywords li { color: var(--purple); background: var(--yellow-wash); border-bottom: 2px solid var(--yellow); padding: 3px 8px; border-radius: 4px 4px 0 0; font: 500 13px/1.6 var(--ui-font); overflow-wrap: anywhere; }
@media (max-width: 580px) {
  .page-research .research-row-inner { grid-template-columns: 1fr; gap: 28px; }
  .page-research .research-row-inner > img { width: 150px; max-height: 220px; justify-self: start; }
  .page-research .research-copy { grid-column: 1; grid-row: 2; }
}
/* Music chapters: instrument symbols, a mounted photograph, and open photo essays. */
.page-culture-and-community .role { color: var(--red-ink); }
.community-activity-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: currentColor; }
.community-activity-icon svg { width: 24px; height: 24px; }
.page-culture-and-community .section-nav a { display: flex; align-items: center; gap: 10px !important; }
.literature-copy { max-width: 850px; }
.literature-photo-wall { width: 100%; margin: 40px 0 0; }
.literature-photo-wall .music-photo-grid { gap: 30px; }
.literature-photo-wall .gallery { aspect-ratio: 4 / 3; }
.literature-cities > .gallery img { object-fit: contain; }
@media (max-width: 800px) {
  .literature-photo-wall { width: 100%; }
  .literature-photo-wall .music-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
}
@media (max-width: 580px) {
  .literature-photo-wall .music-photo-grid { grid-template-columns: 1fr; gap: 24px; }
}
.music-activity-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--purple); }
.music-activity-icon svg { width: 42px; height: 42px; }
.page-music .section-heading { gap: 18px; }
.page-music .section-nav a { display: flex; align-items: center; gap: 10px !important; }
.page-music .section-nav .music-activity-icon svg { width: 24px; height: 24px; }
.recognition-frame { height: auto; padding: 18px; background: var(--surface); border: 7px solid var(--purple); outline: 1px solid rgba(106,70,156,.25); outline-offset: 5px; box-shadow: 0 12px 28px rgba(48,34,63,.13), inset 0 0 0 1px rgba(106,70,156,.18); }
.recognition-photo-stack { display: grid; grid-template-columns: 1fr; align-self: start; gap: 30px; min-width: 0; }
.recognition-frame img { width: 100%; height: auto; object-fit: contain; }
.music-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 32px; }
.music-photo-grid > .gallery { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.music-photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.music-photo-grid > .gallery:hover img { transform: scale(1.025); }
.keyboard .music-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); width: 86%; max-width: 1000px; margin: 48px auto 24px; gap: 44px 40px; }
.keyboard .music-photo-grid > .gallery { aspect-ratio: 4 / 3; }
.keymelody-copy h3 { margin-bottom: 22px; }
@media (max-width: 800px) {
  .music-photo-grid { gap: 16px; }
  .recognition-frame { padding: 12px; border-width: 5px; }
}
@media (max-width: 580px) {
  .music-activity-icon svg { width: 32px; height: 32px; }
  .page-music .section-heading { gap: 12px; }
  .page-music .section-heading h2 { flex: 1; min-width: 0; }
  .music-photo-grid { grid-template-columns: 1fr; }
  .keyboard .music-photo-grid { grid-template-columns: 1fr; width: 100%; max-width: 440px; gap: 28px; margin-block: 32px 20px; }
}
@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; }
}
@media (max-width: 580px) {
  .project-timeline { padding-block: 42px 20px; }
  .project-timeline a { margin-left: 23px; min-height: 150px; border-top: 0; border-left: 2px solid rgba(106,70,156,.35); padding: 0 0 36px 42px; }
  .timeline-icon { left: -24px; top: -5px; }
  .project-timeline a:last-child::after { right: auto; left: -6px; top: auto; bottom: 0; transform: rotate(135deg); }
  .works-intro { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav a::after { transition: none; }
}

/* Community shares the Architecture / Music image-led introduction. */
.community-hero .photo-hero-image { inset: 0 0 0 auto; width: 72%; }
.community-hero .photo-hero-image img { object-position: 60% center; }
.community-hero .intro-copy { width: 43%; }
.community-hero::after {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 30%, rgba(210,227,247,.94) 40%, rgba(210,227,247,.65) 50%, rgba(210,227,247,.12) 68%, transparent 80%);
}
@media (max-width: 800px) {
  .community-hero { min-height: 0; }
  .community-hero .photo-hero-copy { padding-block: 40px calc(56.25vw + 40px); }
  .community-hero .intro-copy { width: 100%; max-width: 640px; }
  .community-hero .photo-hero-image { inset: auto 0 0; width: 100%; height: 56.25vw; }
  .community-hero::after {
    background: linear-gradient(180deg, var(--blue) calc(100% - 56.25vw), rgba(210,227,247,.2) calc(100% - 56.25vw + 50px), transparent calc(100% - 56.25vw + 80px));
  }
}

/* A shared signature and contact closing for all five pages. */
.site-footer { padding: 0; background: var(--surface); border-top: 4px solid var(--yellow); }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 48px 26px; }
.site-footer .footer-top { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; margin: 0; }
.site-footer .footer-top .wordmark { font-size: 72px; line-height: 1.2; }
.footer-school { margin: 0; color: var(--purple); font: 15px/1.5 var(--ui-font); letter-spacing: .04em; }
.footer-contact { margin: 0; color: var(--purple); font: 14px/1.7 var(--ui-font); }
.footer-contact > a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.footer-contact > a:hover { color: var(--red-ink); text-decoration-color: currentColor; }
.footer-colophon { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-colophon p { margin: 0; font: 13px/1.5 var(--ui-font); color: var(--purple); }
.footer-color-marks { display: flex; gap: 6px; }
.footer-color-marks i { display: block; width: 32px; height: 6px; border-radius: 3px; background: var(--purple); }
.footer-color-marks i:nth-child(2) { background: var(--yellow); }
.footer-color-marks i:nth-child(3) { background: var(--red); }
@media (max-width: 800px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 24px; }
  .site-footer .footer-top .wordmark { font-size: 60px; }
  .footer-colophon { padding-top: 20px; }
}

/* Printed poetry collections lead the story; PDF covers become compact reading links. */
.poetry-feature { align-items: center; }
.poetry-feature > .poetry-feature-photo { height: auto; padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; box-shadow: 8px 8px 0 var(--yellow); }
.poetry-feature > .poetry-feature-photo img { height: auto; object-fit: contain; }
.poetry-anthologies { gap: 24px; margin-top: 30px; }
main .poetry-anthologies > a { display: flex; flex-direction: row; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); min-width: 0; }
.poetry-anthologies img { width: 66px; height: 94px; flex-shrink: 0; object-fit: contain; }
main .poetry-anthologies a > span { margin: 0; padding: 0; min-height: 44px; background: transparent; border: 0; border-radius: 0; color: var(--purple); font: 17px/1.4 var(--serif); gap: 10px; }
.poetry-anthologies a:hover > span { color: var(--red-ink); }
@media (max-width: 800px) {
  .poetry-feature { grid-template-columns: 1fr; gap: 32px; }
  .poetry-feature > .poetry-feature-photo { max-width: 640px; width: calc(100% - 8px); }
}
@media (max-width: 580px) {
  .poetry-anthologies { gap: 16px; }
  main .poetry-anthologies > a { gap: 10px; }
  .poetry-anthologies img { width: 46px; height: 66px; }
  main .poetry-anthologies a > span { font-size: 15px; gap: 6px; }
}

/* Community action labels share a clear, bold type treatment. */
.page-culture-and-community .community-section h2 { font-weight: 700; }
.page-culture-and-community #key-heritage .text-link,
.page-culture-and-community #the-voice .article-preview > span {
  font: 700 12px/1.5 var(--ui-font); letter-spacing: .04em;
}
.page-culture-and-community #the-voice .article-preview > span { padding: 11px 18px; min-height: 44px; }
.page-culture-and-community .poetry-anthologies a > span { font-weight: 700; }

.page-research .paper-links .text-link { font-weight: 700; }

/* Consistent arrow-free controls throughout the site. */
button,
summary,
main .text-link,
main .text-link:hover,
.site-header nav a,
main .section-nav a,
.page-research .research-filters button,
.page-research .research-filters button:hover,
.project-index-group summary,
.page-architecture .architecture-index .project-index-list a,
.project-popup-video summary,
.video-label,
.project-card-name,
.project-popup-toolbar .close-project,
.lightbox-toolbar .close-gallery,
.directory-row h2,
.project-timeline .timeline-date,
.project-timeline .timeline-phase,
.project-timeline .timeline-context,
.composition audio .text-link,
.article-preview > span { font-weight: 700; }
.photo-arrow { width: 60px; border-radius: 22px; font: 700 12px/1.5 var(--ui-font); }
.project-timeline a:last-child::after { display: none; }

/* Every heading uses bold weight, including headings inside project dialogs. */
body :is(h1, h2, h3, h4, h5, h6) { font-weight: 700 !important; }

main .section-nav:not(.architecture-index) a,
main .section-nav:not(.architecture-index) a:hover { font-weight: 700; }
main .poetry-anthologies > a { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface) 70%, transparent); transition: border-color .2s, background .2s, box-shadow .2s; }
main .poetry-anthologies > a:hover,
main .poetry-anthologies > a:focus-visible { background: var(--surface); border-color: var(--purple); box-shadow: 0 4px 0 var(--yellow); }
main .poetry-anthologies a:hover > span { background: transparent; color: var(--red-ink); box-shadow: none; transform: none; }
.anthology-reader { width: min(1200px, 94vw); height: 90dvh; max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 12px; background: var(--surface); color: var(--purple); box-shadow: 0 24px 80px rgba(30,20,45,.25); overflow: hidden; }
.anthology-reader::backdrop { background: rgba(30,22,45,.55); backdrop-filter: blur(8px); }
.anthology-reader[open] { display: flex; flex-direction: column; }
.anthology-reader-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 30px; border-bottom: 1px solid var(--line); }
.anthology-reader-header .eyebrow { margin: 0 0 8px; font: 700 10px/1.5 var(--ui-font); letter-spacing: .12em; }
.anthology-reader-header h2 { margin: 0; font: 700 32px/1.15 var(--serif); }
.anthology-reader-actions { display: flex; align-items: center; gap: 16px; }
main .anthology-reader-actions .text-link { border: 0; padding: 11px 18px; font: 700 12px/1.5 var(--ui-font); color: var(--surface); background: var(--purple); }
.anthology-reader-actions .anthology-close { padding: 10px 18px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--purple); font: 700 12px/1.5 var(--ui-font); cursor: pointer; }
.anthology-reader-actions :is(a,button):hover { color: var(--red-ink); }
main .anthology-reader-actions .text-link:hover { color: var(--surface); background: var(--red-ink); }
.anthology-reader-body { flex: 1; min-height: 0; display: grid; place-items: center; padding: 24px; background: var(--blue); overflow: auto; }
.anthology-page { background: white; box-shadow: 0 8px 30px rgba(30,22,45,.12); }
.anthology-status { font: 14px/1.6 var(--ui-font); text-align: center; max-width: 360px; }
.anthology-reader [hidden] { display: none; }
.anthology-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 12px 20px; border-top: 1px solid var(--line); font: 700 12px/1.5 var(--ui-font); }
.anthology-pagination button { color: var(--purple); background: transparent; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font: inherit; cursor: pointer; }
.anthology-pagination button:disabled { opacity: .35; cursor: default; }
.anthology-pagination label { display: flex; align-items: center; gap: 8px; }
.anthology-page-number { width: 52px; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--purple); background: transparent; font: inherit; }
@media (max-width: 580px) {
  main .poetry-anthologies > a { padding: 12px; }
  .anthology-reader-header { padding: 18px; gap: 16px; flex-wrap: wrap; }
  .anthology-reader-header h2 { font-size: 26px; }
  .anthology-reader-actions { width: 100%; justify-content: space-between; }
  .anthology-reader-body { padding: 12px; }
  .anthology-pagination { gap: 12px; padding-inline: 10px; }
}

/* The homepage signature becomes the shared site identity. */
.site-header > .wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; flex-shrink: 0; max-width: none; letter-spacing: 0; text-decoration: none; color: var(--purple); }
.brand-signature { font: 700 48px/1 'Great Vibes', 'Snell Roundhand', cursive; font-synthesis: weight; white-space: nowrap; }
.brand-descriptor { font: 700 10px/1.4 var(--ui-font); letter-spacing: .12em; }
.site-header .wordmark span { color: inherit; }
.album-autoplay-toggle { position: absolute; z-index: 3; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 9px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--purple); font: 700 11px/1.4 var(--ui-font); white-space: nowrap; cursor: pointer; }
.album-autoplay-toggle:hover { background: var(--yellow); }
@media (max-width: 800px) {
  .brand-signature { font-size: 38px; }
  .brand-descriptor { font-size: 9px; }
}
