/* /camera: every bird moment of a day (Camera 2.0, from Codex's demo, 2026-10-30). The frame and footer are the site's
   (WIDE-1); the rest is the demo's own system */
:root {
  --night:#0a0a09;
  --surface:#121310;
  --bone:#ebe6da;
  --muted:#aaa697;
  --line:#34352e;
  --amber:#d8963d;
  --sage:#b8c2a4;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,"Cascadia Mono",Consolas,monospace;
  color-scheme:dark
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--night);
  color:var(--bone);
  font:15px/1.55 var(--sans)
}
button,input,select {
  font:inherit
}
button,select {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--bone);
  padding:9px 14px
}
button,select {
  cursor:pointer
}
button:hover {
  border-color:var(--amber);
  color:var(--amber)
}
button:disabled {
  opacity:.4;
  cursor:default
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {
  outline:2px solid var(--amber);
  outline-offset:4px
}
button svg {
  width:22px;
  height:22px
}
svg {
  vertical-align:middle
}
p,h1,h2,h3 {
  margin:0
}
h1,h2 {
  font-family:var(--serif);
  font-weight:400
}
h1 {
  font-size:clamp(34px,3.7vw,54px);
  line-height:1.12;
  letter-spacing:-1.4px
}
h2 {
  font-size:29px;
  line-height:1.15
}
h3 {
  font-size:13px;
  font-weight:600
}
small {
  font-size:12px;
  color:var(--muted)
}
[hidden] {
  display:none!important
}
.symbols {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.skip {
  position:absolute;
  top:-80px;
  left:20px;
  padding:12px;
  background:var(--bone);
  color:var(--night);
  z-index:9
}
.skip:focus {
  top:10px
}
header {
  height:86px;
  display:flex;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line)
}
.wordmark {
  text-decoration:none;
  font:600 20px var(--serif);
  display:flex;
  align-items:center;
  gap:12px
}
.wordmark svg {
  width:34px;
  height:34px;
  color:var(--amber)
}
.edition {
  font:12px var(--mono);
  border-left:1px solid var(--line);
  padding-left:24px;
  color:var(--muted)
}
.edition b {
  color:var(--bone);
  font-weight:400
}
.intro {
  padding:42px 0 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:32px
}
.eyebrow {
  font:11px/1.5 var(--mono);
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--amber);
  margin-bottom:12px
}
.intro>div>p:last-child {
  margin-top:14px;
  color:var(--muted);
  font-size:16px
}
.day-picker {
  display:grid;
  gap:6px;
  min-width:240px;
  font:11px var(--mono);
  text-transform:uppercase;
  letter-spacing:1px
}
.day-picker select {
  font:14px var(--sans);
  text-transform:none;
  letter-spacing:0;
  background:var(--surface);
  padding:12px
}
.day-picker>span {
  font:10px/1.6 var(--mono);
  color:var(--muted)
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);
  border:1px solid var(--line);
  background:var(--surface)
}
.viewer {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#0d0e0b
}
.viewer-top,.viewer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  font:10px/1.5 var(--mono);
  letter-spacing:1px;
  color:var(--muted)
}
.viewer-top {
  border-bottom:1px solid var(--line)
}
.viewer-top .tiny-dot {
  background:var(--muted);
  margin-right:7px
}
.stage {
  flex:1;
  min-height:350px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden
}
.placeholder {
  padding:26px;
  text-align:center;
  max-width:560px
}
.stage-icon {
  width:86px;
  height:86px;
  color:var(--amber);
  margin-bottom:15px
}
.stage .eyebrow {
  margin-bottom:8px
}
.stage h2 {
  font-size:34px
}
.stage p:not(.eyebrow) {
  margin:12px 0 20px;
  font-size:13px;
  color:var(--muted)
}
.viewer-bottom {
  border-top:1px solid var(--line);
  font:11px/1.5 var(--sans);
  letter-spacing:0;
  min-height:50px
}
.viewer-bottom button {
  font-size:11px;
  padding:8px
}
.stage video,.stage img {
  width:100%;
  height:100%;
  max-height:450px;
  object-fit:contain
}
.stage audio {
  width:90%
}
.visit-panel {
  padding:24px;
  border-left:1px solid var(--line);
  min-width:0
}
.visit-panel>.eyebrow {
  display:flex;
  justify-content:space-between
}
.visit-panel .muted {
  margin-top:10px;
  font-size:13px;
  color:var(--muted)
}
.evidence {
  list-style:none;
  padding:0;
  margin:14px 0 20px;
  display:flex;
  flex-wrap:wrap;
  gap:7px
}
.evidence li {
  border:1px solid var(--line);
  padding:4px 8px;
  font:10px/1.5 var(--mono);
  color:var(--sage)
}
.items-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:10px
}
.items-heading span {
  font:10px var(--mono);
  color:var(--muted)
}
.items {
  max-height:265px;
  overflow:auto
}
.item {
  display:flex;
  width:100%;
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid var(--line);
  text-align:left;
  padding:10px 6px;
  font-size:12px;
  min-height:52px
}
.item svg {
  flex-shrink:0;
  width:24px;
  height:24px;
  color:var(--muted)
}
.item>span {
  display:grid;
  gap:3px;
  flex:1
}
.item small {
  font:10px var(--mono)
}
.item b {
  font:11px var(--mono);
  color:var(--muted)
}
.item[aria-pressed=true] {
  background:#25251c;
  box-shadow:inset 3px 0 var(--amber);
  color:var(--amber);
  padding-left:12px
}
.item[aria-pressed=true] svg {
  color:var(--amber)
}
.association-note {
  font-size:11px;
  color:var(--muted);
  margin-top:16px
}
.timeline-section {
  margin-top:40px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:24px
}
.section-heading .eyebrow {
  margin-bottom:5px
}
.stepper {
  display:flex;
  gap:8px
}
.stepper button {
  font-size:12px
}
.timeline-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:20px
}
.filters {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}
.filters button {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  border-color:transparent;
  padding:8px 12px
}
.filters button[aria-pressed=true] {
  background:var(--bone);
  color:var(--night)
}
.filters button span {
  font:10px var(--mono);
  opacity:.75
}
.zoom-label {
  font:11px var(--mono);
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--muted)
}
select option {
  background:var(--surface);
  color:var(--bone)
}
.zoom-label select {
  font-size:12px;
  padding:8px
}
.timeline {
  border:1px solid var(--line);
  padding:16px 24px;
  background:#11120f
}
.timeline-range {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font:10px var(--mono);
  color:var(--muted)
}
#cursor-label {
  color:var(--amber)
}
.rail {
  position:relative;
  height:98px;
  margin:15px 23px 0;
  cursor:crosshair
}
.rail-line {
  position:absolute;
  top:49px;
  left:0;
  right:0;
  height:2px;
  background:var(--line)
}
.playhead {
  position:absolute;
  top:12px;
  bottom:5px;
  width:1px;
  background:var(--amber);
  pointer-events:none;
  opacity:.55
}
.marker {
  position:absolute;
  top:25px;
  transform:translateX(-50%);
  width:48px;
  height:48px;
  padding:9px;
  background:#11120f;
  border-color:var(--line);
  z-index:1;
  color:var(--sage)
}
.marker svg {
  width:28px;
  height:28px
}
.marker.crow {
  color:var(--amber)
}
.marker.heard {
  border-style:dashed
}
.marker[aria-pressed=true] {
  background:var(--amber);
  color:var(--night);
  border-color:var(--amber);
  z-index:2
}
.marker .cluster-count {
  position:absolute;
  right:-4px;
  top:-8px;
  min-width:18px;
  padding:1px 4px;
  font:10px/1.5 var(--mono);
  background:var(--bone);
  color:var(--night);
  border:1px solid var(--night)
}
.ticks {
  display:flex;
  justify-content:space-between;
  font:10px var(--mono);
  color:var(--muted);
  margin:0 0 20px
}
.scrub-label {
  font-size:11px;
  color:var(--muted)
}
#scrubber {
  display:block;
  width:100%;
  min-height:44px;
  margin:0;
  accent-color:var(--amber);
  cursor:ew-resize
}
#scrub-help {
  font-size:11px;
  color:var(--muted)
}
.cluster-choices {
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:16px;
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.cluster-choices button {
  font-size:12px
}
.result-line {
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:16px 0;
  font-size:11px;
  color:var(--muted)
}
#result-count {
  color:var(--bone)
}
.moment-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.moment-card {
  display:flex;
  align-items:start;
  gap:12px;
  min-width:0;
  padding:16px;
  text-align:left;
  background:transparent;
  border:1px solid var(--line)
}
.moment-card>svg {
  width:29px;
  height:29px;
  flex-shrink:0;
  color:var(--sage)
}
.moment-card.crow>svg {
  color:var(--amber)
}
.moment-card>span {
  display:grid;
  gap:6px;
  min-width:0
}
.moment-card time {
  font:10px var(--mono);
  color:var(--muted)
}
.moment-card strong {
  font:400 18px/1.2 var(--serif)
}
.moment-card small {
  font-size:10px
}
.moment-card[aria-pressed=true] {
  border-color:var(--amber);
  background:#1d1c14
}
.empty {
  padding:35px;
  border:1px solid var(--line);
  text-align:center;
  color:var(--muted)
}
@media(min-width:1500px) {
  .stage {
    min-height:400px
  }
}
@media(max-width:1100px) {
  .workspace {
    grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)
  }
  .visit-panel {
    padding:18px
  }
  .moment-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .filters {
    gap:2px
  }
  .filters button {
    padding:8px
  }
  .timeline-toolbar {
    gap:8px
  }
}
@media(max-width:800px) {
  header {
    height:70px
  }
  .intro {
    align-items:start;
    gap:24px;
    flex-direction:column;
    padding:30px 0 16px
  }
  .day-picker {
    min-width:0;
    width:100%
  }
  .intro>div>p:last-child {
    font-size:14px
  }
  .day-picker select {
    width:100%
  }
  .workspace {
    grid-template-columns:1fr
  }
  .visit-panel {
    border-left:0;
    border-top:1px solid var(--line);
    padding:20px
  }
  .stage {
    min-height:300px
  }
  .stage h2 {
    font-size:30px
  }
  .stage-icon {
    width:64px;
    height:64px;
    margin-bottom:10px
  }
  .items {
    max-height:none
  }
  .moment-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:16px
  }
  .section-heading h2 {
    font-size:28px
  }
  .stepper {
    width:100%
  }
  .stepper button {
    flex:1
  }
  .timeline-toolbar {
    align-items:start;
    flex-direction:column;
    gap:14px
  }
  .filters {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .filters button {
    justify-content:center;
    font-size:11px
  }
  .zoom-label {
    align-self:flex-end
  }
  .timeline {
    padding:16px
  }
  .timeline-range {
    font-size:9px
  }
  .rail {
    margin-left:8px;
    margin-right:8px
  }
  .marker {
    width:44px;
    height:44px;
    padding:7px
  }
  .ticks {
    font-size:8px
  }
  .result-line {
    flex-direction:column;
    gap:4px
  }
  .moment-card {
    padding:12px;
    gap:9px
  }
  .moment-card strong {
    font-size:17px
  }
  .moment-card>svg {
    width:24px;
    height:24px
  }
  .moment-card time {
    font-size:9px
  }
  .edition {
    padding-left:16px
  }
  header {
    gap:16px
  }
  .wordmark {
    font-size:18px
  }
  .wordmark svg {
    width:28px;
    height:28px
  }
  .viewer-top {
    padding:12px;
    font-size:9px
  }
  .viewer-bottom {
    padding:12px;
    flex-wrap:wrap
  }
  .viewer-bottom>p {
    flex:1
  }
  .stage video,.stage img {
    max-height:300px
  }
}
@media(prefers-reduced-motion:no-preference) {
  button {
    transition:border-color .15s,background .15s,color .15s
  }
}

