/* TWO TEXT TYPES — edit these two sizes to change text across the website.
   Titles: navigation, project names, gallery names, and contact links.
   Subtitles: descriptions, dates, photo counts, and back links.
   Hover enlarges an interactive title by 12.5%; it is not a separate text type. */
:root {
  --title-size: 20px;
  --subtitle-size: 12px;
}

body {
  font: 400 var(--subtitle-size)/1.5 Arial, Helvetica, sans-serif;
}
button, input, select, textarea { font: inherit; }

.home-title,
.project-title,
.coverflow-caption,
.contact a,
.lightbox-close,
h1, h2, h3, h4, h5, h6 {
  font: 400 var(--title-size)/1.5 Arial, Helvetica, sans-serif;
}

.project-description,
.coverflow-count,
.site-back {
  font: 400 var(--subtitle-size)/1.5 Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

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

body {
  min-height: 100svh;
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  width: 100%;
  height: clamp(92px, 14svh, 128px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 20px 8px;
}

.site-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  height: clamp(88px, 13svh, 122px);
  padding: max(17px, env(safe-area-inset-top)) 20px 7px;
  pointer-events: none;
}

.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  opacity: 0.48;
}

.home-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.signature {
  display: block;
  width: auto;
  max-width: min(250px, 26vw);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

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

:root { --back-bottom: max(10px, calc(env(safe-area-inset-bottom) + 8px)); }

.site-back {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: var(--back-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateX(-50%);
  color: #686868;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.site-back:hover { color: #000; }
.site-back:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

@media (max-width: 700px) {
  .site-header {
    height: 86px;
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top)) 18px 2px;
  }

  .site-header--fixed {
    height: 84px;
  }

  .signature {
    max-width: min(145px, 40vw);
  }
}

@media (max-height: 620px) {
  .site-header--fixed {
    height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-link {
    transition: none;
  }
}
