/* adambarnso.com, rebuilt from the Squarespace "Flatiron" layout */
:root {
  --bg: #f5f5f5;
  --text: #8f8f8f;
  --heading: #333;
  --nav: #aaa;
  --gutter: 5vw;
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/2 var(--font);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 40px var(--gutter) 34px;
}
.logo { flex: 0 1 1060px; min-width: 0; }
.logo img { width: 100%; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 1.6em;
  max-width: 11em;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-header nav a { color: var(--nav); text-decoration: none; transition: color .2s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--heading); }

main { padding: 0 var(--gutter) 6rem; }

/* ---------- homepage grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ddd;
  text-decoration: none;
}
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(245, 245, 245, .88);
  color: var(--heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.tile:hover .tile-title, .tile:focus-visible .tile-title { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.02); }

/* ---------- project / page content (12-column rows from Squarespace) ---------- */
.content { max-width: 1440px; margin: 0 auto; padding-top: 48px; }
.row { display: flex; align-items: flex-start; margin: 0 -17px; }
.col { flex: 0 0 var(--w); max-width: var(--w); padding: 0 17px; min-width: 0; }
.row .row { margin: 0 -17px; }

.text, .image, .video { margin: 17px 0; }
.spacer-fixed { height: 34px; }

.text h1 {
  margin: .4em 0 .5em;
  color: var(--heading);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}
.text h2 {
  margin: .6em 0;
  color: var(--heading);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}
.text h3 {
  margin: 1em 0 .9em;
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.text p { margin: 0 0 1.4em; }
.text p:last-child { margin-bottom: 0; }
.text strong { color: #777; }
.text a { color: #666; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

.image { margin: 17px 0; }
.image img { width: 100%; }
.image figcaption { margin-top: .6em; font-size: 13px; line-height: 1.6; }

.video { position: relative; height: 0; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.notfound { text-align: center; padding: 10vh 0; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .site-header { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px var(--gutter) 20px; }
  .logo { flex: none; width: 100%; }
  .content { padding-top: 8px; }
  .site-header nav { max-width: none; justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  .tile-title { opacity: 1; inset: auto 0 0 0; background: rgba(245, 245, 245, .9); font-size: 15px; padding: .6rem 1rem; }
  .row { display: block; margin: 0; }
  .col { max-width: none; padding: 0; }
  .col-pad { display: none; }
  .spacer { padding-bottom: 0 !important; height: 12px; }
  body { font-size: 14px; line-height: 1.85; }
}
