/* Source order for the final bundled stylesheet */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}



:root {
  color-scheme: light;
  --font-main: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --shell-max: 999px;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  --space-main: 40px;

  --main: #6666ff;
  --fg: #050f1b;
  --tsagaan: #eef1f8;
  --neon-huh: #0705f6;

  font-family: var(--font-main);
}

@media (max-width: 1100px) {
  :root {
    --space-main: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --space-main: 24px;
  }
}



* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  --bg: var(--main);
  min-height: 100%;
  margin: 0;
  color: var(--fg);
  background-color: var(--page-bg, var(--bg));
  background-image:
    var(--grain),
    linear-gradient(var(--page-bg, var(--bg)), var(--page-bg, var(--bg)));
  background-blend-mode: soft-light, normal;
  background-size:
    180px 180px,
    auto;
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.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;
}



/* Shared layout primitives */

.app-shell {
  width: 100%;
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.app-main {
  min-width: 0;
  padding-block: var(--space-main);
}

.section-header {
  text-align: center;
}

.section-header a {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neon-huh);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 24px;
  align-items: center;
  justify-content: center;
  font-size: 0.813rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.site-footer a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--neon-huh);
}

.site-footer small {
  font: inherit;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 32px, var(--shell-max));
  }

  .site-footer {
    padding-block: 18px;
  }
}



.home-page {
  --page-bg: var(--tsagaan);
}

.home-about {
  display: flow-root;
  width: min(100%, 420px);
  margin-top: 32px;
  margin-inline: auto;
  line-height: 1.5;
}

.home-about p {
  margin: 0;
}

.home-about p + p {
  margin-top: 16px;
}

.home-about a {
  color: var(--neon-huh);
  text-decoration: underline solid var(--neon-huh) 1px;
  text-underline-offset: 1.5px;
}

.avatar {
  float: left;
  width: 27%;
  margin: 0 1rem 0 0;
  overflow: hidden;
  border: 1px solid;

  background-color: var(--main);
  background-image: var(--grain), linear-gradient(var(--main), var(--main));
  background-blend-mode: soft-light, normal;
  background-size:
    180px 180px,
    auto;
}

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

@media (max-width: 760px) and (orientation: portrait) {
  .avatar {
    width: 35%;
  }
}



.photo-category-page {
  --page-bg: var(--tsagaan);
}

.photos-index {
  display: grid;
  width: min(100%, 600px);
  gap: 32px;
  margin-inline: auto;
}

.photo-categories {
  display: flex;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.photo-category {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
}

.photo-category a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.photo-category__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.16);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms steps(5, end);
}

.photo-category__slide.is-active {
  opacity: 1;
}

.photo-category a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--tsagaan);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--fg);
}

.photo-category-page .app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  width: 100%;
}

.photo-category-page .app-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding-block: 0;
}

.photo-category-header {
  text-align: center;
  margin: 0 0 24px;
}

.photo-category-footer {
  text-align: center;
  margin: 24px 0 0;
}

.photo-category-header a,
.photo-category-footer a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-huh);
}

.photo-category-header h1 {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.photo-viewer {
  display: grid;
  grid-template-columns: clamp(120px, 20vw, 299px) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.photo-viewer__rail {
  align-self: stretch;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 24px 10px;
  padding-left: max(10px, env(safe-area-inset-left));
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  scrollbar-width: thin;
  color: #000;

  background-color: var(--main);
  background-image: var(--grain), linear-gradient(var(--main), var(--main));
  background-blend-mode: soft-light, normal;
  background-size:
    180px 180px,
    auto;
}

.photo-thumbnail-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-thumbnail-list__item {
  display: flex;
  width: 100px;
  justify-content: center;
}

.photo-thumbnail {
  display: block;
  width: 100px;
  aspect-ratio: 5 / 4;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.photo-thumbnail[data-photo-orientation="portrait"] {
  width: 80px;
  height: 100px;
  aspect-ratio: 4 / 5;
}

.photo-thumbnail:hover,
.photo-thumbnail:focus-visible,
.photo-thumbnail[aria-current="true"] {
  outline-color: var(--fg);
}

.photo-thumbnail:focus-visible {
  border-radius: 0;
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}

.photo-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.16);
  object-fit: cover;
}

.photo-viewer__stage {
  --photo-stage-padding-top: clamp(40px, 8dvh, 80px);
  --photo-stage-padding-bottom: 32px;
  --photo-caption-space: 28px;

  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: var(--photo-stage-padding-top) clamp(16px, 4vw, 64px)
    var(--photo-stage-padding-bottom);
  padding-right: max(
    clamp(16px, 4vw, 64px),
    env(safe-area-inset-right)
  );
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
}

.photo-viewer__media {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: min(100%, 580px);
  aspect-ratio: var(--photo-aspect);
  overflow: hidden;
}

.photo-viewer__media[data-photo-orientation="portrait"] {
  width: auto;
  max-width: min(100%, 580px);
  height: calc(
    100dvh - var(--photo-stage-padding-top) -
      var(--photo-stage-padding-bottom) - var(--photo-caption-space)
  );
}

.photo-viewer__media img,
.photo-viewer__loading {
  grid-area: 1 / 1;
}

.photo-viewer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  border: 0;
  outline: 3.5px solid var(--fg);
  outline-offset: -3.5px;
  transition: opacity 180ms ease;
}

.photo-viewer__loading {
  display: none;
  place-items: center;
  padding: 16px;
  background-color: #e8eaec;
  background-image: linear-gradient(
    100deg,
    transparent 30%,
    rgba(5, 15, 27, 0.14) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: photo-loading 1.4s linear infinite;
}

.has-js .photo-viewer__stage[data-loading] .photo-viewer__media img,
.has-js .photo-viewer__stage[data-error] .photo-viewer__media img {
  opacity: 0;
}

.has-js .photo-viewer__stage[data-loading] .photo-viewer__loading,
.has-js .photo-viewer__stage[data-error] .photo-viewer__loading {
  display: grid;
}

.photo-viewer__stage figcaption {
  width: min(100%, 580px);
  margin-top: 8px;
  font-size: 0.813rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 760px) and (orientation: portrait) {
  .photo-category-page {
    --page-bg: var(--main);
  }

  .photo-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 100px));
    width: min(300px, 100%);
    overflow: visible;
  }

  .photo-category {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .photo-category-page .app-shell {
    height: auto;
    min-height: 100svh;
  }

  .photo-category-page .app-main {
    display: block;
  }

  .photo-viewer {
    display: block;
    height: auto;
    min-height: 100svh;
  }

  .photo-viewer__rail {
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 24px 24px 32px;
    overflow: visible;
  }

  .photo-thumbnail-list {
    width: 100%;
    gap: 24px;
  }

  .photo-thumbnail-list__item {
    width: 100%;
  }

  .photo-thumbnail {
    width: 100%;
    max-width: 100%;
    aspect-ratio: var(--photo-aspect);
  }

  .photo-thumbnail[data-photo-orientation="portrait"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--photo-aspect);
  }

  .photo-thumbnail img {
    object-fit: contain;
  }

  .photo-thumbnail[aria-current="true"] {
    outline-color: transparent;
  }

  .photo-thumbnail:hover {
    outline-color: transparent;
  }

  .photo-thumbnail:focus-visible {
    outline-color: var(--fg);
  }

  .photo-viewer__stage {
    display: none;
  }

  .photo-category-header a,
  .photo-category-footer a {
    font-size: 0.875rem;
  }

  .photo-category-header h1 {
    font-size: 1.125rem;
  }
}

@keyframes photo-loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

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

  .photo-viewer__loading {
    animation: none;
  }
}


