@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
}

body {
  background: #fff;
  color: #111;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
}

.site-header {
  border-bottom: 1px solid #bcbec0;
  padding: 28px 0 10px;
  margin-bottom: 14px;
}

.logo {
  color: #d6aa00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-transform: uppercase;
}

.site-nav a {
  color: #111;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  margin-left: 24px;
}

/* INDEX / CATEGORY */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-thumb-wrap {
  width: 100%;
  aspect-ratio: 216 / 298;
  background: #e6e7e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.blog-category {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
}

.blog-title {
  margin-top: 8px;
  font-size: 15px;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-short {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #555;
}

.blog-date {
  margin-top: 6px;
  font-size: 12px;
  color: #d6aa00;
}

/* DETAIL */
.detail-topline {
  font-size: 13px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 14px;
}

.detail-topline a {
  color: #333;
  text-decoration: none;
}

.detail-hero {
  background: #e6e7e8;
  min-height: 430px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  padding: 40px 70px;
  margin-bottom: 34px;
}

.detail-slider {
  width: 100%;
  max-width: 380px;
  height: 350px;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.detail-slider img {
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.detail-slider img.active {
  opacity: 1;
}

.detail-summary {
  padding-left: 40px;
}

.detail-summary h1 {
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 500;
}

.detail-summary p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  color: #333;
}

.blog-content {
  font-size: 14px;
  line-height: 1.45;
  color: #111;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.blog-content table td,
.blog-content table th {
  border: 1px solid #ccc;
  padding: 8px;
}

.project-files {
  margin-top: 36px;
}

.project-files h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.project-file-item {
  display: block;
  color: #111;
  text-decoration: none;
  margin-bottom: 8px;
}

.project-file-item i {
  color: #d6aa00;
  margin-right: 6px;
}

.license-box {
  margin-top: 24px;
  font-size: 13px;
  color: #222;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid #ddd;
  padding: 14px 0 30px;
}

.site-footer a {
  color: #111;
  font-size: 13px;
  text-decoration: none;
  margin-right: 18px;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .detail-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .detail-slider {
    max-width: 100%;
    height: 350px;
  }

  .detail-summary {
    padding-left: 0;
  }

  .detail-summary h1 {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: block !important;
  }

  .site-nav {
    margin-top: 10px;
  }

  .site-nav a {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

.static-page {
  max-width: 760px;
  padding: 40px 0;
}

.static-page h1 {
  font-size: 34px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.static-page p {
  font-size: 15px;
  line-height: 1.6;
}