/* The Galecia Group archive.
   Palette from the 2016 galecia.com theme (rust #a1561c, teal #006687, navy #002855) on a cool white,
   with an archival-box blue-grey for panels. Focus-area colors were run through the dataviz
   palette validator (all pairs pass in light mode). */

@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/alegreya-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #fbfcfc;
  --surface: #ffffff;
  --box: #e3e9ed;
  --board: #b9c6ce;
  --rule: #d3dce2;
  --ink: #1d2a37;
  --ink-2: #4b5967;
  --navy: #002855;
  --link: #006687;
  --link-hover: #00475f;
  --rust: #a1561c;
  --preview: #fbeecb;

  --amh: #a1561c;
  --rfid: #00839c;
  --workflow: #eda100;
  --systems: #6250d6;
  --other: #9aa6ae;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.3125rem; font-weight: 700; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Preview banner (PREVIEW builds only) */
.preview-bar { background: var(--preview); border-bottom: 1px solid #ecd9a1; font-size: 0.9375rem; }
.preview-bar p { max-width: var(--wrap); margin: 0 auto; padding: 0.5rem var(--gutter); }

/* Masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: var(--wrap); margin: 0 auto; padding: 0.75rem var(--gutter); display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.brand img { display: block; width: 9.5rem; height: auto; }
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a, .lc-link { color: var(--ink); font-weight: 500; font-size: 1.0625rem; text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .lc-link:hover { color: var(--navy); border-bottom-color: var(--board); }
.site-nav a[aria-current] { color: var(--navy); border-bottom-color: var(--rust); }
.lc-link { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
@media (max-width: 52rem) {
  .site-nav { order: 3; flex-basis: 100%; }
  .lc-link { margin-left: auto; }
}

main { display: block; }

/* Reading text */
.prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62; max-width: 36em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin: 0 0 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin-left: 0; padding-left: 1.25em; border-left: 3px solid var(--board); color: var(--ink-2); }
.prose img { border-radius: 2px; }
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: 1rem; display: block; overflow-x: auto; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.4em 0.6em; text-align: left; vertical-align: top; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose pre { white-space: pre-wrap; font-size: 0.9rem; }
/* Bootstrap grid classes left in old Drupal bodies */
.prose .row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.prose .row > [class*="col-"] { flex: 1 1 14rem; }
.prose .row > .col-sm-3, .prose .row > .col-md-3 { flex: 0 1 11rem; }
.prose .img-thumbnail { border: 1px solid var(--rule); padding: 3px; background: var(--surface); }
.prose .img-responsive { display: block; }
.prose .pull-right, .prose .float-right { float: right; margin: 0 0 1em 1.25em; }
.prose .pull-left, .prose .float-left { float: left; margin: 0 1.25em 1em 0; }
.prose::after { content: ""; display: table; clear: both; }

.lede { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.5; max-width: 34em; color: var(--ink); }

/* Home: hero and shelf */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1rem; }
.hero-text { max-width: 46rem; }
.nowrap { white-space: nowrap; }
.hero-text .lede, .hero-text p { max-width: 36em; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.02; margin-bottom: 0.4em; }
.hero-text p:not(.lede) { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }

.shelf { position: relative; margin: 2.5rem 0 0; }
.shelf-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.shelf-rack { position: relative; display: flex; align-items: flex-end; min-width: 50rem; padding-top: 1.5rem; }
.shelf-rack::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1.75rem; height: 12px;
  background: var(--board); border-radius: 2px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.shelf-year { flex: var(--w) 1 0; min-width: 4px; display: flex; flex-direction: column; }
