* {
  box-sizing: border-box;
}

body {
  background: #fafafa;
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
  color: #222;
  margin: 0;
  padding: 0;
}

ol,
p,
ul {
  margin-top: 15px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
}

header,
footer {
  width: 80vw;
  max-width: 1800px;
  margin: 0 auto;
  color: #333;
}

main {
  width: 100%;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Montserrat, sans-serif;
  color: #222;
  font-weight: 400;
}

h1 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

header {
  padding: 40px 0;
  background: transparent;
}
header .header-link {
  text-decoration: none;
  color: inherit;
}
header .header-link:hover, header .header-link:visited, header .header-link:active, header .header-link:focus {
  text-decoration: none;
  color: inherit;
}
header h1 {
  font-size: 60px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
}

.home {
  width: 80vw;
  max-width: 1800px;
  margin: 0 auto;
}

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.post-grid {
  margin: 0 auto;
  padding: 0;
  transition: opacity 0.4s ease;
}

.grid-sizer {
  width: calc(25% - 10px);
}

.post-card {
  width: calc(25% - 10px);
  margin-bottom: 10px;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.post-card:hover .post-card-image img {
  transform: scale(1.05);
}
.post-card-image {
  width: 100%;
  overflow: hidden;
  background: #e8e8e8;
  position: relative;
}
.post-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.post-card-image.image-error {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}
.post-card-image.image-error::after {
  content: "Image unavailable";
  color: #999;
  font-size: 14px;
}
.post-card-image.image-error img {
  display: none;
}
.post-card .post-card-content {
  padding: 0 16px 16px 16px;
}

.post-container {
  width: 80vw;
  margin: 0 auto;
}

.post {
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.post-columns {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.post-body {
  flex: 1;
  padding: 40px;
  min-width: 0;
}

.post-image-column {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  align-items: flex-start;
}

.post-image {
  width: 100%;
  background: #e8e8e8;
  position: sticky;
  top: 0;
}
.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-header {
  width: 100%;
  margin-bottom: 2rem;
  padding: 0;
}

.post-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: #222;
}

.post-meta {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.post-content {
  font-size: 18px;
  line-height: 1.7;
  color: #222;
}
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 28px;
}
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 22px;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}
.post-content img:first-child {
  display: none;
}

.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 45%;
}
.post-nav-link:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}
.post-nav-link.post-nav-prev {
  align-items: flex-start;
}
.post-nav-link.post-nav-next {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.post-nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.post-nav-title {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .grid-sizer,
  .post-card {
    width: calc(33.333% - 10px);
  }
}
@media (max-width: 600px) {
  .grid-sizer,
  .post-card {
    width: calc(50% - 10px);
  }
  header h1 {
    font-size: 20px;
  }
}
@media (max-width: 400px) {
  .grid-sizer,
  .post-card {
    width: 100%;
  }
  header {
    padding: 30px 20px;
  }
}
@media (max-width: 768px) {
  .post-columns {
    flex-direction: column;
  }
  .post-image-column {
    flex: 1;
    max-width: 100%;
    order: -1;
  }
  .post-image {
    position: relative;
  }
  .post-body {
    padding: 30px 24px;
  }
  .post-title {
    font-size: 28px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-content h2 {
    font-size: 24px;
  }
  .post-content h3 {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .post-image {
    height: 350px;
    overflow: hidden;
  }
  .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .post-body {
    padding: 24px 20px;
  }
  .post-title {
    font-size: 24px;
  }
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  .post-nav-link {
    max-width: 100%;
  }
}

/*# sourceMappingURL=main.css.map */