﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.logo-block h1 {
  font-size: 28px;
  letter-spacing: 0.15em;
}

.logo-block p {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.main-nav a {
  margin-left: 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #aaa;
}

.main-nav a:hover {
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.project a {
  text-decoration: none;
  color: inherit;
}

.thumb {
  background: #111;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.project:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.project-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  margin-top: 10px;
}

.project-subtitle {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.text-section {
  max-width: 640px;
  margin-bottom: 40px;
}

.text-section h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.text-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.site-footer {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}
