:root { color-scheme: light; --ink: #142628; --muted: #536267; --accent: #075e65; --line: #d8dfe0; --paper: #fff; --background: #F0F8FF; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--background); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; z-index: 2; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.masthead, .room, .footer { width: min(1120px, calc(100% - 5rem)); margin-inline: auto; }
.masthead { display: grid; justify-items: center; gap: .6rem; padding: 1.2rem 0 1.1rem; border-bottom: 1px solid var(--line); text-align: center; }
.brand-banner { display: block; width: min(66.6667%, 426.6667px); height: auto; }
.tagline { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.35; letter-spacing: .025em; color: var(--accent); }
.selection { display: grid; grid-template-columns: 1.28fr 1fr; align-items: baseline; gap: clamp(2rem, 5vw, 4.5rem); padding: 2.1rem 0 1.8rem; }
h1 { font-size: 1rem; font-weight: 400; margin: 0 0 .7rem; color: var(--muted); }
.picker { width: 100%; min-width: 0; }
.picker label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; }
select { width: 100%; min-height: 50px; border: 1px solid #aab8bb; border-radius: 4px; background: white; color: var(--ink); padding: .75rem 2.2rem .75rem .8rem; font-size: 1rem; text-overflow: ellipsis; cursor: pointer; }
.bird-view { display: grid; grid-template-columns: 1.28fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.artwork { margin: 0; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); position: relative; }
.art-label, .eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.art-stage { display: grid; place-items: center; min-height: 385px; padding: 1.5rem .5rem; }
.art-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 365px; object-fit: contain; }
figcaption { border-top: 1px solid #e8eded; padding-top: 1rem; font-size: .875rem; color: var(--muted); }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); }
h2 { font: 600 2.9rem/1.14 Arial, Helvetica, sans-serif; letter-spacing: .025em; margin: 0 0 1rem; overflow-wrap: anywhere; }
.bird-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bird-heading h2 { flex: 1; min-width: 0; margin: 0; }
.bird-photo-frame { flex: 0 0 auto; width: 96px; overflow: hidden; border-radius: 4px; }
.bird-photo { display: block; width: 96px; height: auto; }
.bird-photo-frame.crop-right .bird-photo { width: 160px; }
.photo-credit { color: var(--muted); font-size: .875rem; margin: -.25rem 0 1.15rem; line-height: 1.6; }
.explanation { max-width: 34ch; margin: 0 0 2.3rem; color: var(--muted); }
.listening-panel { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
h3 { margin: 0 0 .85rem; font-size: 1rem; font-weight: 600; }
audio { display: block; width: 100%; height: 54px; border-radius: 27px; }
.player-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.duration-label { white-space: nowrap; }
.sound-credit { font-size: .875rem; line-height: 1.8; color: var(--muted); margin: 1.5rem 0 0; }
.unavailable { margin: 0; color: var(--muted); }
.audio-error, .image-error { color: #a02727; font-size: .9375rem; }
.retry-button { padding: .6rem .9rem; border: 1px solid var(--accent); background: white; color: var(--accent); border-radius: 4px; cursor: pointer; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer p { margin: 0; }
.noscript { text-align: center; margin: 1rem; }
@media (max-width: 760px) { .masthead, .room, .footer { width: calc(100% - 2.5rem); } .masthead { padding-top: 1.5rem; } .brand { font-size: 1.7rem; } .tagline { font-size: 1.3rem; } .selection { display: block; padding: 1.4rem 0; } h1 { margin-bottom: 1.1rem; } .picker { width: 100%; } .bird-view { grid-template-columns: 1fr; gap: 1.8rem; } .artwork { padding: 1.1rem; } .art-stage { min-height: 320px; padding: 1rem .25rem; } .art-stage img { max-height: 330px; } h2 { font-size: 2.3rem; } .explanation { max-width: 42ch; margin-bottom: 1.4rem; } .footer { margin-top: 2rem; padding-bottom: 1.5rem; } }
@media (max-width: 440px) { .masthead { display: block; padding: 1rem 0; } .tagline { margin-top: .45rem; } .selection { padding: 1rem 0; } h1 { margin-bottom: .7rem; } .art-stage { min-height: 245px; } .art-stage img { max-height: 235px; } .bird-view { gap: 1.25rem; } .explanation { margin-bottom: 1rem; } .footer { display: block; } .footer p + p { margin-top: .35rem; } .player-note { gap: .5rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

@media (min-width: 761px) {
  .room { display: grid; grid-template-columns: 1.28fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.8rem; padding-top: 2.1rem; }
  .selection, .picker, .bird-view { display: contents; }
  #selection-title { grid-column: 1; grid-row: 1; align-self: baseline; margin: 0; }
  .picker label { grid-column: 2; grid-row: 1; align-self: baseline; margin: 0; }
  #bird-selector { grid-column: 2; grid-row: 2; align-self: start; }
  .artwork { grid-column: 1; grid-row: 2 / 4; align-self: start; }
  .bird-detail { grid-column: 2; grid-row: 3; align-self: start; }
}

audio { background-color: #fff; }
audio::-webkit-media-controls-panel { background-color: #fff; }
audio::-webkit-media-controls-enclosure { background-color: #fff; }

.photo-credit, .sound-credit { font-size: calc(.875rem - 2pt); }
