* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --footer-clearance: 4.75rem;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  background: #faf9f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-bottom: calc(2rem + var(--footer-clearance) + env(safe-area-inset-bottom, 0px));
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
}

nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

nav a:hover {
  border-bottom-color: #1a1a1a;
}

.page {
  max-width: 28rem;
  text-align: center;
}

.page p {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin-bottom: 2.5rem;
}

.about__photo {
  width: 100%;
  max-width: 16rem;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.about__bio {
  flex: 1;
  min-width: min(100%, 18rem);
  line-height: 1.65;
  font-size: 0.98rem;
  color: rgba(26, 26, 26, 0.88);
  white-space: pre-wrap;
}

.back {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

body.page-scroll {
  display: block;
  padding: 2rem 1.5rem;
  padding-bottom: calc(3rem + var(--footer-clearance) + env(safe-area-inset-bottom, 0px));
}

.gallery-header {
  max-width: 72rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.gallery-header h1 {
  margin-bottom: 0.75rem;
}

.gallery-intro {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.72);
  max-width: 24rem;
  margin: 0 auto 1.25rem;
}

.gallery-categories {
  max-width: 72rem;
  margin: 0 auto;
}

.gallery-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 560px) {
  .gallery-categories__grid {
    grid-template-columns: 1fr;
  }
}

.gallery-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  text-decoration: none;
}

.gallery-category__preview-wrap {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  background: #e8e6e2;
  overflow: hidden;
}

.gallery-category__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-category--empty .gallery-category__preview {
  display: none;
}

.gallery-category__label {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.gallery-category:hover .gallery-category__label {
  border-bottom-color: #1a1a1a;
}

.gallery-header .back {
  gap: 0.5rem 1rem;
  align-items: center;
}

.gallery-header .nav-sep {
  color: rgba(26, 26, 26, 0.35);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

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

@media (min-width: 721px) and (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
}

.site-footer__social a {
  display: flex;
  color: #1a1a1a;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.site-footer__social a:hover {
  opacity: 1;
}

.site-footer__icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.site-footer__sep {
  color: rgba(26, 26, 26, 0.35);
  user-select: none;
}

.site-footer__link {
  color: #1a1a1a;
  text-decoration: none;
  opacity: 0.8;
}

.site-footer__link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__newsletter {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(26, 26, 26, 0.35);
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-footer__newsletter:hover {
  border-color: #1a1a1a;
  background: rgba(26, 26, 26, 0.04);
}

.site-footer__copy {
  color: rgba(26, 26, 26, 0.65);
  white-space: nowrap;
}

@media (max-width: 520px) {
  :root {
    --footer-clearance: 6.5rem;
  }

  .site-footer__sep--copy {
    display: none;
  }

  .site-footer__copy {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}
