@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400&family=Inter:wght@100;200;300;400&display=swap');

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

:root {
  --color-primary: #f5f5f5;
  --color-secondary: #999;
  --color-text: #333;
  --color-bg: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.7);
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 200;
  letter-spacing: 0.12em;
}

.font-sans {
  font-family: var(--font-sans);
  font-weight: 200;
  letter-spacing: 0.08em;
}

nav a {
  transition: color 0.3s ease;
}

nav a:hover {
  color: #666;
}

.hero-image {
  background-color: var(--color-primary);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.12em;
  font-weight: 200;
}

.grid-item {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.detail-image {
  background-color: var(--color-primary);
  width: 100%;
  height: auto;
  margin-bottom: 300px;
}

.detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

footer {
  text-align: center;
  padding: 80px 0;
  font-size: 12px;
  font-weight: 100;
  color: var(--color-secondary);
  opacity: 0.7;
}

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

.loading-placeholder {
  background: linear-gradient(90deg, #f5f5f5 25%, #efefef 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

@media (max-width: 768px) {
  .hero-image {
    min-height: 60vh;
  }
  
  .hero-text {
    font-size: 1.2rem;
  }
  
  .grid-item {
    aspect-ratio: 3/4;
  }
  
  .detail-image {
    margin-bottom: 150px;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}