/* Bartlett Projects: page layout on top of the house style (tokens.css, house.css). */

main { max-width: 1180px; margin: 0 auto; padding: 48px 56px 24px; box-sizing: border-box; }
.intro { max-width: 720px; font-size: 20px; line-height: 30px; }

section { margin-top: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 24px; }
.section-head .note { font-size: 13px; line-height: 19px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 32px; }

.project { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.project h2 a { text-decoration-thickness: 3px; }
.project p { max-width: 60ch; }
.project .more { font-size: 14px; line-height: 20px; }
.project .credit { font-size: 13px; line-height: 19px; color: var(--muted); }
.project .credit a { color: var(--muted); }
.project .credit a:hover { color: var(--ink); }

.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--concrete); margin-bottom: 8px; text-decoration: none; background: var(--receipt); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.thumb:hover { border-color: var(--ink); }

.icon-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; height: 100%; }
.icon-thumb img { width: 96px; height: 96px; object-fit: contain; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.key { font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 8px; background: var(--white); border: 1.5px solid var(--ink); }

.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--concrete); }
.contact li:last-child { border-bottom: 1px solid var(--concrete); }

footer { max-width: 1180px; margin: 56px auto 0; padding: 12px 56px 40px; box-sizing: border-box; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--muted); }

@media (max-width: 640px) {
  main { padding: 32px 20px 16px; }
  .intro { font-size: 18px; line-height: 28px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .contact li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  footer { padding: 12px 20px 32px; }
}

/* Band text lines up with the content column on wide screens */
@media (min-width: 641px) { .band { padding-inline: max(56px, calc((100% - 1180px) / 2 + 56px)); } }

html { scroll-behavior: smooth; }

/* Contact rules stop at the widest entry on wider screens */
@media (min-width: 641px) { .contact { width: max-content; max-width: 100%; } }
.contact-note { display: block; font-size: 13px; line-height: 19px; color: var(--muted); margin-top: 2px; }