/* The site's frame and footer (WIDE-1): the page grows with the screen */
:root { --gutter: clamp(24px, 4vw, 64px); --ash: #8e887b; }
header, main { max-width: 1760px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
header a { text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 24px; font: 600 12px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; }
header nav a { padding: 12px 0; }
header nav a:hover, .wordmark:hover { color: var(--amber); }
.tiny-dot { width: 6px; height: 6px; background: var(--amber); display: inline-block; }
.stage video, .stage img { display: block; background: #000; }
.media-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 11px/1.5 var(--sans); }
.media-links a { color: var(--bone); text-decoration-color: var(--amber); text-underline-offset: 3px; padding: 12px 0; }
.source { font: 400 13px/1.5 var(--sans); color: var(--muted); margin: 0 0 20px; max-width: 70em; }
footer { max-width: 1760px; margin: 48px auto 0; padding: 24px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font: 500 12px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
footer a { color: var(--bone); text-decoration-color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 1700px) { .moment-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  header { gap: 12px; }
  header .edition { display: none; }  /* the wordmark and the way back fit one line at 390 */
  header nav { gap: 16px; letter-spacing: 0.1em; white-space: nowrap; }
  header nav a { padding: 16px 0; }
  footer { padding: 24px 16px 40px; }
  footer a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}
