/* ben wright design — static rebuild
   Fonts: the original used Proxima Nova (Adobe Fonts). Mulish is a close free
   stand-in. To use Proxima Nova again, add your Adobe Fonts web project <link>
   to each page and change --font below to "proxima-nova". */
:root {
  --font: "Mulish", "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cover-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: #454545;
  --heading: #222;
  --muted: #8a8a8a;
  --rule: #ddd;
  --bg: #fff;
  --header-h: 120px;
  --gutter: 35px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2 { color: var(--heading); font-weight: 200; font-size: 42px; line-height: 1.2; margin: 0 0 .6em; letter-spacing: 0; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--bg);
}
.top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 1.5em; }
.top nav a {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color .25s ease-out;
}
.top nav a:hover, .top nav a.active { color: var(--heading); border-color: var(--heading); transition: none; }
.logo img { height: 60px; width: auto; }
body:not(.splash) { padding-top: var(--header-h); }

/* ---------- splash / home ---------- */
.cover {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: #fff center / cover no-repeat;
  text-align: center; padding: 40px 20px;
  font-family: var(--cover-font); color: #000;
}
.cover h1 { font: 400 39px/1 var(--cover-font); letter-spacing: -.01em; color: #000; margin: 0 0 .55em; }
.cover p { font-size: 20px; line-height: 1.4; letter-spacing: .04em; margin: 0 0 1.8em; }
.btn {
  display: inline-block; cursor: pointer;
  font: 400 14px/1 var(--cover-font); letter-spacing: .2em; text-transform: uppercase;
  color: #000; background: transparent;
  border: 2px solid #000; padding: 14px 20px 14px 22px;
  transition: background .2s, color .2s;
}
.btn:hover { background: #000; color: #fff; }

/* ---------- project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.tile-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: #fff;
  background: rgba(15, 15, 15, .7);
  opacity: 0; transition: opacity .2s ease-out;
}
.tile-title { font-weight: 300; font-size: 44px; letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px; }
.tile-view { font-size: 16px; letter-spacing: .05em; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile:hover { color: #fff; }

@media (hover: none) {
  .tile-label { opacity: 1; inset: auto 0 0 0; background: rgba(15, 15, 15, .6); padding: 12px 16px; }
  .tile-title { font-size: 24px; margin: 0; }
  .tile-view { display: none; }
}

/* ---------- project page ---------- */
.project-wrap { position: relative; }
.meta {
  position: fixed; top: var(--header-h); left: 0; width: 330px;
  max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto;
  padding: 0 35px 40px 32px;
}
.meta h1 { margin-top: 0; }
.meta .body p { margin: 0 0 1em; }
.meta .body a { text-decoration: underline; text-underline-offset: 2px; }
.gallery { margin: 0 135px 80px 400px; max-width: 900px; }
.gallery figure { margin: 0 0 50px; }
.gallery img { width: 100%; background: #f4f4f4; }
.gallery .video { width: 100%; background: #000; }
.gallery .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pager { display: flex; justify-content: space-between; padding: 10px 0 20px; font-size: 15px; }
.pager a { color: var(--muted); }
.pager a:hover { color: var(--heading); }
.back {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 40;
  color: var(--muted); font-size: 15px; background: var(--bg); padding: 2px 0;
}
.back:hover { color: var(--heading); }

/* ---------- about / contact ---------- */
.page { padding: 40px var(--gutter) 100px; max-width: 1200px; margin: 0 auto; }
.about { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 300px); gap: 0 12%; justify-content: center; }
.about .portrait { width: 100%; margin-bottom: 44px; }
.about hr, .contact hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.about-info h2 { margin-bottom: 1.4em; }
.quote { margin: 0; padding: 30px 6%; }
.quote blockquote { margin: 0 0 1em; font-size: 24px; line-height: 1.4; color: #3d3d3d; }
.quote figcaption { font-size: 19px; color: #3d3d3d; padding-left: 15%; }

.contact { max-width: 760px; margin-left: max(var(--gutter), calc((100vw - 1200px) / 2 + 115px)); }
.contact > p:first-of-type { max-width: 380px; }
.contact-form { margin-top: 36px; max-width: 560px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.contact-form legend, .contact-form label { display: block; font-size: 14px; color: var(--heading); margin-bottom: 18px; }
.contact-form legend { margin-bottom: 6px; padding: 0; }
.contact-form fieldset label { color: var(--muted); font-size: 12px; margin: 0; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form span { color: var(--muted); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--text);
  padding: 12px; border: 1px solid #ccc; border-radius: 0; background: #fafafa;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--heading); outline-offset: -1px; background: #fff; }
.contact-form .btn { font-family: var(--font); margin-top: 6px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; }
.alt { margin-top: 40px; color: var(--muted); }
.alt a { text-decoration: underline; text-underline-offset: 2px; }
.narrow { max-width: 640px; }
.narrow a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { margin-right: var(--gutter); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: auto; }
  body:not(.splash) { padding-top: 0; }
  .top { position: static; height: auto; flex-direction: column-reverse; padding: 24px 20px 18px; gap: 18px; }
  .top ul { justify-content: center; }
  .logo img { height: 56px; }
  .meta { position: static; width: auto; max-height: none; overflow: visible; padding: 20px 20px 10px; }
  .gallery { margin: 0; padding: 0 5px 40px; max-width: none; }
  .gallery figure { margin-bottom: 5px; }
  .pager { padding: 30px 15px 10px; }
  .back { position: static; display: block; text-align: center; padding: 10px 0 40px; }
  .about { grid-template-columns: 1fr; }
  .about-info { border-top: 1px solid var(--rule); padding-top: 36px; }
  .contact { margin: 0 auto; }
  h1, h2 { font-size: 34px; }
  .tile-title { font-size: 30px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
}
