/* Local fonts and ordinary document flow. No scripts or build step. */
:root {
  color-scheme: light;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #292929;
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.layout { max-width: 43rem; margin: 0 auto; padding: 3.5rem 2rem 2rem; }
a { color: #314f68; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #172f42; text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #314f68; outline-offset: 4px; }

.site-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 3rem; }
.site-name { margin: 0; color: inherit; font-size: 1.375rem; font-weight: 600; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9375rem; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { overflow-wrap: break-word; }
h1 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
h2 { margin: 1.75rem 0 .75rem; font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 1rem; }
section { margin-top: 2.25rem; }
section h2 { margin-top: 0; }
.meta, .project-meta { color: #646464; font-size: .9375rem; }
.project-meta { margin-bottom: 1.75rem; }
.work-list { margin: 0; }
.work-list > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; margin-bottom: .8rem; }
dd { margin: 0; }
.document-links { margin-top: 1.25rem; font-size: .9375rem; }
.employment-list { margin: 0; }
.employment-list > div { margin-bottom: .85rem; }
.employment-list dd { font-size: .9375rem; }
.employment-list .meta { display: inline-block; margin-left: .5rem; }
.employment-list dd > .meta:first-child { margin-left: 0; }
.closing { margin-top: 2rem; }
footer { display: flex; gap: 1.25rem; margin-top: 3rem; font-size: .9375rem; }

.photo-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: center; }
.photo-preview a, .photo-gallery a { display: block; }
.photo-preview img, .photo-gallery img { display: block; width: 100%; height: auto; }
.photography-layout { max-width: 60rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; align-items: center; margin-top: 2rem; }
.photo-gallery figure { margin: 0; min-width: 0; }
.photo-gallery .gallery-opening { grid-column: 1 / -1; }
.photo-gallery .gallery-portrait { grid-column: 1 / -1; width: calc((100% - 1.5rem) / 2); justify-self: center; }
nav a[aria-current="page"] { text-decoration: underline; }

.skip-link { position: absolute; top: .5rem; left: .5rem; padding: .4rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

@media (max-width: 34rem) {
  .layout { padding: 2rem 1.25rem; }
  .site-header { display: block; margin-bottom: 2rem; }
  nav { margin-top: .75rem; }
  .work-list > div { grid-template-columns: 1fr; gap: .15rem; margin-bottom: 1rem; }
  .photo-preview { gap: .5rem; }
  .photo-gallery { grid-template-columns: 1fr; gap: 1.5rem; }
  .photo-gallery .gallery-portrait { width: 100%; }
}

@media print {
  .layout { max-width: none; padding: 0; }
  nav, footer, .skip-link { display: none; }
  section { break-inside: avoid; }
}
