/* Thats Just Kieran. Black and white type, the photos do the work.
   Type follows the Squarespace site: Proxima Nova and DIN Condensed there,
   system fonts here so nothing loads from another server. */

:root {
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --condensed: "DIN Condensed", "DINCondensed-Bold", "Bahnschrift Condensed", "Roboto Condensed",
    "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --ink: #000;
  --muted: #666;
  --rule: #e6e6e6;
  --pad: clamp(20px, 4vw, 56px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: #fff;
}

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

a { color: inherit; }
p a, dd a { text-underline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: 8px 14px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.menu-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 22px var(--pad); }
  .logo { font-size: 17px; }
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: 14px 0; border: 0; }
  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- page frame ---------- */

body:not(.home) { display: flex; flex-direction: column; min-height: 100vh; }
main { display: block; flex: 1 0 auto; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--pad) 72px;
}

.wrap.narrow > * { max-width: 640px; }

.page-title,
.about-text h1 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .17s, color .17s;
}
.button:hover { background: #000; color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  padding: 44px var(--pad) 52px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.site-footer p {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer p a { text-decoration: none; }
.site-footer p a:hover { text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; justify-content: center; gap: 22px; }
.social a, .cover-social a { display: inline-flex; color: inherit; }
.social svg { width: 22px; height: 22px; }
.social a:hover { opacity: .6; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
svg .dot, svg .fill { fill: currentColor; stroke: none; }

/* ---------- portfolio ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
.lead-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.lead-item picture, .lead-item img { width: 100%; height: 100%; }
.lead-item img { object-fit: cover; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile { display: block; text-decoration: none; }
.tile-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f2f2;
}
.tile-img picture, .tile-img img { width: 100%; height: 100%; }
.tile-img img { object-fit: cover; transition: opacity .25s; }
.tile:hover .tile-img img { opacity: .82; }
.tile-count {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 26px;
  padding: 3px 7px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  transition: opacity .25s;
}
.tile:hover .tile-count, .tile:focus-visible .tile-count { opacity: 1; }
.tile-title {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .wrap { padding-top: 36px; padding-bottom: 52px; }
  .page-title, .about-text h1 { font-size: 19px; margin-bottom: 22px; }
  .lead-grid { gap: 10px; margin-bottom: 44px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .tile-count { opacity: 1; top: 8px; right: 8px; }
}

/* ---------- gallery ---------- */

.g-meta { max-width: 720px; margin-bottom: 40px; }
.g-meta p { margin: 0 0 1em; color: #222; }

.g-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.g-item {
  display: block;
  flex: var(--ar) 1 calc(var(--ar) * 300px);
  background: #f2f2f2;
  cursor: zoom-in;
}
.g-item img { width: 100%; }
.g-fill { flex: 10 1 0; }

.g-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.g-pager a { text-decoration: none; }
.g-pager a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .g-grid { gap: 10px; }
  .g-item { flex-basis: 100%; }
  .g-pager { font-size: 11px; }
}

/* ---------- contact, about, 404 ---------- */

.contact-list { margin: 0 0 36px; }
.contact-list dt {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 4px 0 0; font-size: 18px; }

.about {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.about-text p { margin: 0 0 1.1em; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

.notfound p { margin: 0 0 1em; }
.button-row { margin-top: 28px; }

/* ---------- home ---------- */

.home { background: #111; color: #fff; }

.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}

.cover-copy {
  position: absolute;
  top: 50%;
  left: 52%;
  right: var(--pad);
  transform: translateY(-50%);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.cover-copy h1 {
  margin: 0 0 32px;
  font-family: var(--condensed);
  font-stretch: condensed;
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.cover-buttons { margin: 0 0 30px; padding: 0; list-style: none; }
.cover-buttons a {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .17s, color .17s;
}
.cover-buttons a:hover { background: #fff; color: #111; }

.cover-social { display: flex; gap: 12px; }
.cover-social a {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  transition: background-color .17s, color .17s;
}
.cover-social a:hover { background: #fff; color: #111; }
.cover-social svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .cover-copy { left: var(--pad); top: auto; bottom: 12vh; transform: none; }
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.lb[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lb-stage picture { display: contents; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb button {
  position: absolute;
  background: none;
  border: 0;
  padding: 12px;
  color: #000;
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.lb button:hover { opacity: .55; }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 28px !important; }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 28px !important; }
.lb-count {
  position: absolute;
  top: 26px;
  left: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}
body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lb-stage { padding: 56px 0; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .tile-img img, .tile-count { transition: none; }
}
