@font-face {
  font-family: "Uchen";
  src: url("Uchen-Regular.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Uchen", "Times New Roman", serif;
  color: #111;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 24px 18px;
  border-right: 1px solid #ded8d0;
  background: #ffffff;
}

.site-title {
  font-size: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.project-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-group-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c524b;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-link {
  transition: opacity 0.2s ease;
}

.menu-link:hover {
  opacity: 0.6;
}

.content {
  padding: 28px;
}

.posts-grid {
  column-width: 260px;
  column-gap: 18px;
}

.post-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e0d8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  break-inside: avoid;
  width: 100%;
  margin: 0 0 18px;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 12, 4, 0.08);
}

.post-title {
  font-size: 9.6px;
}

.thumbs {
  display: block;
}

.thumbs.single {
  display: block;
}

.thumb {
  position: relative;
  background: #ece7e1;
}

.thumb.horizontal {
  grid-column: span 2;
}

.thumb.vertical {
  grid-row: span 2;
}

.thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.project-content {
  max-width: 1100px;
}

.project-header {
  margin-bottom: 22px;
}

.project-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
}

.project-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.project-media {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-media img,
.project-media video {
  width: 100%;
  height: auto;
  display: block;
  background: #ece7e1;
}

.project-media .media-link {
  padding: 14px 16px;
  border: 1px solid #e5e0d8;
  background: #fff;
  font-size: 14px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ded8d0;
  }
}
