/* Mackie Builder - one stylesheet for every page */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: #515151;
  font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: #463c3c; }
a:hover { color: #d84800; }
img { max-width: 100%; height: auto; display: block; }

.site-head, main, .site-foot { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px;
  padding-top: 26px;
}
.brand .name {
  display: block; font-weight: 300; font-size: 36px; line-height: 1.15;
  color: #797979; text-decoration: none; letter-spacing: 0;
}
.brand .tag { margin: 2px 0 0; font-weight: 300; font-size: 14px; color: #797979; }
.brand .tag a { color: inherit; text-decoration: none; white-space: nowrap; }
.brand .tag a:hover { color: #d84800; }
.cta { font-size: 24px; color: #d84800; text-decoration: none; white-space: nowrap; }
.cta:hover { text-decoration: underline; }
.menu {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 26px;
  margin-top: 14px; padding: 10px 0; border-top: 1px solid #cfcfcf; border-bottom: 1px solid #cfcfcf;
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.menu a { color: #666; text-decoration: none; padding: 4px 0; }
.menu a:hover { color: #463c3c; }
.menu a[aria-current="page"] { color: #463c3c; font-weight: 700; }

/* Text */
main { padding-top: 28px; padding-bottom: 40px; }
h1 { margin: 0 0 14px; font-weight: 300; font-size: 32px; line-height: 1.2; color: #797979; }
h2 { margin: 30px 0 8px; font-weight: 700; font-size: 17px; color: #515151; }
p, ul { margin: 0 0 14px; max-width: 68ch; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
.lead { font-weight: 300; font-size: 19px; color: #797979; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.tags li { margin: 0; padding: 4px 12px; border: 1px solid #cfcfcf; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #797979; }
.contact { font-style: normal; display: grid; gap: 4px; margin-bottom: 26px; font-weight: 300; font-size: 26px; line-height: 1.3; }
.contact a { color: #797979; text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: #d84800; }
.contact .who { font-size: 17px; font-weight: 700; color: #515151; }

/* Two columns on wide screens (Mission, Services) */
.split { display: grid; gap: 28px; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* Photos: shown at their real size, shrinking to fit small screens */
.photos { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 18px 0 26px; }
.photos figure, .album figure { margin: 0; max-width: 100%; }
/* Albums: even grid */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; margin: 18px 0 26px; }
.album img { width: 100%; }
figcaption { margin-top: 5px; font-size: 13px; color: #797979; }

/* Project list */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 18px; }
.card { text-decoration: none; color: #515151; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 7px; }
.card:hover span { color: #d84800; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 34px; padding-top: 14px; border-top: 1px solid #cfcfcf; font-size: 14px; }
.pager a { text-decoration: none; color: #666; }
.pager a:hover { color: #d84800; }

.site-foot { padding-top: 16px; padding-bottom: 36px; border-top: 1px solid #cfcfcf; font-size: 13px; color: #797979; }
.site-foot p { max-width: none; margin: 0; }
.site-foot a { color: inherit; text-decoration: none; }

@media (max-width: 560px) {
  .site-head { grid-template-columns: 1fr; align-items: start; padding-top: 18px; }
  .brand .name { font-size: 30px; }
  .cta { font-size: 20px; }
  .menu { gap: 2px 18px; }
  h1 { font-size: 26px; }
  .contact { font-size: 21px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
