:root {
  --color-white: #fff;
  --color-bg: #f9f9f9;
  --color-bg-loading: #f0f0f0;
  --color-border: #ddd;
  --color-muted: #999;
  --color-text-light: #666;
  --color-nav-link: #555;
  --color-text: #333;
  --color-heading: #222;
  --color-btn: #1a1a1a;
  --color-btn-hover: #333;
  --color-error: #cc0000;
  --color-error-bg: #fff5f5;
  --font-heading: 'Special Elite', monospace;
  --font-body: 'Courier', monospace;
  --font-ui: 'Inter', sans-serif;
  --header-height: 80px;
  --skip-link-offset: 40px;
  --mobile-menu-max-height: 500px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.8s ease;
}

.skip-link {
  position: absolute;
  top: calc(var(--skip-link-offset) * -1);
  left: 0;
  background: var(--color-btn);
  color: var(--color-white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  transition: top var(--transition-normal);
}

.skip-link:focus {
  top: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--color-white);
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header h1 {
  font-size: 1.8rem;
  color: var(--color-heading);
  margin: 0;
  font-family: var(--font-heading);
}

nav {
  margin: 0;
}

nav a {
  margin-right: 20px;
  text-decoration: none;
  color: var(--color-nav-link);
  font-size: 1rem;
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  nav a::after {
    transition: width var(--transition-normal);
  }
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-heading);
}

nav a:hover {
  color: #000;
}

nav a:hover::after {
  width: 100%;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.mobile-menu-btn span {
  width: 30px;
  height: 3px;
  background: var(--color-heading);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 9px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -9px);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 10px 20px 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  nav.active {
    max-height: var(--mobile-menu-max-height);
    opacity: 1;
    transform: translateY(0);
  }

  nav a {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-20px);
    display: block;
    width: 100%;
  }

  nav.active a {
    opacity: 1;
    transform: translateX(0);
  }

  nav.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.active a:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav.active a:nth-child(3) {
    transition-delay: 0.2s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 768px) {
    nav a {
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
  }
}

#hero {
  min-height: calc(100vh - var(--header-height));
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content p {
  font-size: 1.5rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content p {
    animation: fogClear 2s ease-out forwards;
  }

  @keyframes fogClear {
    0% {
      opacity: 0;
      filter: blur(20px);
      transform: translateY(20px) scale(1.1);
    }

    15% {
      opacity: 0.5;
      filter: blur(10px);
      transform: translateY(15px) scale(1.08);
    }

    40% {
      opacity: 0.8;
      filter: blur(5px);
      transform: translateY(8px) scale(1.03);
    }

    100% {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0) scale(1);
    }
  }
}

section {
  padding: 60px 0;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  font-family: var(--font-heading);
}

.instagram-text {
  margin-top: 40px;
}

#about>.container {
  max-width: 700px;
}

.about-content {
  margin-top: 30px;
}

.about-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.about-image {
  float: right;
  width: 300px;
  aspect-ratio: 1.44;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin: 0 0 20px 30px;
}

.about-content::after {
  content: "";
  display: table;
  clear: both;
}

#about {
  background: var(--color-bg);
  text-align: center;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.work-item-link {
  text-decoration: none;
  color: inherit;
}

.work-item {
  display: flex;
  gap: 30px;
  align-items: center;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .work-item {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }
}

.work-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-item img {
  width: 300px;
  height: 208px;
  aspect-ratio: 300 / 208;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-loading);
}

.work-info {
  flex: 1;
}

.work-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-heading);
  font-family: var(--font-heading);
}

.work-info p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.work-info .exhibition {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 8px;
  font-style: italic;
}

#contact {
  text-align: center;
}

#contact p {
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background 0.3s;
  }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-btn);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: var(--color-btn-hover);
}

footer {
  background: var(--color-heading);
  color: var(--color-white);
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

.project-page {
  padding: 80px 20px;
}

.project-title {
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
  font-family: var(--font-heading);
}

.curatorial-text {
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: justify;
}

.curatorial-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* border: 1px solid var(--color-border); */
}

.photo-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.photo-caption-line {
  width: 1px;
  height: 60px;
  background-color: var(--color-heading);
  flex-shrink: 0;
}

.photo-caption-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-caption-title {
  font-size: 0.95rem;
  color: var(--color-heading);
  font-family: var(--font-ui);
  font-weight: 500;
}

.photo-caption-location {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-ui);
}

@media (max-width: 768px) {
  .about-image {
    float: none;
    max-width: 100%;
    width: 100%;
    height: 500px;
    margin: 0 auto 20px auto;
    display: block;
  }

  .work-item {
    flex-direction: column;
    text-align: center;
  }

  .work-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 208;
  }

  .project-title {
    font-size: 2rem;
  }

  .curatorial-text {
    margin-bottom: 40px;
  }

  .project-images {
    gap: 20px;
  }

  .photo-caption-line {
    height: 50px;
  }

  .photo-caption-title {
    font-size: 0.9rem;
  }

  .photo-caption-location {
    font-size: 0.8rem;
  }
}
