@font-face {
  font-family: "Notera";
  src:
    url("fonts/Notera_PersonalUseOnly.woff") format("woff"),
    url("fonts/Notera_PersonalUseOnly.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f7f4ee;
  --text: #111111;
  --line: rgba(0, 0, 0, 0.22);
  --max-width: 100%;
  --page-gutter: 32px;
  --row-edge-gap: 20px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", serif;
}

img {
  display: block;
  width: 100%;
}

.site-header,
main {
  width: min(var(--max-width), 100vw);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  padding: 28px 0 18px;
  text-align: center;
}

.wordmark {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Notera", cursive;
  font-size: clamp(3.6rem, 9vw, 5.6rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-weight: 400;
}

.nav-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-button {
  font-family: "Alegreya Sans SC", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-nav .nav-button:hover,
.site-nav .nav-button:focus-visible,
.nav-button.is-active {
  opacity: 0.6;
}

.view-stage {
  padding: 22px 0 28px;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.gallery-grid {
  --gallery-columns: 3;
  --gallery-gap: 24px;
  position: relative;
  width: min(100%, 64vw);
  margin-inline: auto;
}

.gallery-grid:not(.is-laid-out) .gallery-item {
  visibility: hidden;
}

.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  gap: 14px;
  will-change: transform;
}

.gallery-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  background: #f5f5f5;
}

.gallery-link:hover .gallery-copy,
.gallery-link:focus-visible .gallery-copy {
  opacity: 0.65;
}

.gallery-media {
  display: block;
  width: 100%;
  overflow: visible;
}

.gallery-media img {
  height: auto;
  object-fit: contain;
}

.gallery-copy {
  font-family: "Allura", cursive;
  min-height: 0;
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  text-align: center;
}

.about-section {
  width: min(100%, 920px);
  margin: 0 auto;
  padding-top: 8px;
}

.about-media {
  width: min(100%, 210px);
}

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

.about-copy {
  max-width: 720px;
  margin-top: 44px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 14px;
  justify-content: center;
  padding: 72px 0 20px;
  text-align: center;
}

.contact-panel p {
  margin: 0;
}

.contact-panel a {
  font-family: "Alegreya Sans SC", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  opacity: 0.6;
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: 100vw;
    padding-inline: 18px;
  }

  .site-nav {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-grid {
    --gallery-columns: 2;
    --gallery-gap: 16px;
    width: 100%;
  }

  .gallery-copy {
    min-height: 0;
  }

  .about-section {
    width: 100%;
  }

  .about-copy {
    margin-top: 24px;
    padding-right: 18px;
  }
}

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