/* TMK graphics: static rebuild of the Squarespace site */
:root {
  --bg: #f7f7f7;
  --text: #2e2e2e;
  --ink: #000;
  --muted: #b3b3b3;
  --rule: #bbb;
  --sidebar: 175px;
  --gutter: 25px;
  --block: 17px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 200;
  line-height: 1.3;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar);
  height: 100vh;
  padding: var(--gutter);
  overflow-y: auto;
}
.logo img { width: 105px; }
.menu-toggle { display: none; }
.sidebar nav { margin-top: 30px; }
.sidebar nav a {
  display: block;
  padding: 2px 0 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}
.sidebar nav a:hover, .sidebar nav a.active { color: var(--muted); }

/* ---------- content ---------- */
.content {
  margin-left: var(--sidebar);
  padding: var(--gutter) var(--gutter) 60px 0;
  min-height: 100vh;
}
.row { display: flex; margin: 0 calc(-1 * var(--block)); }
.col > .row { margin: 0; }
.content > .row:first-child { margin-top: calc(-1 * var(--block)); }
.col { flex: 0 0 var(--w); max-width: var(--w); min-width: 0; }
.block { padding: var(--block); }

h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0 0 1em; line-height: 1.2; }
h1 { font-size: 18px; }
h2 { font-size: 14.4px; }
h3 { font-size: 10.8px; }
.text p { margin: 0 0 1em; white-space: pre-wrap; }
.text p:last-child { margin-bottom: 0; }
.text a { color: var(--ink); font-weight: 600; }
.align-center { text-align: center; }
.align-right { text-align: right; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
figure { margin: 0; }
.block > .image { margin: 8px 0; }
figcaption { margin-top: 8px; }
.page-title { margin: 0 0 20px; }

/* ---------- social icons ---------- */
.social { display: flex; justify-content: center; gap: 8px; }
.social a {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #222; color: #fff;
  transition: background .15s;
}
.social a:hover { background: #555; }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- slideshow (home) ---------- */
.slideshow { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide a, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: contain; }
.slideshow button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 60px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .15); color: #fff;
  font: 300 40px/1 Barlow, sans-serif;
  opacity: .8; transition: opacity .2s, background .2s;
}
.slideshow button:hover { opacity: 1; background: rgba(0, 0, 0, .3); }
.slideshow .prev { left: 0; }
.slideshow .next { right: 0; }

/* ---------- grid (work) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; text-decoration: none; }
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cell .meta {
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 16px; text-align: center;
  background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.cell:hover .meta, .cell:focus-visible .meta { opacity: 1; }

/* ---------- contact form ---------- */
.contact-form label { display: block; margin-bottom: 14px; color: var(--ink); font-weight: 400; font-size: 12px; }
.contact-form .req { color: #888; font-weight: 200; }
.name-row { display: flex; gap: 12px; }
.name-row label { flex: 1; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px;
  border: 1px solid #ccc; border-radius: 0; background: #fff; color: var(--text);
  font: 400 14px Barlow, sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #000; outline-offset: -1px; }
.contact-form button {
  padding: 12px 26px; border: 0; cursor: pointer;
  background: #272727; color: #fff;
  font: 600 12px Barlow, sans-serif; letter-spacing: .05em;
}
.contact-form button:hover { background: #000; }
.contact-form button:disabled { opacity: .5; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 12px; font-size: 13px; font-weight: 400; }

.not-found { padding: 40px 0; font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; --block: 10px; }
  body { font-size: 14px; }
  .sidebar {
    position: static; width: auto; height: auto; overflow: visible;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 16px;
  }
  .logo img { width: 80px; }
  .menu-toggle {
    display: block; border: 0; background: none; cursor: pointer; padding: 8px 0;
    font: 600 14px Barlow, sans-serif; color: var(--ink);
  }
  .sidebar nav { display: none; flex-basis: 100%; margin-top: 12px; }
  .sidebar nav.open { display: block; }
  .sidebar nav a { font-size: 16px; padding: 8px 0; }
  .content { margin-left: 0; padding: 0 16px 40px; }
  .row { flex-direction: column; }
  .col { max-width: 100%; flex-basis: auto; }
  .col-spacer { display: none; }
  h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .name-row { flex-direction: column; gap: 0; }
  .cell .meta { display: none; }
  .slideshow button { width: 34px; height: 46px; font-size: 30px; }
}