.shelf-books { list-style: none; margin: 0 0 12px; padding: 0 2px; height: clamp(9rem, 22vw, 13rem); display: flex; align-items: flex-end; gap: 2px; }
.shelf-books li { flex: var(--bw) 1 0; min-width: 2px; height: 100%; display: flex; align-items: flex-end; }
.spine {
  position: relative; display: block; width: 100%; height: var(--h);
  border-radius: 2px 2px 0 0;
  /* A little roundness so the bars read as spines, not chart columns */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.14)),
    var(--c, var(--other));
  transform-origin: 50% 100%;
  transition: transform 160ms ease-out, filter 160ms ease-out;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 5ms);
}
.spine span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Headband line near the top of every volume */
.spine::before { content: ""; position: absolute; left: 0; right: 0; top: 7%; height: 2px; background: rgba(0, 0, 0, 0.16); }
/* Call-number label on the project volumes */
.spine--project::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 7%; min-height: 5px; background: rgba(255, 255, 255, 0.6); border-radius: 1px; }
.spine:hover, .spine:focus-visible, .spine.is-active { transform: translateY(-8px); filter: saturate(1.15) brightness(1.06); }
.spine:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.spine--amh, .swatch--amh, .mark--amh { --c: var(--amh); }
.spine--rfid, .swatch--rfid, .mark--rfid { --c: var(--rfid); }
.spine--workflow, .swatch--workflow, .mark--workflow { --c: var(--workflow); }
.spine--systems, .swatch--systems, .mark--systems { --c: var(--systems); }
.spine--other, .swatch--other, .mark--other { --c: var(--other); }
@keyframes rise { from { transform: scaleY(0); } }

.shelf-label { position: relative; height: 1.75rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.shelf-label > span { position: absolute; left: 50%; top: 0.3rem; transform: translateX(-50%); white-space: nowrap; }
.shelf-label.minor > span { display: none; }
.shelf-year:first-child .shelf-label > span { left: 0; transform: none; }
.shelf-year:nth-last-child(2) .shelf-label > span { left: auto; right: 0; transform: none; }

.shelf-tip {
  position: absolute; z-index: 2; max-width: 22rem; pointer-events: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 40, 85, 0.12); padding: 0.55rem 0.75rem; font-size: 0.9375rem; line-height: 1.35;
}
.shelf-tip .tip-title { display: block; font-weight: 700; color: var(--navy); }
.shelf-tip .tip-meta { display: block; color: var(--ink-2); }

.shelf figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-2); }
.shelf figcaption p { margin: 0; max-width: 34rem; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); }
.legend-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.swatch { display: inline-block; width: 0.55rem; height: 1rem; border-radius: 1px 1px 0 0; background: var(--c); flex: none; }

/* Home: LibraryCall band */
.librarycall { background: var(--box); margin-top: 3rem; }
.librarycall-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.25rem var(--gutter); display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 36rem) auto; gap: 1rem 2.5rem; align-items: center; }
.librarycall h2 { margin: 0; font-size: 1.75rem; }
.librarycall p { margin: 0; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55; }
.button { display: inline-block; background: var(--navy); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; text-decoration: none; padding: 0.65rem 1.1rem; border-radius: 3px; white-space: nowrap; }
.button:hover { background: #013a78; color: #fff; }
@media (max-width: 60rem) { .librarycall-inner { grid-template-columns: 1fr; } }

/* Home: sections */
.focus, .quotes, .record { max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 0; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.75rem 3rem; }
.focus-list h3 { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.3em; }
.focus-list h3 a { color: var(--navy); text-decoration-color: var(--board); }
.focus-list h3 a:hover { text-decoration-color: currentColor; }
.focus-list p { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; }

.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2rem 3rem; margin-bottom: 1rem; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 0.6rem; }
.quote blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.55; }
.quote figcaption { font-size: 0.9375rem; color: var(--ink-2); }
.quote-name { display: block; font-weight: 700; color: var(--ink); }
.quotes--all .quote { max-width: 36em; margin-bottom: 1.75rem; }

.record { padding-bottom: 4rem; }
.record-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 2.5rem; }
.record-list dt { font-size: 1.3125rem; font-weight: 700; margin-bottom: 0.25rem; }
.record-list dt a { color: var(--navy); }
.record-list dd { margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }

/* Standalone pages */
.page-grid { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.page-grid.has-menu { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem 3.5rem; }
@media (max-width: 52rem) { .page-grid.has-menu { grid-template-columns: 1fr; } }
.section-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.section-nav li a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.3; }
.section-nav li.sub a { padding-left: 1.75rem; font-size: 0.9375rem; color: var(--ink-2); }
.section-nav a:hover { color: var(--navy); border-left-color: var(--board); }
.section-nav a[aria-current] { color: var(--navy); font-weight: 700; border-left-color: var(--rust); }
.page-body h1 { max-width: 24em; }
.related { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--box); border-radius: 3px; max-width: 40em; }
.related .prose { font-size: 1.0625rem; }
.related .prose > :last-child { margin-bottom: 0; }

