@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/PretendardVariable.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Pretendard-KR';
  font-weight: 480;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/PretendardVariable.woff2') format('woff2-variations');
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

:root {
  --ink: rgb(161, 161, 161);
  --muted: rgb(161, 161, 161);
  --line: rgb(161, 161, 161);
  --background: #ffffff;
  --content-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Pretendard-KR', 'Pretendard Variable', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 1.75rem 0 5rem;
}

.site-header {
  margin-bottom: 0.875rem;
}

h1 {
  margin: 0;
  padding-bottom: 0.5625rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}

.desktop-comma,
.info-line {
  display: inline;
}

.info-line {
  word-break: break-all;
}

.name-link,
.copy-target {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.name-link:hover,
.copy-target:hover {
  opacity: 0.3;
}

#copy-feedback {
  display: inline-block;
  margin-left: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

#copy-feedback.show {
  opacity: 1;
  transform: translateX(0);
}

.loading-text {
  margin: 0.75rem 0 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.item {
  margin-bottom: 3.5rem;
  padding-bottom: 0;
}

.item:last-child {
  margin-bottom: 0;
}

.description {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.75rem;
}

.slider-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  transition: height 0.3s ease;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  gap: 15px;
  cursor: pointer;
  align-items: flex-start;
  height: 100%;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-item {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-item img,
.item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  border-radius: 2px;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #d1d1d1;
  transition: background-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .dot:hover {
    background-color: rgb(161, 161, 161);
    transform: scale(1.2);
  }
}

.dot.active {
  background-color: rgb(161, 161, 161);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .site-shell {
    width: calc(100% - 28px);
    padding-top: 1.25rem;
  }

  h1 {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
    font-weight: 400;
  }

  .desktop-comma {
    display: none;
  }

  .info-line {
    display: block;
    width: 100%;
  }

  #copy-feedback {
    margin-left: 6px;
  }

  .slider-track {
    gap: 10px;
  }

  .item {
    margin-bottom: 2.5rem;
  }
}
