@font-face {
  font-family: futura-pt;
  src: local("Futura PT"), local("FuturaPT-Book"), local("Futura-Medium"), local("Futura");
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #f3f3f3;
  --ink: #5c5c5c;
  --text: #1f1f1f;
  --active: #141414;
  --logo: #6f6f6f;
  --line: #cfcfcf;
  --nav-width: 208px;
  --gutter: 28px;
  --stage-offset: calc(var(--nav-width) + var(--gutter) + 16px);
}

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

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
}

img { border: 0; }

a { color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 8px 12px;
  background: #fff;
  color: var(--active);
  transform: translateY(-160%);
}

.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 5;
  top: var(--gutter);
  left: var(--gutter);
  width: var(--nav-width);
  max-height: calc(100svh - (var(--gutter) * 2));
  max-height: calc(100dvh - (var(--gutter) * 2));
  overflow: auto;
  text-align: right;
  scrollbar-width: thin;
}

.brand-row { display: block; }

.logo {
  margin: 0 0 28px;
  color: var(--logo);
  font-family: futura-pt, "Futura PT", Futura, Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: lowercase;
}

.logo a { color: inherit; text-decoration: none; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--active);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav,
.social,
.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.folder-label,
.social a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
  padding: 2px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nav a,
.folder-label { text-transform: lowercase; }

.folder-label {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.nav a:hover,
.folder-label:hover,
.social a:hover { color: var(--active); }

.nav a.is-current,
.folder.is-open > .folder-label { color: var(--active); }

.subnav { display: none; padding: 6px 0 12px; }

.folder.is-open > .subnav { display: block; }

.subnav a { font-size: 16px; line-height: 1.3; }

.social {
  margin-top: 22px;
  padding-top: 12px;
}

.social a { font-size: 14px; min-height: 32px; }

.stage {
  position: fixed;
  inset: 0 0 0 var(--stage-offset);
  overflow: hidden;
  background: var(--paper);
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide[hidden] { display: none; }

.hit {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  padding: 0;
  border: 0;
  background: transparent;
}

.hit-prev { left: 0; cursor: w-resize; }
.hit-next { right: 0; cursor: e-resize; }

.noscript-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.controls {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 6;
  width: auto;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.5;
}

.caption,
.counter { margin: 0 0 4px; }

.counter { font-variant-numeric: tabular-nums; }

.page {
  margin-left: var(--stage-offset);
  min-height: 100svh;
  min-height: 100dvh;
  padding: 48px 40px 120px 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.page h1 {
  margin: 0 0 24px;
  color: var(--active);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.page p { margin: 0 0 14px; }

.page a { text-underline-offset: 0.16em; }

.about {
  max-width: 920px;
  margin-right: auto;
  margin-left: var(--stage-offset);
}

.about figure { margin: 0; }

.about img { display: block; width: 100%; height: auto; }

.about figcaption {
  margin-top: 10px;
  color: #3a3a3a;
  font-size: 14px;
  text-align: center;
}

.about figcaption p { margin: 0; }

.about .bio {
  max-width: 68ch;
  margin: 32px auto 0;
}

.contact-email {
  margin: 0 0 28px;
  font-size: 18px;
  text-align: right;
}

.contact-panel { max-width: 440px; margin-left: auto; }

.contact-panel h1 { text-align: left; }

.form-note {
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.contact-form label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b5b5b5;
  background: #fff;
  color: #161616;
  font: inherit;
}

.contact-form button {
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 0;
  background: #1c1c1c;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover { background: #000; }

.notice {
  max-width: 34rem;
  margin: 16vh auto 0;
  text-align: center;
}

.notice h1 { margin-bottom: 12px; }

@media (max-width: 800px) {
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    padding: 16px 20px 8px;
    text-align: left;
  }

  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    margin: 0;
    font-size: 34px;
  }

  .js .menu-toggle { display: inline-flex; }

  .js #site-nav { display: none; }

  .js #site-nav.is-open { display: block; padding-top: 8px; }

  .nav a,
  .folder-label,
  .social a {
    justify-content: flex-start;
    min-height: 44px;
    text-align: left;
  }

  .stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 72dvh;
    min-height: 220px;
  }

  .page,
  .about {
    margin-left: 0;
    padding: 12px 20px 112px;
  }

  .controls {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 8px 16px 0;
  }

  .controls { margin-bottom: 24px; }

  .contact-email,
  .contact-panel h1 { text-align: left; }
}

picture { display: contents; }

.js .stage picture:not(:has(.is-active)) { display: none; }

.js .stage picture:has(.is-active) {
  display: block;
  width: 100%;
  height: 100%;
}

.about picture,
.about img { display: block; }

html:not(.js) .stage {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  margin-left: var(--stage-offset);
  overflow: visible;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
}

@media (max-width: 800px) {
  html:not(.js) .stage { margin-left: 0; }
}

html:not(.js) .slide {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
}

html:not(.js) .hit,
html:not(.js) .controls { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
