@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.09d1eaa1672d.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --text: #202936;
  --muted: #626c7b;
  --line: #dfe3e9;
  --surface: #f5f7f9;
  --accent: #315f96;
  --accent-light: #edf3fa;
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .timeline-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button:disabled { cursor: default; opacity: .35; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.35; }
ul { margin: 0; padding-left: 18px; }
::selection { background: #dbe8f7; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 10px 15px; background: var(--text); color: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-title { color: var(--text); font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 27px; font-size: 12px; }
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current] { color: var(--text); font-weight: 600; }
.project-browser { padding-top: 32px; }
.browser-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.browser-heading h2 { font-size: 17px; }
.project-count { color: var(--muted); font-size: 12px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters label { display: flex; }
.search-field { border: 1px solid #cfd5de; border-radius: 3px; align-items: center; padding: 0 11px; gap: 8px; width: 260px; height: 38px; }
.search-field svg { color: var(--muted); flex-shrink: 0; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #788290; }
.multi-filter { position: relative; z-index: 2; }
.multi-filter summary { display: flex; align-items: center; height: 38px; min-width: 136px; padding: 0 30px 0 11px; border: 1px solid #cfd5de; border-radius: 3px; background: #fff; font-size: 12px; cursor: pointer; list-style: none; }
.multi-filter summary::-webkit-details-marker { display: none; }
.multi-filter summary::after { content: "⌄"; margin-left: auto; padding-left: 14px; color: var(--muted); }
.multi-filter[open] summary { border-color: var(--accent); }
.multi-filter fieldset { position: absolute; top: calc(100% + 5px); left: 0; min-width: 190px; max-height: 310px; overflow: auto; display: grid; gap: 1px; margin: 0; padding: 6px; border: 1px solid #cfd5de; border-radius: 3px; background: #fff; box-shadow: 0 5px 15px #2029361a; }
.multi-filter fieldset label { display: flex; align-items: center; gap: 8px; padding: 5px 7px; color: var(--text); font-size: 12px; cursor: pointer; }
.multi-filter fieldset label:hover { background: var(--surface); }
.multi-filter input { accent-color: var(--accent); margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; min-height: 38px; border: 1px solid #cfd5de; border-radius: 3px; background: #fff; font-weight: 500; font-size: 12px; color: var(--text); }
.button:hover { background: var(--surface); text-decoration: none; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: #264d7b; }
.clear-filter { font-size: 12px; margin-left: 4px; }
.timeline-heading { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-top: 25px; margin-bottom: 15px; }
.timeline-heading p { font-size: 11px; color: var(--muted); }
.timeline-controls { display: flex; gap: 6px; }
.icon-button { display: grid; place-items: center; width: 30px; height: 28px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 2px; font-size: 17px; }
.icon-button:hover:not(:disabled) { background: var(--surface); }
.timeline-scroll { overflow-x: auto; overflow-y: hidden; padding-top: 5px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #bdc6d2 var(--surface); }
.timeline-board { position: relative; width: 100%; min-width: var(--board-width); height: var(--board-height); }
.timeline-axis { position: absolute; top: var(--axis-y); left: var(--axis-inset); right: var(--axis-inset); height: 1px; background: #b7c1cd; }
.timeline-projects { list-style: none; padding: 0; margin: 0; }
.timeline-item { position: absolute; width: 184px; transform: translateX(-50%); }
.timeline-card { display: block; position: relative; height: 154px; color: var(--text); border: 1px solid #d4dae2; border-radius: 3px; background: #fff; overflow: hidden; }
.timeline-card:hover { border-color: #8a9caf; text-decoration: none; }
.timeline-card[aria-current="true"] { border: 2px solid var(--accent); background: var(--accent-light); }
.timeline-card img, .thumbnail-placeholder { width: 100%; height: 86px; object-fit: contain; background: #f2f4f6; border-bottom: 1px solid var(--line); }
.thumbnail-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.timeline-title { display: -webkit-box; padding: 6px 10px 0; height: 38px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; line-height: 16px; font-weight: 600; }
.timeline-card time { display: block; padding: 3px 10px 7px; font-size: 11px; color: var(--muted); }
.timeline-stem { position: absolute; top: 154px; left: 50%; height: var(--connector-height); width: 1px; background: #c8d0db; }
.timeline-point { position: absolute; top: calc(154px + var(--connector-height) - 4px); left: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: #8e9aac; box-shadow: 0 0 0 4px #fff; }
.timeline-card[aria-current="true"] ~ .timeline-stem, .timeline-card[aria-current="true"] ~ .timeline-point { background: var(--accent); }
.timeline-tick { position: absolute; top: calc(var(--axis-y) + 12px); transform: translateX(-50%); color: var(--muted); font-size: 11px; white-space: nowrap; }
.timeline-tick::before { content: ""; position: absolute; height: 5px; width: 1px; top: -12px; left: 50%; background: #b7c1cd; }
.project-detail { margin-top: 14px; padding-top: 30px; padding-bottom: 60px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.project-overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; }
.project-overview-copy { min-width: 0; }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.project-heading h1, .project-heading h2 { font-size: 25px; letter-spacing: -.025em; }
.project-permalink { white-space: nowrap; font-size: 11px; }
.project-permalink span { margin-left: 4px; }
.project-summary { color: #4d5868; font-size: 14px; line-height: 1.75; }
.project-metadata { display: flex; gap: 40px; margin-top: 22px; font-size: 12px; }
.project-metadata dt { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.project-metadata dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tags a { padding: 3px 7px; background: #f3f5f7; border: 1px solid #e0e5eb; border-radius: 2px; font-size: 10px; color: #4c5d72; }
.tags a:hover { border-color: #a3b6cd; text-decoration: none; }
.project-time { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-time dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.project-time dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.project-time dd { margin: 0; font-size: 16px; font-weight: 500; }
.project-time .unknown { font-size: 11px; color: var(--muted); font-weight: 400; }
.project-time > p, .date-note { font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.edit-project { display: inline-block; margin-top: 12px; font-size: 11px; }
.project-media { min-width: 0; }
.gallery-trigger { display: block; position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 2px; overflow: hidden; }
.gallery-trigger:hover { border-color: #8a9caf; }
.project-cover img { width: 100%; height: 295px; object-fit: contain; }
.image-enlarge { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; background: #fff; border: 1px solid var(--line); color: #4f5e72; font-size: 10px; }
.project-cover figcaption { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-thumbnails a { flex: 0 0 98px; }
.gallery-thumbnails img { width: 96px; height: 65px; object-fit: contain; }
.project-facts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.project-facts h3, .project-notes h3 { font-size: 13px; margin-bottom: 12px; }
.project-facts ul { color: #4d5868; font-size: 12px; line-height: 1.75; }
.project-facts li + li { margin-top: 6px; }
.project-notes { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 15px; }
.project-notes summary { font-size: 12px; font-weight: 500; cursor: pointer; width: fit-content; }
.project-notes-content { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 52px; margin-top: 23px; }
.project-notes-content p { font-size: 12px; line-height: 1.8; color: #4d5868; }
.project-notes-content p + p { margin-top: 12px; }
.empty-state { padding: 55px 0; }
.empty-state h1, .empty-state h3 { font-size: 21px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state .button { margin-top: 20px; }
.standalone-project { padding: 27px 0 60px; }
.back-link { display: inline-block; font-size: 12px; margin-bottom: 28px; }
.related-projects { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 15px 25px; }
.related-projects h2 { width: 100%; font-size: 13px; }
.related-projects a { font-size: 12px; }
.lightbox { width: min(1120px,94vw); max-height: 94vh; border: 1px solid #cbd3df; border-radius: 3px; padding: 48px 20px 18px; background: #fff; color: var(--text); }
.lightbox::backdrop { background: #192436c4; }
.lightbox > img { max-width: 100%; max-height: 76vh; object-fit: contain; margin: auto; }
.lightbox > p { font-size: 12px; text-align: center; margin-top: 12px; }
.lightbox-count { display: block; text-align: center; margin-top: 7px; font-size: 11px; color: var(--muted); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); }
.lightbox-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox-arrow:hover { background: var(--surface); }
.lightbox-previous { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-close { position: absolute; right: 15px; top: 10px; display: flex; align-items: center; gap: 12px; padding: 0; background: transparent; border: 0; font-size: 12px; }
.lightbox-close span { font-size: 23px; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .project-overview, .project-facts { gap: 32px; }
  .project-heading { flex-wrap: wrap; gap: 6px; }
  .project-heading h1, .project-heading h2 { font-size: 23px; }
  .project-cover img { height: 280px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 76px; gap: 16px; }
  .site-title { font-size: 22px; }
  .site-header nav { font-size: 11px; gap: 18px; }
  .project-browser { padding-top: 25px; }
  .search-field { flex: 1 1 100%; width: 100%; }
  .filters label:not(.search-field) { flex: 1; min-width: 0; }
  .multi-filter { flex: 1; min-width: 0; }
  .multi-filter summary { width: 100%; min-width: 0; }
  .filters .button { min-width: 76px; }
  .timeline-heading { margin-top: 21px; }
  .timeline-scroll { margin-right: -18px; padding-right: 18px; }
  .project-detail { padding-top: 24px; }
  .project-overview, .project-facts, .project-notes-content { grid-template-columns: 1fr; gap: 25px; }
  .project-overview-copy { order: 0; }
  .project-media { order: 1; }
  .project-heading { justify-content: space-between; }
  .project-heading h1, .project-heading h2 { font-size: 24px; }
  .project-summary { font-size: 13px; }
  .project-time { margin-top: 20px; }
  .project-cover img { height: 300px; }
  .project-facts { margin-top: 26px; padding-top: 23px; }
  .project-notes-content { gap: 24px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .site-title { font-size: 20px; }
  .site-header nav { gap: 12px; font-size: 10px; }
  .project-cover img { height: 235px; }
  .project-time dl { gap: 8px; }
  .project-time .unknown { font-size: 10px; }
  .filters { gap: 8px; }
  .multi-filter summary { padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .multi-filter summary::after { padding-left: 7px; }
  .project-metadata { gap: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: border-color .12s, background-color .12s; }
}
@media print {
  .site-header nav, .filters, .timeline-controls, .gallery-thumbnails, .project-permalink, .image-enlarge { display: none; }
  .wrap { width: 100%; }
  .timeline-scroll { overflow: visible; }
  .timeline-board { min-width: 0; }
  .project-overview, .project-facts { break-inside: avoid; }
}
