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

:root {
  --bg-primary: #faf9f7;
  --bg-secondary: #f5f3f0;
  --text-primary: #2c2420;
  --text-secondary: #6b6460;
  --accent-terracotta: #d4a59a;
  --accent-blue: #9ba8b5;
  --accent-oat: #e8dcc4;
  --accent-dark: #3a3330;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(107, 100, 96, 0.1);
}

.site-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1px;
  background: var(--accent-dark);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.hero-section {
  margin-top: 80px;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.intro-section {
  max-width: 900px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.intro-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-ideograph;
}

.preview-grid {
  max-width: 1400px;
  margin: 8rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.preview-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  text-decoration: none;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.preview-card:hover img {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.preview-card:hover .preview-overlay {
  transform: translateY(0);
}

.preview-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.preview-overlay p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 6rem 0;
}

.cta-section p {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.gallery-header {
  margin-top: 120px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  text-align: center;
}

.gallery-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gallery-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 2;
}

.category-tags {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.category-tag {
  padding: 0.5rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.gallery-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 2;
}

.journal-header {
  margin-top: 120px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  text-align: center;
  margin-bottom: 6rem;
}

.journal-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.journal-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.05em;
}

.articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.article-card {
  margin-bottom: 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.article-card:nth-child(even) {
  direction: rtl;
}

.article-card:nth-child(even) > * {
  direction: ltr;
}

.article-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.article-card:hover .article-image img {
  transform: scale(1.02);
}

.article-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.article-content p {
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-ideograph;
}

.article-question {
  font-style: italic;
  color: var(--accent-terracotta);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.journal-closing {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 4rem 2rem 6rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 2;
}

.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(107, 100, 96, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 2rem;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-card:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .hero-caption {
    font-size: 1.5rem;
    white-space: normal;
    padding: 0 2rem;
  }

  .intro-section h1 {
    font-size: 2rem;
  }

  .intro-section p {
    font-size: 1rem;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-header h1,
  .journal-header h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-tags {
    gap: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-image {
    height: 350px;
  }
}