:root {
  --bg: #fcfcfc;
  --text: #4a515b;
  --text-strong: #252a31;
  --text-muted: #8d949e;
  --rule: #e5e7eb;
  --link: #3d434c;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  view-transition-name: crossfade;
}

@view-transition {
  navigation: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration-color: rgba(61, 67, 76, 0.36);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    opacity 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}

.site-shell {
  display: grid;
  grid-template-columns: 120px minmax(0, 42rem);
  gap: 56px;
  align-items: start;
  min-height: 100vh;
  padding: 56px;
}

.site-nav {
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-height: calc(100vh - 112px);
  padding-right: 56px;
  border-right: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

.site-nav-link {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav-link.is-active {
  color: var(--text-strong);
}

.nav-social {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
}

.nav-icon-link {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-icon-link:hover,
.nav-icon-link:focus-visible {
  color: var(--text-strong);
}

.nav-icon-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.content-column {
  max-width: 42rem;
  padding-top: 1px;
  animation: page-in 520ms ease both;
}

.content-column h1 {
  margin: 0 0 30px;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
}

.content-column h2 {
  margin: 44px 0 12px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.content-column p {
  margin: 0 0 28px;
}

.content-column ul {
  margin: 0 0 28px;
  padding-left: 1.2rem;
}

.content-column li {
  margin-bottom: 8px;
}

.shop-content,
.shop-content a,
.shop-content .shop-note {
  color: var(--text);
}

.home-photo {
  width: min(100%, 38rem);
  margin: 40px 0 0;
  background: #f3f4f6;
}

.home-photo img {
  width: 100%;
  height: auto;
  opacity: 0;
  animation: image-in 700ms ease 140ms forwards;
}

.gallery-content {
  max-width: 616px;
}

.image-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 301px));
  gap: 14px;
  align-items: start;
  margin-top: 30px;
}

.image-index figure {
  position: relative;
  margin: 0;
  background: #f3f4f6;
  overflow: hidden;
}

.image-index figure::after {
  content: attr(data-number);
  position: absolute;
  inset: 10px auto auto 10px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.86);
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.image-index figure:hover::after,
.image-index figure:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.image-button:focus-visible {
  outline: 1px solid var(--text-strong);
  outline-offset: 4px;
}

.image-index img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(4px);
  animation: image-in 640ms ease forwards;
}

.image-index figcaption {
  display: none;
}

.shop-note {
  margin-top: 44px;
  color: var(--text-muted);
}

.image-viewer {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8f8f8;
}

.image-viewer::backdrop {
  background: rgba(12, 13, 15, 0.88);
}

.viewer-frame {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
}

.viewer-image {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
}

.viewer-caption {
  color: rgba(248, 248, 248, 0.82);
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.viewer-close {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(248, 248, 248, 0.82);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
}

.viewer-close:hover,
.viewer-close:focus-visible {
  color: #ffffff;
}

@supports (view-transition-name: none) {
  @media not (prefers-reduced-motion: reduce) {
    ::view-transition-old(crossfade) {
      animation: hide 400ms cubic-bezier(0.6, 0, 0.8, 1) forwards;
    }

    ::view-transition-new(crossfade) {
      opacity: 0;
      animation: appear 600ms ease 200ms forwards;
    }
  }
}

@keyframes hide {
  from {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 0;
    filter: blur(4px);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes image-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 56px;
  }

  .site-nav {
    position: static;
    min-height: auto;
    align-items: flex-start;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-social {
    position: static;
    margin-top: 16px;
  }

  .content-column,
  .gallery-content {
    max-width: none;
  }

  .image-index {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