/* Item pages: projects, publications, presentations, posts */
.item { max-width: var(--wrap); margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.item-head { max-width: 46rem; margin-bottom: 1.75rem; }
.crumbs { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.item-head h1 { font-size: clamp(1.875rem, 4vw, 2.625rem); }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 1rem 0 0; }
.facts dt { font-size: 0.875rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 0.45rem; }
.byline { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.archive-note { max-width: 40rem; margin: 0 0 1.75rem; padding: 0.6rem 0.9rem; background: var(--box); border-radius: 3px; font-size: 0.9375rem; color: var(--ink-2); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin: 2rem 0; max-width: 60rem; }
.shots figure { margin: 0; }
.shots img { display: block; border: 1px solid var(--rule); border-radius: 3px; }
.work-grid.has-thumb { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.work-thumb { border: 1px solid var(--rule); border-radius: 3px; }
@media (max-width: 40rem) { .work-grid.has-thumb { grid-template-columns: 1fr; } .work-thumb { max-width: 12rem; } }

.attachments { max-width: 40rem; margin: 2rem 0 0; }
.attachments h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.attachments ul { list-style: none; margin: 0; padding: 0; }
.attachments li { padding: 0.45rem 0; border-top: 1px solid var(--rule); }
.attachments li:last-child { border-bottom: 1px solid var(--rule); }
.file-meta { color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; }
.topics { max-width: 40rem; margin: 1.5rem 0 0; color: var(--ink-2); }
.topics-label { color: var(--ink-2); }

.pager { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 46rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.pager a { max-width: 22rem; text-decoration: none; color: var(--navy); font-weight: 500; line-height: 1.3; }
.pager a span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
.pager a:hover { text-decoration: underline; }
.pager-newer { margin-left: auto; text-align: right; }

/* Listing pages */
.list-page { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.list-head { max-width: 46rem; margin-bottom: 1.5rem; }
.year-group { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.year-group > h2 { font-size: 1.3125rem; margin: 0.1rem 0 0; font-variant-numeric: tabular-nums; }
.year-group > h2 .count { display: block; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }
@media (max-width: 40rem) { .year-group { grid-template-columns: 1fr; } .year-group > h2 { margin-bottom: 0.5rem; } .year-group > h2 .count { display: inline; margin-left: 0.5rem; } }
.entries { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.entry { display: grid; grid-template-columns: 0.55rem minmax(0, 1fr); column-gap: 0.85rem; padding: 0.35rem 0; }
.entry .mark { grid-row: span 2; width: 0.55rem; height: 1.15rem; margin-top: 0.2rem; border-radius: 1px 1px 0 0; background: var(--c); }
.entry-title { font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
.entry-meta { grid-column: 2; color: var(--ink-2); font-size: 0.9375rem; }
.entries--dated .entry, .entries--topic .entry { grid-template-columns: 4.5rem minmax(0, 1fr); }
.entries--dated time { color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.entries--dated .entry-meta { grid-column: 2; }
.entries--topic .entry { grid-template-columns: 1fr; }
.entry-kind { font-size: 0.875rem; color: var(--ink-2); }
.entry[hidden], .year-group[hidden] { display: none; }

.year-jump ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-variant-numeric: tabular-nums; }

.filters { margin-top: 1.25rem; }
.filters p { margin: 0 0 0.4rem; font-size: 0.9375rem; color: var(--ink-2); }
.filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  display: inline-flex; align-items: center; gap: 0.45rem; font: 500 0.9375rem/1 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; padding: 0.5rem 0.75rem; cursor: pointer;
}
.filters button:hover { border-color: var(--board); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Clients page */
.client-list { margin-top: 2.5rem; max-width: 46rem; }
.client-list dl { margin: 1rem 0 0; }
.client-list dl > div { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.client-list dt { font-weight: 700; }
.client-list dd { margin: 0.15rem 0 0 1rem; }
.quotes--all { margin-top: 2.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #dbe5ee; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.25rem var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 2.5rem; font-size: 0.9375rem; }
.footer-inner p { margin: 0 0 0.5rem; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.0625rem; }
.site-footer a { color: #a9d8ec; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .spine { animation: none; transition: none; }
  .spine:hover, .spine:focus-visible, .spine.is-active { transform: none; }
}

@media print {
  .masthead, .site-footer, .preview-bar, .pager, .shelf, .filters { display: none; }
  body { background: #fff; }
}
