.writing {
  padding: 140px 40px;
  background: #FFFFFF;
}

.writing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.writing-heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 56px;
  color: var(--blue);
  margin-bottom: 56px;
}

.writing-panel {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(20, 20, 15, 0.12), 0 4px 14px rgba(20, 20, 15, 0.06);
}

.writing-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 56px;
}

.writing-item {
  display: block;
  padding: 0 40px;
  border-left: 1px dashed rgba(26, 26, 26, 0.25);
}

.writing-item:first-child {
  padding-left: 0;
  border-left: none;
}

.writing-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.writing-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.writing-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #4A4A45;
  margin-bottom: 24px;
}

.writing-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #EEEEEA;
}

.writing-item--wide {
  grid-column: 1 / 4;
  padding: 40px 0 0;
  margin-top: 40px;
  border-left: none;
  border-top: 1px dashed rgba(26, 26, 26, 0.25);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.writing-item--wide .writing-item-text {
  max-width: 640px;
}

.writing-item--wide .writing-desc {
  margin-bottom: 0;
}

.writing-item--wide .writing-thumb {
  width: 220px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .writing-grid {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .writing-item {
    padding: 32px 0 0;
    border-left: none;
    border-top: 1px dashed rgba(26, 26, 26, 0.25);
  }

  .writing-item:first-child {
    padding-top: 0;
    border-top: none;
  }

  .writing-item--wide {
    grid-column: 1 / 2;
    flex-direction: column;
    margin-top: 0;
  }

  .writing-item--wide .writing-thumb {
    width: 100%;
  }
}
